Block the FuckAdblock script

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
justAsking
Posts: 3
Joined: Wed Dec 23, 2015 5:25 pm

Block the FuckAdblock script

Post by justAsking »

A page I regularly use is now running this script:

Code: Select all

<script>
    function adBlockNotDetected() {
      //alert('AdBlock is not enabled');
    }
    // Function called if AdBlock is detected
    function adBlockDetected() {
      //alert('AdBlock is enabled');
      window.location.replace("/cards/empty");
      //$(location).attr('href', '/cards/empty')

    }
      $(document).on('ready page:load', function(event) {
       
        // Function called if AdBlock is not detected
        // Recommended audit because AdBlock lock the file 'fuckadblock.js' 
        // If the file is not called, the variable does not exist 'fuckAdBlock'
        // This means that AdBlock is present
        if(typeof fuckAdBlock === 'undefined') {
          adBlockDetected();
        } else {
          fuckAdBlock.onDetected(adBlockDetected);
          fuckAdBlock.onNotDetected(adBlockNotDetected);
          // and|or
          fuckAdBlock.on(true, adBlockDetected);
          fuckAdBlock.on(false, adBlockNotDetected);
          // and|or
          fuckAdBlock.on(true, adBlockDetected).onNotDetected(adBlockNotDetected);
        }
      });
    </script>
Updating my filters did not work, manually trying to add my own filter using suggestions found by searching did not work. Any suggestions for how to block this?

Thank you.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Block the FuckAdblock script

Post by mapx »

provide directly the page / site
justAsking
Posts: 3
Joined: Wed Dec 23, 2015 5:25 pm

Re: Block the FuckAdblock script

Post by justAsking »

mapx wrote:provide directly the page / site
Sure, any card viewed on mtgowikiprice.com

example:
https://www.mtgowikiprice.com/card/mbs/ ... d%20Famine

after the page loads it is redirected to:
https://www.mtgowikiprice.com/cards/empty
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Block the FuckAdblock script

Post by mapx »

add & test

Code: Select all

@@||mtgowikiprice.com^$generichide
@@||mtgowikiprice.com/assets/fuckadblock
@@||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$domain=mtgowikiprice.com
@@||pagead2.googlesyndication.com/pagead/js/*/show_ads_impl.js$domain=mtgowikiprice.com
justAsking
Posts: 3
Joined: Wed Dec 23, 2015 5:25 pm

Re: Block the FuckAdblock script

Post by justAsking »

mapx wrote:add & test

Code: Select all

@@||mtgowikiprice.com^$generichide
@@||mtgowikiprice.com/assets/fuckadblock
@@||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$domain=mtgowikiprice.com
@@||pagead2.googlesyndication.com/pagead/js/*/show_ads_impl.js$domain=mtgowikiprice.com
Perfect, thank you.
Locked