Greasemonkey scripts no longer working on Firefox 40+

174 views
Skip to first unread message

Henderson

unread,
Aug 28, 2015, 12:36:28 PM8/28/15
to greasemonkey-users
On my Windows 7 desktop machine, I just downgraded back to 39.0.3 for now, I was originally assuming there was some conflict with another addon until I had time to sort it out. But I just set up a new laptop yesterday with Windows 8.1 where Greasemonkey is the only addon installed and I still have the same problem, none of my basic scripts are working with any version of Firefox starting with 40 and up. Both machines are x64. The scripts I've been using are pretty basic... changing the favicon for a few sites, highlighting certain blocks of text in color if it catches a particular word, along those lines.

Has anyone else run into this and any suggestions how I can fix it? I've searched and haven't yet run across anyone else with this problem, so it's likely something on my machine. On the new laptop I also created one of the scripts to change the favicon at a site from scratch on that laptop, but that didn't work either.

Thanks for any suggestions.

janekptacijarabaci

unread,
Aug 29, 2015, 1:37:59 PM8/29/15
to greasemonkey-users
Check the Browser Console and if you see any error you can screenshot.

Dne pátek 28. srpna 2015 18:36:28 UTC+2 Henderson napsal(a):
Message has been deleted

Henderson

unread,
Aug 29, 2015, 2:05:41 PM8/29/15
to greasemonkey-users

I restarted Firefox with just one tab open that should have the favicon changed, and this was all the Browser Console had, does it show anything useful?

janekptacijarabaci

unread,
Aug 29, 2015, 4:55:13 PM8/29/15
to greasemonkey-users

Unfortunately, I cannot see any error... We will need more detail to be able to reproduce the bug.

Dne sobota 29. srpna 2015 20:05:41 UTC+2 Henderson napsal(a):

Henderson

unread,
Aug 29, 2015, 6:51:39 PM8/29/15
to greasemonkey-users
The Windows 7 Pro x64 desktop has a lot of programs on it, and many addons in Firefox.  That's why I assumed it was a conflict with something already installed.

But the laptop was just set up, Firefox was the first program I added, and Greasemonkey was the first and only addon I installed, and I had the same problem.  The laptop was Windows 8.1 and I upgraded it to Windows 10 Home, also x64 like the desktop, problem was the same with both Windows 8.1 and 10.  12GB RAM, laptop is an Asus X550C.  The laptop really has nothing much on it at this point to cause any conflicts.

I'm not sure what other information I can provide with more details that will help pinpoint the problem.  About the only similarities between the 2 systems is they're both Asus (desktop is an Asus motherboard), and both are 64 bit.

janekptacijarabaci

unread,
Aug 29, 2015, 11:45:02 PM8/29/15
to greasemonkey-users
Greasemonkey 3.3 (3.4beta...)? Any website (and scripts for this site): A popup menu displays a list of scripts (enabled)?

Dne neděle 30. srpna 2015 0:51:39 UTC+2 Henderson napsal(a):

Henderson

unread,
Aug 30, 2015, 7:49:44 AM8/30/15
to greasemonkey-users
Some progress finally.  I was using version 3.3, but tried 3.4beta3 with no luck, 3.2, no luck, then 3.1.1-signed and most scripts started working except one.  Why at that point, I have no idea, but something seems triggered.  I then went back to 3.3 and most scripts continued working, except for that one.  One site just refuses to change the favicon through the script.  I've tried clearing my cache, tried the script on other sites and it works as it should everywhere else, just not where I want it to work.  I installed Adblock Plus to block the original site's favicon, that didn't help either.  The script still works fine on Firefox 39.0.3, just not in any version 40+, so I doubt the site did anything to block such scripts.  I've tried different variations of the included site urls, tried an entirely different script format I found, still can't get it to work under Firefox 40+.  I'm also doing this all this testing on the newly setup laptop so I'm sure there's nothing already installed that could be causing a conflict.

GM script is:
// ==UserScript==
// @name           MyAnonamouse Favicon
// @description    Restores pink-eared mouse favicon
// @version        1.1
// @include     htt*://myanonamouse.net
// @include     htt*://myanonamouse.net/*
// @include     htt*://*.myanonamouse.net
// @include     htt*://*.myanonamouse.net/*
// ==/UserScript==
    
console.log ("*** Script start");
 
window.addEventListener('load', function() {
    console.log ("*** Load fired");
    a=document.createElement("link");
    a.setAttribute("type", "image/jpeg");
    a.setAttribute("rel", "icon");
    
a.setAttribute("href","data:image/x-icon;base64,AAABAAIAEBAAAAEAGABoAwAAJgAAACAgAAABABgAqAwAAI4DAAAoAAAAEAAAACAAAAABABgAAAAAAEADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgn1/gn1/fnt4dG9xgn1/gn1/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgn1/XllXdXFufnt2eHNwf3x3eHVxbGlkgn1/AAAAAAAAAAAAAAAAAAAAAAAAgn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AAABxa22fj6/VwfjVw/jWw/nVwvXYx/y8qNqLgJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQh4/YwfjVw/fWxPjYw/rDsOJxa20AAAAAAAAAAAAAAACDdoTOue7Uw/rUwvbVw/bYx/y4pNJxa20AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABxa22lj77YxfvXwvfaxvy6qc5xa20AAAAAAAAAAAAAAABxa216a3/eyf/XxPjVxPbZxvy0n9Fxa20AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABxa23DrOHax/3UxPlxa20AAAAAAAAAAAAAAAAAAAAAAABxa22nkMLZxfnYw/jVwva5pdZxa20AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABxa22omrK6p9WTiZlxa20AAAAAAAAAAAAAAAAAAAAAAAAAAABxa22xnMrYw/rCrOKxoL5xa20AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABxa21xa21xa20AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABxa213ZoScj6dxa20AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/4B///4AD//4AAf/8AAD/+AAAf/gAAD/wAAA/8AAAP/AAAD/wAAA/8AAAP/AAAD/gAAAfwAAAD8AAAAeAAAADAAAAAwAAAAMAAAABAAAAAQAAAAEAABABAA84AQAf/AGAP/wBgD/8A4A//gPAP/4DwD//B+A//wfwP/+P+H///w==");
    document.documentElement.firstChild.appendChild(a);

    }, false);


    

janekptacijarabaci

unread,
Aug 30, 2015, 9:15:51 AM8/30/15
to greasemonkey-users
This page is protected by CSP. Firefox 40+: See https://bugzilla.mozilla.org/show_bug.cgi?id=1086999 , see also: https://github.com/greasemonkey/greasemonkey/issues/2046 (eventually https://bugzilla.mozilla.org/show_bug.cgi?id=866522 ).

Dne neděle 30. srpna 2015 13:49:44 UTC+2 Henderson napsal(a):

Henderson

unread,
Aug 30, 2015, 10:04:18 AM8/30/15
to greasemonkey-users
Thanks for that info.  Since all of those are listed under bugs, is there a chance it will changed in the future to allow a simple script like mine to work again?

In the meantime, I did find a workaround by uploading the .ico file somewhere and referencing the .ico file and not a base64 reference.  It's hard to find any free place that will accept .ico files to be uploaded though.  But that this works means it's really not much protection, I can change the icon.

This is the script that works to change even the protected site, the included urls are the same as the previous script:
var logo = document.createElement("LINK");
logo.innerHTML = '<link href="http://mercifer.net/images/favicons/MAM.ico" rel="icon" type="image/x-icon" />';
document.body.insertBefore(logo, document.body.firstChild);

Thanks for all your help with us, really appreciate it.
Reply all
Reply to author
Forward
0 new messages