Page 1 of 1

NoScript Causes Script To Run Wrongly

Posted: Sat Oct 31, 2009 12:45 am
by rex922
Hello,
It Seems that no script causes problems to run some scripts like bookmarklets.It seems to run them twice causing 2 popups but if i globally allow scripts it works fine although i already have allowed all scripts on that page.

Please Advise

Re: NoScript Causes Script To Run Wrongly

Posted: Sat Oct 31, 2009 12:58 am
by Tom T.
Examples of some URLs where this happens?

Re: NoScript Causes Script To Run Wrongly

Posted: Sat Oct 31, 2009 1:42 am
by therube
And which bookmarklets (& URLs).

Re: NoScript Causes Script To Run Wrongly

Posted: Sat Oct 31, 2009 2:12 am
by rex922
so far i only have found this to not work riight it gives me 2 dialog box popups instead of one
javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http%3A%2F%2Fwww.spockholm.com%2Fmafia%2FattackX-live.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B

Link To other bookmarklets:
http://www.spockholm.com/mafia/bookmarklets.php

Re: NoScript Causes Script To Run Wrongly

Posted: Mon Nov 02, 2009 9:20 am
by Guest
I can confirm that bookmarklets are run more than once and also produce an error when doing so:

Error: window.__runTimeouts is not a function
Source File: javascript:window.__runTimeouts()%3B%20void(0)%3B
Line: 1

The problem goes away when I disable the NoScript plugin. Sometimes, I can see the toolbar button flickering when it has been clicked.

One oddity is that not all bookmarklets do this. I drag and dropped this bookmarklet off a web page and this is the one with problems, specifically, the script is loaded (at least) twice.

javascript:(function(){var%20s=document.getElementsByTagName('head')[0].appendChild(document.createElement('script'));s.type='text/javascript';s.src='http://que.es.esto/nada.js';})();

I also typed out a bookmarklet that is NOT displaying this problem for me.
javascript:%20(%20function()%20{%20document.body.appendChild(document.createTextNode('blah'))}%20)();

Well, I hope this post helps clarify this issue so I can use NoScript again.