Skip to content

Instantly share code, notes, and snippets.

@mtandre
Last active August 29, 2015 14:15
Show Gist options
  • Save mtandre/e0ca052b8639e3928fb8 to your computer and use it in GitHub Desktop.
Save mtandre/e0ca052b8639e3928fb8 to your computer and use it in GitHub Desktop.
Clickability Bookmarklet: cache buster - get fresh copy of page
//Clickability Bookmarklet: cache buster - get fresh copy of page
javascript:(function(){for(var a=window.location.search.substring(1),b="",c=0;8>c;c++)var d=Math.floor(26*Math.random()),b=b+"ABCDEFGHIJKLMnopqrstuvwxyz".substring(d,d+1);a=0<a.length?-1<a.indexOf("&c=")?a.replace(/&c=\w{7,9}/,"&c="+b):a+"&c="+b:"?c="+b;window.location.search=a;})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment