Skip to content

Instantly share code, notes, and snippets.

@manuelgu
Last active December 29, 2015 10:25
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 manuelgu/9e4fdb7c4d983bf74238 to your computer and use it in GitHub Desktop.
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!
// ==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