Skip to content

Instantly share code, notes, and snippets.

@vitorhsb
Last active August 29, 2015 13:56
Show Gist options
  • Save vitorhsb/9187013 to your computer and use it in GitHub Desktop.
Save vitorhsb/9187013 to your computer and use it in GitHub Desktop.
Backtick - Add to Kippt it command
(function(){
var w=window.open('https://kippt.com/extensions/new/?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+'&source=bp1&notes='+encodeURIComponent(''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text)),'kippt','width=400,height=245,location=0,links=0,scrollbars=0,toolbar=0');
if(w) {
setTimeout(function() {w.focus()}, 100);
} else {
alert('It seems that you have a popup blocker. Please, hold the CTRL-key and try again.')
}
})();
{
"name": "Add to Kippt",
"description": "Kippt - Add to Kippt Command.",
"icon": "http://blog.kippt.com/img/kippt-logo-86.png",
"link": "http://kippt.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment