Forcefull adding of invisible links
Posted: Mon Aug 13, 2012 12:48 am
I just found something weird while using a Greasemonkey Script I wrote: for some reason did 2 links appear in the body that I added, but I didn't add them there nor where they actually visible.
They were inside of a hidden div that got added but NoScript added them also to the body because the site wasn't allowed to use JS.
It wasn't actually me who found out that it was NoScript, Ventero from the Greasemonkey IRC channel did that.
He was also so nice to host a demo page for it: http://ventero.de/temp/nstest.html
<Ventero> It's in the part where it tries to detect (and follow) JS redirects...
<Ventero> (for reference: the responsible part is ns.detectJSRedirects, more specifically lines 3841-3848 in NoScript 2.5)
They were inside of a hidden div that got added but NoScript added them also to the body because the site wasn't allowed to use JS.
It wasn't actually me who found out that it was NoScript, Ventero from the Greasemonkey IRC channel did that.
He was also so nice to host a demo page for it: http://ventero.de/temp/nstest.html
<Ventero> It's in the part where it tries to detect (and follow) JS redirects...
<Ventero> (for reference: the responsible part is ns.detectJSRedirects, more specifically lines 3841-3848 in NoScript 2.5)