Skip to content

Instantly share code, notes, and snippets.

@Kowiz
Last active June 6, 2019 04:33
Show Gist options
  • Save Kowiz/1148dfc948ef3bf56859a93cdf5dec52 to your computer and use it in GitHub Desktop.
Save Kowiz/1148dfc948ef3bf56859a93cdf5dec52 to your computer and use it in GitHub Desktop.
// ==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