There are 15 previous versions of this script.
// ==UserScript==
// @name Userscripts Tag Fixes and Styles
// @namespace http://userscripts.org/users/23652
// @description Fixes tag lengths, re-styles tags, decreases some padding, and reduces font and link sizes.
// @include http://userscripts.org/*
// @include https://userscripts.org/*
// @copyright JoeSimmons
// ==/UserScript==
// addGlobalStyle
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);
}
// Global style
addGlobalStyle(''+
<><![CDATA[
pre, blockquote, code, td { max-width: 600px !important; }
#footer, #uservoice-feedback-tab, .sponsor {
display: none !important;
}
div.stats {
padding: 1px !important;
text-align: center !important;
margin-top: 0 !important;
border-width: 1px !important;
}
body { background: #FFF !important; }
pre {
color:#000 !important;
font-size:8pt !important;
max-width:600px !important;
background:#fff url('http://i37.tinypic.com/xkyeti.png') !important;
border:3px ridge #51C2FF !important;
padding:2px !important;
}
code {
color:#000 !important;
font-size:8pt !important;
max-width:600px !important;
background:#D7F2FF !important;
border:1px solid #0083C1 !important;
padding:0 2px 0 2px !important;
}
blockquote {
color:#000 !important;
font-size:9pt !important;
font-family:arial verdana monospace !important;
max-width:600px !important;
background:#EAF8FF url('http://i34.tinypic.com/316ky80.png') !important;
border:3px ridge #00F400 !important;
padding:2px !important;
}
#content {
border-width:0 2px 0 0 !important;
}
td {
padding: 0 0 0 2px !important;
}
a {
font-size: 10px !important;
font-family: Tahoma Arial Verdana !important;
}
]]></>);
// Thread or forum style
if(/^https?:\/\/userscripts\.org\/(topics|forums)/.test(document.URL))
addGlobalStyle(''+
<><![CDATA[
#content {
width: 800px !important;
}
#right, .lastpost {
display: none !important;
}
abbr.updated {
font: 10px Tahoma !important;
}
table tr td.inv {
background: #FFF !important;
}
]]></>);
