Forked from Srikanth-AD/bookmarklet-canonical-url
Last active
December 29, 2016 18:02
-
-
Save iamdanw/a750c305e9813dde34c793e4beeea357 to your computer and use it in GitHub Desktop.
Bookmarklet - visit canonical URL of current page
This file contains 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
javascript: (function(){var e=document.location;var t=document.getElementsByTagName("link");var n=window.location+"";for(var r=0,i;i=t[r];r++){if(i.getAttribute("rel")=="canonical"){n=i.getAttribute("href");break}}window.location=n})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment