Skip to content

Instantly share code, notes, and snippets.

@nckltcha
Created March 23, 2012 09:05
Show Gist options
  • Select an option

  • Save nckltcha/2168713 to your computer and use it in GitHub Desktop.

Select an option

Save nckltcha/2168713 to your computer and use it in GitHub Desktop.
Prowl Bookmarklet
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