Skip to content

Instantly share code, notes, and snippets.

@mrchief
Created April 1, 2013 19:23
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 mrchief/5287050 to your computer and use it in GitHub Desktop.
Save mrchief/5287050 to your computer and use it in GitHub Desktop.
If you have host level blocking for ad domains, and those deal clicks land you to an "This page can't be displayed Error" because they can't be re-directed as intended, then this bookmarklet extracts the encoded Url and reloads the page with the direct Url.
javascript: (function(){var href=window.location.href;var loc=href.indexOf('url=');if(loc>0){var endLoc=href.indexOf('&',loc+4);endLoc=endLoc>0?endLoc:href.length;window.location.href=unescape(href.substring(loc+4,endLoc));}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment