Skip to content

Instantly share code, notes, and snippets.

@jgallen23
Created July 26, 2011 00:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgallen23/1105669 to your computer and use it in GitHub Desktop.
Save jgallen23/1105669 to your computer and use it in GitHub Desktop.
The Hit List Bookmarklet
javascript:var addTask=function(a,b,c,d,e){window.location="thehitlist:///"+c+"/tasks?method=POST&title="+encodeURIComponent(a)+"&url="+encodeURIComponent(b)+"&startDate="+d+"&priority="+e};addTask(document.title,window.location,"inbox","t")
var addTask = function(title, url, location, startDate, priority) {
window.location = "thehitlist:///"+location+"/tasks?method=POST&title=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(url)+ "&startDate=" + startDate + "&priority=" + priority;
};
addTask(document.title, window.location, "inbox", 't');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment