Created
July 26, 2011 00:57
-
-
Save jgallen23/1105669 to your computer and use it in GitHub Desktop.
The Hit List Bookmarklet
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
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") |
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
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