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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu betiği yüklemek için bir betik yöneticisi eklentisi yüklemeniz gerekecektir.

(Zaten bir betik yöneticim var, hadi yükleyelim!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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