-
-
Save nckg/3450457 to your computer and use it in GitHub Desktop.
Run this jQuery script to update your css. Be creative and create a bookmarklet from it ;-)
This file contains 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
$("link[rel=stylesheet]").each(function(){ | |
var url = $(this).attr('href'); | |
url = url.replace(/\?tcnc=\d+/,'').replace(/\&tcnc=\d+/,''); | |
url += (url.indexOf('?')>0 ? '&' : '?') + 'tcnc=' + (new Date()).getTime(); | |
$(this).attr('href', url); | |
console.log('[UPDATED CSS] '+ url); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment