Skip to content

Instantly share code, notes, and snippets.

@happiness801
Last active December 14, 2022 05:01
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/1f639600b2c6b8afaf10bfb6d4f29ad2 to your computer and use it in GitHub Desktop.
Save happiness801/1f639600b2c6b8afaf10bfb6d4f29ad2 to your computer and use it in GitHub Desktop.
Improvements for StreamEast
// ==UserScript==
// @name StreamEast Improvements
// @namespace http://onai.net/
// @version 0.4
// @description Removing junk for StreamEast
// @author Kevin Gwynn
// @match https://www.streameast.live/*/
// @match https://www.streameast.io/*/
// @match https://www.streameast.is/*/
// @match https://www.streameast.xyz/*/
// @match https://www.thestreameast.to/*/
// @match https://www.thestreameast.io/*/
// @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: StreamEast Improvements...');
let jQuery = $ || jQuery;
// Remove footer
jQuery('.f1-footer').remove();
// Remove Header
jQuery('header.site-nav').remove();
// Remove ads
jQuery('main > .container').remove();
jQuery('a[donto]').remove();
// Remove "chat" feature
jQuery('div.col-lg-3.curated-space').remove();
// Make main container larger
jQuery('div.col-lg-9:first').removeClass('col-lg-9').addClass('col-lg-12');
// Remove top margin (left for top nav/header)
jQuery('body').css('margin-top', '0');
// Disable window.open
window.open = function (url, windowName, windowFeatures) { console.log('KAG: Window open attempted: %s', url); }
}
fixStuff();
setTimeout(fixStuff, 500);
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