Skip to content

Instantly share code, notes, and snippets.

@happiness801
Last active November 3, 2021 03:22
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 happiness801/48a588c4e3193b459f92408a45786c21 to your computer and use it in GitHub Desktop.
Save happiness801/48a588c4e3193b459f92408a45786c21 to your computer and use it in GitHub Desktop.
Sportsurge Improvements
// ==UserScript==
// @name Sportsurge Improvements
// @namespace http://onai.net/
// @version 0.1
// @description Removing junk for Sportsurge
// @author Kevin Gwynn
// @match https://sportsurge.net/*
// @grant none
// ==/UserScript==
(function() {
// Make sure jQuery is available
var gen = 0;var act=function(){gen=1;var script=document.createElement('script');script.src='//code.jquery.com/jquery-1.11.0.min.js';script.type='text/javascript';document.getElementsByTagName('head')[0].appendChild(script);};(!window.jQuery)?act():1;setTimeout(function(){console.log('jQuery '+(gen?'loaded: ':'existing: ')+(window.jQuery?jQuery().jquery:'no jQuery/load failed'));}, 500);
var fixStuff = function() {
console.log('KAG: Sportsurge Improvements...');
if (typeof jQuery === 'undefined') return;
// Remove stuff
jQuery('h1').closest('.row').remove();
jQuery('.introText').closest('.row').remove();
//jQuery('.row P').closest('.row').remove(); // Attempting to remove annoying CTA for Starring streams
jQuery('TR.stream-row').each(function(i, e) { jQuery('TD:not(:first)', e).remove(); });
}
fixStuff();
setTimeout(fixStuff, 2000);
setTimeout(fixStuff, 5000);
setTimeout(fixStuff, 8000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment