Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cameronraysmith/19a5ce9a840b5c5fa52e8f7f3fe0207a to your computer and use it in GitHub Desktop.
Save cameronraysmith/19a5ce9a840b5c5fa52e8f7f3fe0207a to your computer and use it in GitHub Desktop.
multistopwatch-cleanup-chrome-extension
multistopwatch-cleanup-chrome-extension
get [jquery-2.0.3.min.js](https://code.jquery.com/jquery-2.0.3.min.js)
var updateElements = function(){
// change to dark style
document.getElementById("stylesheet").href = "dark.css";
// decrease size of clock
var dd = document.getElementById("display0");
dd.style.fontSize = "30px";
// delete unnecessary header material
var tt = document.getElementById('top');
var hh = document.getElementById('headbox');
tt.parentNode.removeChild(tt);
hh.parentNode.removeChild(hh);
// modify css to scale properly
document.getElementById("main").style.width= "400px";
document.getElementById("pagebox").style.width= "400px";
document.getElementById("page0").style.width= "400px";
}
// change timer to 0 decimal places
location.href="javascript:changeDecimals(0); void 0";
setTimeout(updateElements, 500); // execute 500 ms after load();
{
"manifest_version": 2,
"name": "Multistopwatch cleanup",
"version": "0.0.1",
"description": "multistopwatch interface cleanup.",
"permissions": [
"http://www.multistopwatch.com/",
"storage"
],
"web_accessible_resources": ["jquery-2.0.3.min.map"],
"content_scripts": [
{
"matches": ["http://www.multistopwatch.com/*"],
"js": ["jquery-2.0.3.min.js", "main.js"],
"run_at": "document_end",
"all_frames": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment