Skip to content

Instantly share code, notes, and snippets.

@Riley2025
Last active August 29, 2015 14:20
Show Gist options
  • Save Riley2025/2182e53e6834c40f1586 to your computer and use it in GitHub Desktop.
Save Riley2025/2182e53e6834c40f1586 to your computer and use it in GitHub Desktop.
TagPro Remover
// ==UserScript==
// @name TagPro Remover
// @description Removes several elements of the main server page, ball page, and in-game score-sheet.
// @version 0.5
// @include http://*.koalabeast.com*
// @include http://*.jukejuice.com*
// @include http://*.newcompte.fr*
// @require https://code.jquery.com/jquery-1.11.3.min.js
// @license 2015
// @author Riley_2025, with much help from /msg, bizkut_ and ylambda
// @updateURL https://gist.github.com/Riley2025/2182e53e6834c40f1586/raw/remover.meta.js
// @downloadURL https://gist.github.com/Riley2025/2182e53e6834c40f1586/raw/remover.user.js
// @grant none
// ==/UserScript==
// OPTIONS
var hidePrivacyPolicy = true, //hides the "Privacy Policy" link next to the "Map Statistics"
hideControls = true, //hides the "movement, wasd works" icons and text
hideLinks = true, //hides the reddit, twitter, and facebook links
hideCodeofConduct = true; //hides the "Code of Conduct" link
// END OPTIONS. Only the bravest dare go on.
$(document).ready(function(){
if (hideCodeofConduct === true) {
$( "a:contains('Code of Conduct')" ).hide()
}
if (hidePrivacyPolicy === true) {
$( "a:contains('Privacy Policy')" ).hide()
}
if (hideControls === true) {
document.getElementsByClassName("controls")[0].style.display = "none";
}
if (hideLinks === true) {
document.getElementsByClassName("lineup")[0].style.display = "none";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment