Skip to content

Instantly share code, notes, and snippets.

@akatopo
Created December 14, 2013 17:26
Show Gist options
  • Save akatopo/7962125 to your computer and use it in GitHub Desktop.
Save akatopo/7962125 to your computer and use it in GitHub Desktop.

This is a command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

This command opens the addthis bookmarklet

void((function(svc) {var d=document,w=window,p=0,b=function(){if(!p){p=1;if(_atc.xol)_adr.onReady();if(w.addthis_sendto)addthis_sendto(svc||'bkmore',{product:'bmt-'+_atc.ver})}else{p=0;if(_atw)_atw.clb()}};if(!w._atc){var ol=w.addthis_onload||[],o=d.createElement('script');w.addthis_product = 'bmt-250';o.src='//s7.addthis.com/js/250/addthis_widget.js#domready=1&username=bookmarklet';ol.push(b);w.addthis_onload=ol;d.getElementsByTagName('body')[0].appendChild(o)}else b()})());
{
"name": "Addthis",
"description": "Bookmark or share any page",
"icon": "http://cache.addthiscdn.com/icons/v1/thumbs/32x32/addthis.png",
"link": "https://www.addthis.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment