Block new type of popup

Bug reports and enhancement requests
Post Reply
gggirlgeek
Posts: 9
Joined: Fri Apr 27, 2012 11:07 pm

Block new type of popup

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Block new type of popup

Post 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.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Block new type of popup

Post by Giorgio Maone »

Could you please point out the exact URL of a page where this happens, and possibly steps to reproduce reliably?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
gggirlgeek
Posts: 9
Joined: Fri Apr 27, 2012 11:07 pm

Re: Block new type of popup

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
gggirlgeek
Posts: 9
Joined: Fri Apr 27, 2012 11:07 pm

Re: Block new type of popup

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Block new type of popup

Post 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?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 SeaMonkey/2.19a2
gggirlgeek
Posts: 9
Joined: Fri Apr 27, 2012 11:07 pm

Re: Block new type of popup

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Block new type of popup

Post 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.
Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0
Post Reply