Narrow.one AdBlock

Removes ALL ADS, including video ads, grants FREE REWARDS for x2 coins and ad item in the shop (no more ads for rewards), removes image ads (below the bow selector bar), and tracking and analytics from Narrow One! Enjoy :)

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name        Narrow.one AdBlock
// @namespace   cooluser1481
// @match       https://narrow.one
// @version     1.1.3
// @author      cooluser1481
// @description Removes ALL ADS, including video ads, grants FREE REWARDS for x2 coins and ad item in the shop (no more ads for rewards), removes image ads (below the bow selector bar), and tracking and analytics from Narrow One! Enjoy :)
// @license     GPL3
// @grant       none
// ==/UserScript==

(function(){
    function start(){
        if(!window.PokiSDK?.commercialBreak || !window.PokiSDK?.rewardedBreak) return setTimeout(start, 50);
        let replace = (...args)=>{
            console.log("[cooluser adblock] ad blocked!");
            return new Promise((resolve) => {
                resolve(true);
            });
            
        };
        // When it tries to load an ad, make it just do nothing
        window.PokiSDK.commercialBreak = replace;
        
        // Allow for removal of x2 coins and shop ads by not loading the ad and then instantally saying it worked
        window.PokiSDK.rewardedBreak = () => {
            console.log("[cooluser adblock] free reward gifted!");
            return new Promise((resolve) => {
                resolve(true);
            });
        };
    }
    start();
    setInterval(() => {
        start();
        // Clear img ads (below the bow selector bar) and also all the tracking iframes
        document.querySelectorAll("[class*='game-ad'], iframe").forEach((e) => e.remove());
    }, 50);
})();