FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

Since Firefox 30: beware of using unsafeWindow....




I had written a little Greasemonkey script allowing to generate some html code from a flickr photo page to use in a blog posting. See an example here in my Wordpress blog.

That script went to userscripts.org but unfortunately userscripts.org is not available anymore, so you now can get that script from here (OpenUserJS).
That script used code like described here to dynamically load jQuery so that jQuery can be used in that Greasemonkey script. Because of this change in Firefox this code stopped working and I always ran into a Javascript error saying: "Permission denied to access property "
Luckily this problem has been discussed here on stackoverflow.
The solution: a different way to use jQuery in a Greasemonkey script, bascially thru the @require directive, nicely explained in Taw's blog here. ( You can check out the source code of my script right away here on OpenUserJS.



0 blog comments below




FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.