JS Bookmarklets - Firefox Nightly [14.0x]
Posted: Mon Mar 26, 2012 4:16 pm
Since about two or three nightly updates my JS Bookamarlets have stopped working unless I either:
1. Disable NoScript OR
2. Allow NoScript on each individual top level domain.
I guess I could report this to Firefox, but hope that someone at NoScript will be able to confirm this as a 'bug' and liaise with FireFox at a technical level if this is required.
Currently on NoScript 2.3.2.
Examples of type of Bookmarklets concerned :
<javascript:void(function(){window.scroll(438,390)}())>
OR
<javascript:(function(){if(document.getElementsByClassName){var%20t=document.getElementsByClassName("last-new-tweet")[0];if(t){window.scrollTo(0,t.offsetTop+t.offsetParent.offsetTop);}}else{var%20els=document.getElementsByTagName("div"),elsLen=els.length,pattern=new%20RegExp("(^|\\s)last-new-tweet(\\s|$)");for(var%20i=0;i<elsLen;i++){if(pattern.test(els.className)){window.scrollTo(0,els.offsetTop+els.offsetParent.offsetTop);break;}}}})();javascript:self.scrollBy(321,0);>
Hope this makes sense.
Regards
Fred F.
PS All is working fine in Firefox Aurora [13.0x]
1. Disable NoScript OR
2. Allow NoScript on each individual top level domain.
I guess I could report this to Firefox, but hope that someone at NoScript will be able to confirm this as a 'bug' and liaise with FireFox at a technical level if this is required.
Currently on NoScript 2.3.2.
Examples of type of Bookmarklets concerned :
<javascript:void(function(){window.scroll(438,390)}())>
OR
<javascript:(function(){if(document.getElementsByClassName){var%20t=document.getElementsByClassName("last-new-tweet")[0];if(t){window.scrollTo(0,t.offsetTop+t.offsetParent.offsetTop);}}else{var%20els=document.getElementsByTagName("div"),elsLen=els.length,pattern=new%20RegExp("(^|\\s)last-new-tweet(\\s|$)");for(var%20i=0;i<elsLen;i++){if(pattern.test(els.className)){window.scrollTo(0,els.offsetTop+els.offsetParent.offsetTop);break;}}}})();javascript:self.scrollBy(321,0);>
Hope this makes sense.
Regards
Fred F.
PS All is working fine in Firefox Aurora [13.0x]