Skip to content

Instantly share code, notes, and snippets.

@Soulflare3
Forked from maybecryptic/noDonate.user.js
Last active September 15, 2015 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Soulflare3/eeafb3e391bbb2b4e930 to your computer and use it in GitHub Desktop.
Save Soulflare3/eeafb3e391bbb2b4e930 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