Created
March 12, 2013 22:03
-
-
Save Schepp/5147513 to your computer and use it in GitHub Desktop.
Bookmarklet to have all stylesheets in the current page reload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){$('link[rel="stylesheet"]').each(function(){var url=$(this).attr('href').replace(/[\?&][^\?&=]+=[0-9]+$/,'');url += (url.indexOf('?') == -1 ? '?' : '&') + 'nocache=' + (new Date()).getTime();console.log(url);$(this).attr('href',url);});})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment