Last active
August 29, 2015 14:09
-
-
Save cwparsons/7335cb49a623773405d2 to your computer and use it in GitHub Desktop.
Refresh CSS
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(){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())}}})() |
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
(function() { | |
var links = document.getElementsByTagName('link'), | |
link, | |
host = 'auth'; | |
for (var i = 0; i < links.length; i++) { | |
link = links[i]; | |
if (link.rel.toLowerCase().match(/stylesheet/) && link.href) { | |
var g = link.href.replace(/(&|%5C?)forceReload=\d+/, ''); | |
g = g.replace(location.hostname, host); | |
link.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