Orinz' URLz
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
1 result tagged canonical  ✕
gist: 134325 - GitHub http://gist.github.com/134325
Mon Jun 22 20:03:42 2009 cluster icon
  • goo.gl bookmarklet Bookmarklet - Marklets.com :
  • Jim Northover » Down for everyone or just me bookmarklet :
  • Protolize | Essential web tools in one place :
  • The Guide to Scrolling Animation Libraries :
  • 24 ways: Introducing UDASSS! :
archive.org

A bookmarklet to report the rev=canonical attribute if one exists, or alert if one does not.

Full copyable text:
javascript:(function(){var url=document.location;var links=document.getElementsByTagName('link');var found=0;for(var i=0,l;l=links[i];i++){if(l.getAttribute('rev')=='canonical'||(/alternate short/).exec(l.getAttribute('rel'))){found=l.getAttribute('href');break;}}if(!found){for(var i=0;l=document.links[i];i++){if(l.getAttribute('rev')=='canonical'){found=l.getAttribute('href');break;}}}if(found){prompt('URL:',found);}else{alert('No canonical url found.');}})();

del.icio.us bookmarklet favelet canonical rev=canonical shorturl javascript
1334 links, including 49 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn