Last active
August 29, 2015 13:56
-
-
Save vitorhsb/9187013 to your computer and use it in GitHub Desktop.
Backtick - Add to Kippt it command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var w=window.open('https://kippt.com/extensions/new/?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title)+'&source=bp1¬es='+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.') | |
} | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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