I put the proper Bookmarklet wrapper around the functions from Bookmarklet for Archive.is to navivate to the canonical link (because especially Firefox needs them):
An immediately invoked function that returns no value or an expression preceded by the
voidoperator will prevent the browser from attempting to parse the result of the evaluation as a snippet of HTML markup:javascript:(function(){ //Statements returning a non-undefined type, e.g. assignments })();
It means they now have become these:
-
Archive.is: navigate canonical URL
javascript:(function(){location=document.querySelector('link[rel="canonical"]')?.href})(); -
Archive.is: prompt canonical URL
javascript:(function(){prompt("Anchor",document.querySelector('link[rel="canonical"]')?.href)})();
--jeroen





