Topic: How do I block new windows (firefox)?

Posted under Off Topic

Anyone know how to block the spam windows of advertisements when you click on something like to play a video or download a torrent or something?

I have noticed a few torrent sites have a few of these, and I cant figure out a way to block them on firefox. Now I would normally ignore this but now it seems someone fucked with a few sites to make these popups full loud videos of porn....and its getting annoying hearing random moans when I am trying to torrent a movie -.-

...Help, anyone?

Some open quickly then poof on their own....others stick around as a new window -.- How can I stop this?

Updated by 123easy

Patchi said:
Google.

Most fixs for this problem I have found are outdated...soo asking here :v

Updated by anonymous

Xch3l said:
3 words: Custom userscript.

Thats 2 words....and no clue how to do that. Anything else?

Updated by anonymous

Conker said:
Thats 2 words....and no clue how to do that. Anything else?

You didn't count all the words :V

Get greasemonkey and create a new script (give it any name and description, for the includes, change everything to *).

Then paste this
(function() {
  var wopen = window.open; // Store the original function, we'll need it in case we want to open that window
  window.open = function(URL,name,specs,replace) {
    var ignore = /(cpmrocket|popads|tribalfusion)/; // Popups from sites that contain these words will not be allowed.
    // To add more, type "|word"* at the end of the list (before the ")/").
 
    // * 'word' being the name of the site address. f.e. the word for www.annoyme.com would be 'annoyme'.
    // If you want to include the whole name ('www.annoyme.com'), insert a backslash ("\") before each dot.
 
    // Only exception would be "about:blank"

    if(!ignore.test(URL) && window.confirm('Popup blocked from:\n"'+URL+'"\n\nOpen?'))
      wopen(URL,name,specs,replace);
  }
})();

I had it already (for my phone, which does not have an extensions option), it was just missing the informative comments :)

Updated by anonymous

adblock plus, get the adblock plus addon popup blocker.

Updated by anonymous

Check your add-ons if bettersurf is there, or any of the conduit counterparts (basically anything with a web in it or like "search")
Also get adblock (not plus, it has exceptions) for firefox

Updated by anonymous

Moon_Moon said:
Check your add-ons if bettersurf is there, or any of the conduit counterparts (basically anything with a web in it or like "search")
Also get adblock (not plus, it has exceptions) for firefox

Mozilla recently like, totally disabled bettersurf, but that doesn't mean it isn't still there.

Updated by anonymous

I was going to suggest AdBlock too, but you know, it's an adblocker...

Updated by anonymous

Xch3l said:
I was going to suggest AdBlock too, but you know, it's an adblocker...

When I use it on whatever site that tries to open a new window with an advertisement, it automatically closes that new window for me :P

Updated by anonymous

123easy said:
adblock plus, get the adblock plus addon popup blocker.

I have ad blocker plus and easylist, but I see no way to block these pop up windows. I know some sites when these open they auto close (I guess thats my adblocker), but some stay open. So its not all of them that are blocked. Is there some new easylist kinda thing that will add the newer pop up windows?

Xch3l said:
You didn't count all the words :V

Get greasemonkey and create a new script (give it any name and description, for the includes, change everything to *).

Then paste this
(function() {
  var wopen = window.open; // Store the original function, we'll need it in case we want to open that window
  window.open = function(URL,name,specs,replace) {
    var ignore = /(cpmrocket|popads|tribalfusion)/; // Popups from sites that contain these words will not be allowed.
    // To add more, type "|word"* at the end of the list (before the ")/").
 
    // * 'word' being the name of the site address. f.e. the word for www.annoyme.com would be 'annoyme'.
    // If you want to include the whole name ('www.annoyme.com'), insert a backslash ("\") before each dot.
 
    // Only exception would be "about:blank"

    if(!ignore.test(URL) && window.confirm('Popup blocked from:\n"'+URL+'"\n\nOpen?'))
      wopen(URL,name,specs,replace);
  }
})();

I had it already (for my phone, which does not have an extensions option), it was just missing the informative comments :)

You posted it as 2 words :P

Updated by anonymous

Butterscotch said:
When I use it on whatever site that tries to open a new window with an advertisement, it automatically closes that new window for me :P

I know that. I just realized I always go for the hard route first >_<

Conker said:
You posted it as 2 words :P

"words", "custom" and "userscript" :P

Updated by anonymous

Conker said:
I have ad blocker plus and easylist, but I see no way to block these pop up windows. I know some sites when these open they auto close (I guess thats my adblocker), but some stay open. So its not all of them that are blocked. Is there some new easylist kinda thing that will add the newer pop up windows?

Sounds like you might have........a virus

Updated by anonymous

TheHuskyK9 said:
Sounds like you might have........a virus

Na, I just think some sites have found more ways for popups...I know 95% of them are auto closed, but its the last 5% that worries me. Besides, I tracked it to just some certain sites, I just wonder if there is a way to add more things to this popup window list like there is for blocking ads on websites.

Updated by anonymous

Yahoo Ads always used to bypass my popup blocker and there were even ads on it that tried to install APKs on my phone. It's now on my router's blacklist and I haven't had popups on any site since.

Updated by anonymous

Conker said:
I have ad blocker plus and easylist, but I see no way to block these pop up windows. I know some sites when these open they auto close (I guess thats my adblocker), but some stay open. So its not all of them that are blocked. Is there some new easylist kinda thing that will add the newer pop up windows?

It's a separate addon called AdblockPlus Popup Blocker. https://addons.mozilla.org/en-US/firefox/addon/adblock-plus-pop-up-addon/ This blocks any window from forcing itself open, but doesn't prevent you from opening any pages in new windows. It's basically required for any site's viewing, in my books.

Updated by anonymous

Conker said:
will that block the site's irc box that opens asking to run the irc? :v

It will not block any Firefox internal windows, an it will have a bar at the top of the screen for any blocked popups that you can view and allow, if you're trying to open something and it's coded (poorly) to open as a popup window. You can also set it to specifically only run off of your ABP settings, so only sites you block will have popups stopped.

This all said, to specifically answer your question, no it does not. Also, you should get a proper IRC client. :P

Updated by anonymous

  • 1