Skip to content

Instantly share code, notes, and snippets.

@lluchs
Created February 11, 2012 19:17
Show Gist options
  • Save lluchs/1803692 to your computer and use it in GitHub Desktop.
Save lluchs/1803692 to your computer and use it in GitHub Desktop.
Updates the URL when browsing with frames
// @include http://ccan.de/*
// @include http://www.ccan.de/*
if(parent != window && location.pathname.indexOf('navbar') == -1) {
parent.history.replaceState(null, '', location.pathname + location.search)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment