Skip to content

Instantly share code, notes, and snippets.

@webercoder
Last active December 13, 2015 18:38
Show Gist options
  • Select an option

  • Save webercoder/4956197 to your computer and use it in GitHub Desktop.

Select an option

Save webercoder/4956197 to your computer and use it in GitHub Desktop.
User JS file that removes unnecessary elements from the gameloft forums.
// ==UserScript==
// @name Gameloft Forums Readable
// @namespace Gameloft
// @description Make the site more readable and less in your face.
// @include http://onlinegames-forum.gameloft.com/*
// @include https://onlinegames-forum.gameloft.com/*
// @grant none
// @version 1
// ==/UserScript==
var newScript = document.createElement('script');
var newContent = document.createTextNode(" \
$('div.divBackground').css('background', 'white') \
.css('margin-top', '0') \
.css('width', '') \
.css('padding', '10px 0 0'); \
$('div.container').css('width', 'auto') \
.css('margin', '5px 20px'); \
$('#header').remove(); \
$('div.divLinkTreeBg').css('width', '99%'); \
$('div.divBackground>div').css('width', ''); \
$('div.divBackground div.container div.test').prepend('<h1 style=\"float:left;text-transform:uppercase;letter-spacing:1em;color:#622C00;font-family:Garamond;\">O&amp;C Forums</h1>'); \
$('#footerarea').remove(); \
$('div.signature img').remove(); \
");
newScript.appendChild(newContent);
document.body.appendChild(newScript);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment