Greasy Fork

Loot Links Ad Skipper

Redirects to the publisher link if "loot" is in the URL

目前为 2023-12-02 提交的版本。查看 最新版本

// ==UserScript==
// @name         Loot Links Ad Skipper
// @namespace    mali
// @license      none
// @version      1
// @description  Redirects to the publisher link if "loot" is in the URL
// @author       malidev
// @match        https://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if (window.location.href.includes("loot")) {
        if (PUBLISHER_LINK) {
            window.location.href = PUBLISHER_LINK;
        } else {
            console.error("PUBLISHER_LINK variable is not defined on the page.");
        }
    }
})();