Skip to content

Instantly share code, notes, and snippets.

@thinkjson
Created June 22, 2012 15:12
Show Gist options
  • Select an option

  • Save thinkjson/2973361 to your computer and use it in GitHub Desktop.

Select an option

Save thinkjson/2973361 to your computer and use it in GitHub Desktop.
Fix Pei Wei's web site
create a new bookmark, and use this for the url:
javascript:$("a").each(function(i, item) { if ($(item).attr('href')) $(item).attr({ href: $(item).attr('href').replace("javascript:location.href = 'http://' + hostname + '", "").replace("'","")}); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment