Created
March 23, 2012 09:05
-
-
Save nckltcha/2168713 to your computer and use it in GitHub Desktop.
Prowl Bookmarklet
This file contains hidden or 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
| javascript:var http = new XMLHttpRequest();var url = "http://prowl.weks.net/publicapi/add";var apikey = "XXXXX";var application = "Work Browser";var evt = "Browser!";var description = encodeURIComponent(document.title.replace(/^\s*|\s*/g,%27%27))+ escape("\n") + encodeURIComponent(location.href);var params = "apikey="+apikey+"&application="+escape(application)+"&event="+escape(evt)+"&description="+description;http.open("POST", url, true);http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");http.send(params); | |
| javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://prowl.weks.net/publicapi/add?apikey=XXXXX&application=Work Browser&event=Send Link&description='+encodeURIComponent(p)+'&url='+encodeURIComponent(q)+'')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment