Poky Bypass / Poki Ad Bypass

easy ad bypass for all poki games

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Poky Bypass / Poki Ad Bypass
// @version      1
// @description  easy ad bypass for all poki games
// @author       progressive
// @match        *://*/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=poki.com
// @grant        none
// @namespace https://greatest.deepsurf.us/users/1561336
// ==/UserScript==

/*

Most asked question: Why does the match have "*://* /*"? / Why does it run on all websites?

Answer: The are a lot of poki games, and some of them have their own domain.
Instead of listing all of them, the script runs on all websites,
but it does nothing if no Poki game is detected.
Also, you can turn off the userscript at any time.
Just to let you know, you can also paste this script in the console.

*/

(function() {
    "use strict";

    // support for console & userscript
    var win = Function("\"POKY BYPASS\";return this")();

    poky();
    function poky() {
        if ("PokiSDK" in win) {
            win.PokiSDK.rewardedBreak = () => new Promise(res => res(true));
            win.PokiSDK.commercialBreak = () => new Promise(res => res(true));
            win.PokiSDK.displayAd = () => {};
        }
        requestAnimationFrame(poky)
    }
})();