There are 6 previous versions of this script.
// ==UserScript==
// @name Wikipedia Print Layout Optimizer
// @namespace http://userscripts.org/users/79816
// @description Removes unnecessary elements from Wikipedia print layout
// @version 1.0.2
// @copyright 2009, ulrichb
// @include http://*.wikipedia.org/wiki/*
// ==/UserScript==
(function () { // function wrapper for Opera
function addGlobalStyle(cssContentText) {
var headElement;
var styleElement;
headElement = document.getElementsByTagName('head')[0];
if (headElement) {
styleElement = document.createElement('style');
styleElement.type = 'text/css';
styleElement.innerHTML = cssContentText;
headElement.appendChild(styleElement);
}
}
var disableUnimportantPrintStylesText =
"@media print {\n" +
" .firstHeading { margin-top: 0; padding-top: 0; }\n" +
" #siteSub { display: none; }\n" +
" \n" +
" .printfooter { display: none; }\n" +
" #catlinks, .catlinks { display: none; }\n" +
" #footer { display: none; }\n" +
"}";
addGlobalStyle(disableUnimportantPrintStylesText);
})(); // function wrapper for Opera
