Last active
June 6, 2019 04:33
-
-
Save Kowiz/1148dfc948ef3bf56859a93cdf5dec52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitch Remove Raid | |
// @namespace Kowiz | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.twitch.tv/* | |
// @grant none | |
// ==/UserScript== | |
setInterval(function() { | |
raidChecker(); | |
}, 60000); | |
function raidChecker() { | |
var url = document.URL; | |
if (url.includes("?referrer=raid")) { | |
window.location = (url).split('?')[0]; | |
} | |
} | |
window.addEventListener("hashchange", raidChecker, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment