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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

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