Last active
December 11, 2015 06:08
-
-
Save chrisinajar/4556830 to your computer and use it in GitHub Desktop.
bookmarklet to reload all CSS on a given page
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
javascript:(function() { $("link[rel='stylesheet']").each(function(i, node) {var map = {};$.each(node.attributes, function(i, node) {map[node.name.toLowerCase()] = node.value;});$("<link />", map).appendTo('head');$(node).remove();}) })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
only works on pages with jquery