Twitch Raid Referral Remover

A simple script to remove the "?referrer=raid" from the URL after raiding to another streamer

目前為 2021-12-10 提交的版本,檢視 最新版本

// ==UserScript==
// @name           Twitch Raid Referral Remover
// @name:de        Twitch Raid Referral Entferner
// @description    A simple script to remove the "?referrer=raid" from the URL after raiding to another streamer
// @description:de Ein einfaches Userscript, um nach einem Raid von der URL den Tag `?referrer=raid` zu entfernen.
// @author         Tirre_G
// @homepage       https://greasyfork.org/en/scripts/436857-twitch-raid-referral-remover
// @namespace      https://greasyfork.org/en/users/53355
// @version        0.1.2
// @license	   The Unlicense 
// @icon           https://www.google.com/s2/favicons?domain=twitch.tv
// @match          *://*.twitch.tv/*
// @include        *://*.twitch.tv/*?referrer=raid
// @grant          none
// @run-at         document-start
// ==/UserScript==


(function() {
    'use strict';
    // listen for changes
    setInterval(function() {
        if (location.href.match(/\?referrer=raid/gi)){
            location.href = location.href.replace(/\?referrer=raid/gi,"");
        }
    }, 500);
})();