Skip to content

Instantly share code, notes, and snippets.

@asserchiu
Last active November 27, 2018 02:34
Show Gist options
  • Save asserchiu/73e577a739529d7ba53d to your computer and use it in GitHub Desktop.
Save asserchiu/73e577a739529d7ba53d to your computer and use it in GitHub Desktop.
Bookmarklets
// GoTo: Canonical URL of current page
javascript:(function(){document.location=document.querySelector("link[rel='canonical']").href;})();
// GoTo: Amazon ASIN URL (minimal URL for items)
javascript:(function(){document.location=document.location.origin+'/dp/'+document.getElementById('ASIN').value;})();
// Get: QR Code of current page
javascript:(function(){document.location="http://chart.apis.google.com/chart?chs=256x256&cht=qr&chld=|1&chl="+encodeURIComponent(document.location);})();
// Enable and Disable document design mode
// src: http://kopywritingkourse.com/edit-any-website-free-tool/
javascript:document.body.contentEditable='true';document.designMode='true';void 0;
javascript:document.body.contentEditable='false';document.designMode='false';void 0;
// Disable Quora ask for login prompt
javascript:document.location=document.location.origin+document.location.pathname+'?share=1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment