Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save VenkataRaju/68d444723f894b8cec78 to your computer and use it in GitHub Desktop.

Select an option

Save VenkataRaju/68d444723f894b8cec78 to your computer and use it in GitHub Desktop.
JSHint.com Homepage Customization GreaseMonkey Script
// ==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];
}
}
@VenkataRaju

Copy link
Copy Markdown
Author

Removes JSHint sidebar, moves metrics to left side and makes more room for code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment