Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6938585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:30:43+00:00 2026-05-27T12:30:43+00:00

AdBlock sometimes fails to block popups, so using Greasemonkey I want to write my

  • 0

AdBlock sometimes fails to block popups, so using Greasemonkey I want to write my own popup blocker using jQuery.

Is there a way I can intercept the clicks and detect if it’s going to open a popup?

$('.popupLauncher').each(function(){
    if( /* $(this) will open a popup */ ){
        return false;
    }
});

With what can I replace /* $(this) will open a popup */ ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:30:44+00:00Added an answer on May 27, 2026 at 12:30 pm

    How do you open a popup using javascript ?

    window.open(url, etc, etc, etc);
    

    So in theory you can re-write the window.open function to do something else rather than opening a popup.

    window.open = null;
    

    However it might break the page scripts if window.open is undefined when being called.
    Therefore I think the best approach would be:

    window.open = function(){
       return;
    }
    

    I haven’t tested this code, but as i said, in theory it should work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there is a way to integrate the AdBlock Plus (or any similar addon
When writing filters for the Firefox Add-On 'Adblock Plus' you can write rules to
On my computer, I'm using a custom adblock based on HOSTS redirection (so I
Is there an option to block some content in web browser without ID of
I wish to block ALL my content from any users using an ad-blocking browser
I've seen the other question on here about loading jQuery in a Greasemonkey. Having
How to disable Firefox's addons Adblock Plus's Tab on sifr3-r436 text in Firefox update:
I have the following code: function show(){ var a=document.getElementById('somediv').style.display; a=block; } The above code
I have the following block code typedef BOOL(^FieldValidationBlock)(NSString *); FieldValidationBlock aBlock = ^(NSString *input){
Im one of the Users who use Adblock. And i love it. That question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.