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 :)

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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);
})();