NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Java Tutorial Modo Leitura // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match http://docs.oracle.com/javase/tutorial/java/* // @grant none // @run-at document-end // @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js // ==/UserScript== (function() { 'use strict'; Array.prototype.forEach.call( document.querySelectorAll("div.header-container, #TopBar, #Footer"), function( node ) { node.parentNode.removeChild( node ); }); document.querySelector("#Contents").style.backgroundColor="#9da4a7"; document.querySelector("#PageContent").style.marginRight="350px"; document.querySelector("#PageContent").style.paddingRight="20px"; document.querySelector("#PageContent").style.paddingLeft="20px"; document.querySelector("#PageContent").style.borderRight="solid 2px #bac2c6"; document.querySelector("#PageContent").style.borderLeft="solid 2px #bac2c6"; Array.prototype.forEach.call(document.querySelectorAll("#PageContent h2"),function(node) { node.style.borderTop="solid"; }); Array.prototype.forEach.call(document.querySelectorAll(".linkAHEAD, .nolinkAHEAD"),function(node) { node.style.backgroundColor="#bac2c6"; node.style.marginLeft=0; node.style.paddingLeft="19.2px"; }); Array.prototype.forEach.call(document.querySelectorAll(".linkBHEAD, .nolinkBHEAD"),function(node) { node.style.backgroundColor="#c4cdd1"; node.style.marginLeft=0; node.style.paddingLeft="32px"; node.style.borderBottom="dashed 1px #bbc2c6"; }); })();