Skip to content

Instantly share code, notes, and snippets.

@maybecryptic
Created September 15, 2015 00:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maybecryptic/ea0dbdd59c363add0251 to your computer and use it in GitHub Desktop.
Save maybecryptic/ea0dbdd59c363add0251 to your computer and use it in GitHub Desktop.
noDonate
// ==UserScript==
// @name noDonate
// @namespace 9000
// @description Removes donate button from plug.dj
// @include https://plug.dj/*
// @version 1
// @grant none
// ==/UserScript==
var url = document.location.href;
var home = /https:\/\/plug\.dj\/tastycat/
if (home.test(url)) {
console.log("[noDonate] Started");
setTimeout(function() {
var donateBox = document.getElementById('donate-box');
if (donateBox) {
donateBox.remove();
console.log("[noDonate] Removed donate box");
}
$("#chat-messages").removeClass("show-donate");
console.log("[noDonate] Moved Chat");
document.getElementById('chat-messages').setAttribute("style","height: 750px");
console.log("[noDonate] All done!");
}, 20000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment