Skip to content

Instantly share code, notes, and snippets.

@basiclines
Created May 14, 2012 14:54
Show Gist options
  • Save basiclines/2694424 to your computer and use it in GitHub Desktop.
Save basiclines/2694424 to your computer and use it in GitHub Desktop.
Reload CSS files in the current webpage
javascript:void(function(){var%20i,a,s;a=document.getElementsByTagName('link');for(i=0;i%3Ca.length;i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')%3E=0&&s.href)%20{var%20h=s.href.replace(/(&|%5C?)forceReload=\d+/,'');s.href=h+(h.indexOf('?')%3E=0?'&':'?')+'forceReload='+(new%20Date().valueOf())}}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment