Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2017 18:02
Show Gist options
  • Save anonymous/96f781d9f0e01dc4146598c1033dd791 to your computer and use it in GitHub Desktop.
Save anonymous/96f781d9f0e01dc4146598c1033dd791 to your computer and use it in GitHub Desktop.
document.querySelector('body');
function getRandomColor() {
var letters = '0123456789ABCDEF';
var color = '#';
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
setTimeout(() => {
document.querySelector('body').style.background = getRandomColor();
}, 100);
document.querySelector('body');
setTimeout(() => {
console.log('Hello Easy Auto Refresh!')
}, 1000);
// For use on http://www.intellicast.com/Local/WxMap.aspx
document.querySelector('body');
setTimeout(() => {
document.querySelector('#__wxMap_playPause').click();
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment