Last active
December 29, 2015 10:25
-
-
Save manuelgu/9e4fdb7c4d983bf74238 to your computer and use it in GitHub Desktop.
Add this to a new Tampermonkey / Greasemonkey script and your replaymod.com experience will improve!
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 ReplayMod Enhancements | |
// @namespace https://www.replaymod.com/* | |
// @version 1.0 | |
// @description Adds a few enhancements to replaymod.com | |
// @author manuelgu | |
// @match https://www.replaymod.com/* | |
// @grant none | |
// ==/UserScript== | |
// Hide Sticky Threads | |
$(document).find(".panel-warning").hide(); | |
// Hide ads container | |
$(document).find(".ad-container").hide(); | |
// Hide footer | |
$(document).find("footer").hide(); | |
// Hide Jumbotron | |
$(document).find(".jumbotron").hide(); | |
// Add Padding to Container | |
addGlobalStyle('.container { padding-top: 20px; }'); | |
// FUNCTIONS | |
// Edit Global CSS | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment