Skip to content

Instantly share code, notes, and snippets.

@brianw
Created March 24, 2009 15:35
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 brianw/84161 to your computer and use it in GitHub Desktop.
Save brianw/84161 to your computer and use it in GitHub Desktop.
<script>
setInterval(function() {
var images = document.getElementsByTagName('img');
for(var i = 0; i < images.length; i++) {
var image = images[i];
var source = image.src;
if( source.indexOf('?') != -1 ) {
source = source.substring(0, source.indexOf('?'));
}
image.src = source + '?' + Math.floor(Math.random()*1000000);
}
}, 60000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment