Bookmarklet suddenly broken

Discussion of general topics about Seamonkey
Post Reply
User avatar
raj_bhaskar
Posts: 1946
Joined: November 7th, 2002, 3:50 am
Location: Glasgow, Scotland
Contact:

Bookmarklet suddenly broken

Post by raj_bhaskar »

Hi folks, I've been using the following bookmarklet to toggle stylesheets on a webpage for ages without any problems, but in my newest build (2003-05-12-16 for Win2K) it's suddenly stopped working with no errors on the JS console. Any ideas:

Code: Select all

javascript:var i=0;if(document.styleSheets.length>0){var cs=!document.styleSheets[0].disabled;for(i=0;i<document.styleSheets.length;i++) document.styleSheets[i].disabled=cs;};void(cs=true);

TIA,
Raj.
User avatar
raj_bhaskar
Posts: 1946
Joined: November 7th, 2002, 3:50 am
Location: Glasgow, Scotland
Contact:

Post by raj_bhaskar »

Nobody willing to bite on this one?
michaell522
Posts: 2417
Joined: November 4th, 2002, 4:47 pm
Location: London, UK
Contact:

Post by michaell522 »

raj_bhaskar wrote:Nobody willing to bite on this one?

I can confirm that it doesn't work, but I don't know why, or if it's something that can/should be fixed in mozilla or in the bookmarklet...
Sander
Posts: 634
Joined: November 5th, 2002, 5:35 am
Location: The Netherlands, when not travelling

Post by Sander »

I've recently noticed that bookmarklets on image files seem to have stopped working as well. I want to bet it's some sort of security restriction recently checked in which is just a bit too restrictive. Haven't taken the time yet to look up the bug number for it, though it's undoubtedly filed already.
Post Reply