Skip to content

Instantly share code, notes, and snippets.

@ValeriiVasin
Created April 30, 2012 19:30
Show Gist options
  • Select an option

  • Save ValeriiVasin/2561868 to your computer and use it in GitHub Desktop.

Select an option

Save ValeriiVasin/2561868 to your computer and use it in GitHub Desktop.
Refresh CSS on the fly
javascript:(function(){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())}}})()
@ValeriiVasin
Copy link
Copy Markdown
Author

Load this as bookmark on the sidebar and enjoy! Thanks to Paul Irish. http://goo.gl/FXDcy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment