Google search link fix

Discussion related to extensions like Extension Auto-Installer or Google Search link fix.
Locked
morat
Posts: 1
Joined: Wed Aug 05, 2015 4:25 pm

Google search link fix

Post by morat »

Google search link fix 1.4.9
SeaMonkey 2.33.1 with fresh profile
Windows 7 SP1 32-bit

I get gibberish on restart when I try to copy a link on a search page.

* succeeds on install
* fails on restart
* succeeds if I then disable and enable the extension, then refresh the search page

Here is a workaround.

http://userchromejs.mozdev.org/
http://userchromejs.mozdev.org/faq.html

Code: Select all

/* SeaMonkey 2.33 userChrome.js */

(function() {

if (location == "chrome://navigator/content/navigator.xul") {

  /* Workaround for Google search link fix
     http://adblockplus.org/forum/viewtopic.php?f=13&t=39829
  */

  setTimeout(function() {

    AddonManager.getAddonsByTypes(["extension"], function (addons) {
      addons.forEach(function (addon) {
        if (addon.name == "Google search link fix") {
          addon.userDisabled = true;
          addon.userDisabled = false;
        }
      });
    });

  }, 3000);

}

})();
Why doesn't a script change take effect on restart? Gecko has a javascript cache, which is not automatically cleared across restarts. To clear the cache when restarting, add a -purgecaches flag to the executable commandline.

i.e. seamonkey.exe -purgecaches
Locked