Last active
December 13, 2015 18:38
-
-
Save webercoder/4956197 to your computer and use it in GitHub Desktop.
User JS file that removes unnecessary elements from the gameloft forums.
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 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&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