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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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