2

I have a page as follows:

$(document).ready(function() { $('.loader').hide(); function do_nothing() { return false; } // prevent a second click for 10 seconds. :) $('a, form button.btn').not('.dropdown-toggle, #event-nav a, .form-signin button').on('click', function(e) { console.log('link clicked'); $('a').click(do_nothing); if ($(this).hasClass('btn')) { $(this).prop('disabled', true); $(this).closest('form').submit(); } else { $('form button.btn').not('.dropdown-toggle, #event-nav a, .form-signin button').prop('disabled', true); } $('.loader').show(); }); }); 

For some reason this triggers the Ad Blocker extension for Chrome/Firefox/etc. Any ideas as to what would cause this?

1 Answer 1

3

It turns out that Adblock Pro blocks ads primarily, if not only by matching against the URL.

If you are getting this error I would try to rename the file that is blocked to something else and see if the error persists.

In this case it seems that the filename 'prevent_doubleclick.js' was block based on the string 'doubleclick'.

Sign up to request clarification or add additional context in comments.

2 Comments

That's a rather aggresive filter, I don't think it's in the popular filter lists.
I didn't see anything on the Adblock Plus filter page with 'doubleclick' either, however changing to a name without doubleclick did stop it from being blocked.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.