What does this code filter out?

General discussion about the NoScript extension for Firefox
Post Reply
Senior Member
Posts: 237
Joined: Sat Mar 21, 2009 6:29 pm

What does this code filter out?

Post by luntrus » Fri Feb 12, 2010 10:13 pm

Can random strings survive a round trip? How could this bug-code be used with NoScript?

Code: Select all

javascript:for(var link, i = 0; link = document.links[i]; ++i) { if
(link.href.match(/show_bug/) && (link.textContent.match(/round-trip/i) ||
link.textContent.match(/incorrect\sdecomp/i))) { var d = link.parentNode;
d.parentNode.removeChild(d); --i; } } void 0

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.317.2 Safari/532.9

User avatar
Giorgio Maone
Site Admin
Posts: 8957
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy

Re: What does this code filter out?

Post by Giorgio Maone » Fri Feb 12, 2010 10:32 pm

This seems to be a bookmarklet removing all the links to bug reports about "round-trip" or "incorrect decomp[ilation?]" from the page.
Nothing to be worried about.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6

Post Reply