Created
February 11, 2012 19:17
-
-
Save lluchs/1803692 to your computer and use it in GitHub Desktop.
Updates the URL when browsing with frames
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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