NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name EG Gone Wide // @namespace http://www.eurogamer.it // @description EuroGamer Forum Widescreen version // @include http://www.eurogamer.it/forum/* // @author megalomaniac // @version 1.03 // @grant none // ==/UserScript== var vv = document.getElementById('sidebar'); ver = document.createElement('div'); ver.innerHTML = '<li class="participants"><b>EG.Gone.Wide</b> version 1.03 by <a href="http://www.eurogamer.it/profiles/megalovemaniac">@megalovemaniac</a></li>'; vv.appendChild(ver); 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); } addGlobalStyle('#theTop {width:100% !important;} '); addGlobalStyle('#page {width:100% !important;} '); addGlobalStyle('#content.forum { width: 100% !important;}'); addGlobalStyle('div.content { width: 90% !important; margin-left:10%; background-color:rgba(231, 231, 231, 1);}'); addGlobalStyle('div.post { float:left !important; width: 80% !important;}'); addGlobalStyle('#reply { width: 97% !important;}'); addGlobalStyle('#reply div { width: 75% !important;}'); addGlobalStyle('#sidebar { width: 10% !important; top: 0px !important;}'); addGlobalStyle('li.follow { width: 80% !important;}'); addGlobalStyle('#sidebar li.social { width: 80% !important;}'); addGlobalStyle('li.category { width: 80% !important;}'); addGlobalStyle('p.breadcrumb { width: 98% !important; margin-left:0px !important;}'); addGlobalStyle('#sidebar a.tool.plain { width: 60% !important;}'); addGlobalStyle('#browserMaster.portable { width: 100% !important;}'); addGlobalStyle('div.poster.avatars { width: 180px !important;}'); addGlobalStyle('div.poster.avatars img { width: 100px !important; height: 100px !important;}'); addGlobalStyle('div.poster.avatars div { margin-top: 110px !important; margin-left: 12px !important;}'); addGlobalStyle('iframe.youtube-player { width: 560px !important; height: 315px !important;}'); addGlobalStyle('#leaderboard { min-height: 0px !important; padding: 1px; !important; }'); addGlobalStyle('.post {background-color:rgba(231, 231, 231, 1) !important;}'); addGlobalStyle('span.details {color:#000 !important;}'); addGlobalStyle('li.post {border-bottom: 1px solid #aaa !important; background-color:rgba(231, 231, 231, 1) !important;}'); addGlobalStyle('#header-content {margin-left:0px !important;}'); addGlobalStyle('.signature {border-top: 1px solid #aaa !important; color:#000 !important;}'); addGlobalStyle('#content ul.list li div.poster div a {font-size: 15px; !important;}'); var images = document.getElementsByClassName('avatar'); for(var i = 0; i < images.length; i++) { images[i].src= images[i].src.replace("45x45","100x100"); if (images[i].src.indexOf('user-842292')>-1) images[i].src="http://s3.amazonaws.com/rapgenius/poop.png"; } var str = window.location.pathname; var spl = str.split("/"); if (spl[2] == "category") { addGlobalStyle('#sidebar { width: 15% !important; top: 0px !important; position:absolute !important;}'); addGlobalStyle('div.content { width: 80% !important; margin-left:10%; background-color:rgba(231, 231, 231, 1);}'); addGlobalStyle('.forum { background-color:rgba(231, 231, 231, 1);}'); addGlobalStyle('#content ul.list li.thread.last-sticky { border-bottom: 4px solid rgba(121, 156, 245, 1);}'); } if (spl[2] == "groups" || spl[2] == "mentions" || spl[2] == "posted" || spl[2] == "mine" || spl[2] == "following") { addGlobalStyle('#sidebar { width: 15% !important; top: 0px !important; position:absolute !important;}'); addGlobalStyle('div.content { width: 80% !important; margin-left:10%; background-color:rgba(231, 231, 231, 1);}'); }