Last active
July 21, 2016 15:39
-
-
Save cameronraysmith/19a5ce9a840b5c5fa52e8f7f3fe0207a to your computer and use it in GitHub Desktop.
multistopwatch-cleanup-chrome-extension
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
multistopwatch-cleanup-chrome-extension | |
get [jquery-2.0.3.min.js](https://code.jquery.com/jquery-2.0.3.min.js) |
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
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(); |
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
{ | |
"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