Skip to content

Instantly share code, notes, and snippets.

@monde
Forked from joevandyk/gist:1279847
Created October 12, 2011 00:18
Show Gist options
  • Save monde/1279860 to your computer and use it in GitHub Desktop.
Save monde/1279860 to your computer and use it in GitHub Desktop.
refresh css js
javascript:(function(){var img = document.createElement('img'); img.src = "/css-refresh?" + Date.now(); var h,a,f;a=document.getElementsByTagName('link');for(h=0;h<a.length;h++){f=a[h];if(f.rel.toLowerCase().match(/stylesheet/)&&f.href){var g=f.href.replace(/(&|%5C?)forceReload=\d+/,'');f.href=g+(g.match(/\?/)?'&':'?')+'forceReload='+(new Date().valueOf())}};})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment