Last active
August 29, 2015 14:13
-
-
Save VenkataRaju/68d444723f894b8cec78 to your computer and use it in GitHub Desktop.
JSHint.com Homepage Customization GreaseMonkey Script
This file contains 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 JSHintHomePageCustomization | |
// @namespace http://sites.google.com/site/rajuutils/grease_scripts/JSHintHomePageCustomization | |
// @include http://jshint.com/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
customize(); | |
function customize() | |
{ | |
if(qs("div.CodeMirror") === null) | |
return setTimeout(customize, 400); | |
qs("div.sidebar").remove(); | |
applyStyle(qs("div.whiteboard").style, {left: "10px", right: "80%", width: "20%", marginTop: "0px"}); | |
applyStyle(qs("div.CodeMirror").style, {left: "21%", right: "0px", top: "0px", width: "79%"}); | |
function qs(qry) document.querySelector(qry); | |
function applyStyle(style, props) | |
{ | |
for (let prop in props) | |
style[prop] = props[prop]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removes JSHint sidebar, moves metrics to left side and makes more room for code