Skip to content

Instantly share code, notes, and snippets.

@chrisinajar
Last active December 11, 2015 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisinajar/4556830 to your computer and use it in GitHub Desktop.
Save chrisinajar/4556830 to your computer and use it in GitHub Desktop.
bookmarklet to reload all CSS on a given page
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();}) })()
@chrisinajar
Copy link
Author

only works on pages with jquery

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