Page 1 of 1

Block new type of popup

Posted: Mon May 27, 2013 1:28 pm
by gggirlgeek
I apologize ahead of time for using such a controversial site but I haven't come across another example to link here.

On thepiratebay.sx a popup is generated when clicking many of the links. Marking the domain as completely untrusted stops them. However, it also prevents the use of any greasemonkey scripts and prevents the user from being able to see the list of files included in the download (when clicking the numbered link beside "Files" within a torrent's description.)

Would the developers consider adding a fix for this type of script? I believe Adblocker has a way of doing it but I've never needed it up to now and don't want to add yet another extension to complicate my setup (noscript latest/Firefox 21).


Update: I looked for a Greasemonkey script to block the popups but none work so far. I also searched here for a way to get Noscript to allow greasemonkey scripts but didn't find much. There was a discussion here but I didn't understand how to apply the solution.

Re: Block new type of popup

Posted: Tue May 28, 2013 3:54 am
by Thrawn
What you want is a surrogate script. You'll need to be familiar with JavaScript, though, or have someone take the time to pick apart the JavaScript on that site and figure out how to neuter it.

Re: Block new type of popup

Posted: Tue May 28, 2013 9:14 am
by Giorgio Maone
Could you please point out the exact URL of a page where this happens, and possibly steps to reproduce reliably?

Re: Block new type of popup

Posted: Sat Jun 01, 2013 1:58 pm
by gggirlgeek
Go to http://thepiratebay.sx/search/ubuntu%2013.04/0/99/0
Click on any of the results. A popup comes up. It also comes up when you place your cursor in the search box to type a new search. The only way to stop the popups is to mark the entire domain as untrusted.

Re: Block new type of popup

Posted: Sat Jun 01, 2013 7:52 pm
by gggirlgeek
Actually most of the Greasemonkey script I use is working. See here for reference: The Piratebay Cleaner.

It's just a few buttons which bring up light boxes that are not working when the domain is marked untrusted in Noscript. 2 are internal links and 1 is an external link. I have drawn red boxes around them below.

Image
Not working: Amazon, Info, and Comments buttons (all lightboxed.)

So if someone could help me get these to work, or to block the stubborn popups I would be eternally grateful.

Thanks.

Re: Block new type of popup

Posted: Sun Jun 02, 2013 12:37 pm
by therube
You could try this with AdblockPlus, Block ALL advertisements on The Pirate Bay.

Did you try disabling your Greasemonkey script to see if your buttons then do work?

Re: Block new type of popup

Posted: Tue Jun 04, 2013 2:10 pm
by gggirlgeek
Like I said, I already have a thousand extensions. I don't want to add Adblock Plus to the mix for 1 silly site. (I indeed disabled them all to make sure.) I guess it just irks me that they are able to get around us like this. I don't like people controlling my browser. That's why I use Noscript -- to browse distraction-free and unmolested.

Re: Block new type of popup

Posted: Mon Jun 10, 2013 3:17 am
by Thrawn
A surrogate script can do this job, but you'll need to delve into the JavaScript so you can figure out what to write in order to intercept and destroy the popup.