Hi Josef,

I used the Firefox error console (Ctrl+Shift+J) to get information about the error. It says that "wrappedJSObject" is undefined. This is a good hint on what is wrong with the scripts:

Greasemonkey has changed the way how scripts are executed on pages. When scripts do not use the GM API functions, they aren't executed in the protected sandbox anymore. As this script does not use API (which should be stated by an "@grant none" keyword by the way) it is now executed on the page itself, and thereby doing away with the sandbox pitfalls. That "wrappedJSObject" was a way to bypass that security feature and get the actual, unwrapped object behind/inside the so called XPC native wrapper objects which GM scripts use when they are executed in the sandbox. So the script should do away with that workaround stuff and then explicitly state that it doesn't use any of the privileged GM APIs and can be safely executed on the page.

Long story short: for the first script, delete the ".wrappedJSObject" in lines 46 and 50. Then add "@grant none" to the header. It worked for me.
The second script will be pretty much the same, untested though.

Hope that helps,
Chris


Am 14.01.2013 04:34, schrieb Josef Davies-Coates:
Anyone got any idea about how I can get these scripts working in firefox
again? (they still work in chromium)

Thanks!

Josef.


On Sunday, 6 January 2013 22:25:54 UTC, Josef Davies-Coates wrote:
I've realised that Greasemonkey IS actually still working with ubuntu
12.10, firefox 17.0.1 but these specific scripts have stopped working for
me:

http://userscripts.org/scripts/show/95092
http://userscripts.org/scripts/show/126440

The latter is based on the former, so they are both almost identical
scripts.

Both scripts still work with chromium using tampermonkey.

Anyone got any idea how I can get them working again with firefox?

Many thanks in advance,

Josef.




--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to