diff --git a/README.markdown b/README.markdown index 80d6a33..564a87a 100644 --- a/README.markdown +++ b/README.markdown @@ -2,16 +2,28 @@ This is an upcoming reddit extension for Google Chrome. -1. It looks and functions just like reddit, but is API driven (I'm not just iframing reddit or anything). +### Roadmap -2. It is going to support everything reddit does, including share, report, and hide. +1. Share -- get it working or not? -3. Its submit dialog will bring up a submission box in the popup, and it will support subreddit suggestions as you type, and have a brand new function... Forced reposts! If something has already been posted to a subreddit you are trying to submit it to, the extension will append a URL query string to it so it still goes through. +2. Submission dialog for pages that haven't been submitted to reddit. -4. Once infobars come out of the expiremental API, I'll be implementing a UI similar to Socialite as well. +3. Submission dialog for pages that have been submitted to reddit, provided you're not reposting the same link to a subreddit. -5. I hope to open source this and get it officially endorsed by reddit in the same way Socialite and RedditAddict are. +4. Depending on user feedback, I might add special support for reposts. The extension could append a URL query string to it so it still goes through. + +5. Comment dialog for pages that are reddit comment pages. + +6. Comment dialog upon clicking an action (near save, hide, etc.) for all posts. + +7. **Privacy** - when [Fancy Settings](https://github.com/frankkohlhepp/fancy-settings) supports textareas, I'll add the capability to exclude domains and regular expression matches from being looked up. + +8. When infobars come out of the expiremental API, I may be implementing a UI similar to Socialite as well. However, [chromakode](https://github.com/chromakode)'s [shine](https://github.com/chromakode/shine) is more like Socialite, and our two extensions' functionalities have been taking different paths. + +9. I hope to open source this and get it officially endorsed by reddit in the same way Socialite and RedditAddict are. ## Known Issues ## -* After clicking a vote icon, the state doesn't *appear* to change unless you hover over it again. This is a [known bug in Google Chrome](http://code.google.com/p/chromium/issues/detail?id=77246). \ No newline at end of file +* After clicking a vote icon, hide, or report, the state may not *appear* to change unless you move your mouse over what you just clicked. However, often you move your mouse to get away from the element, so you won't usually see this. This is a [known bug in Google Chrome](http://code.google.com/p/chromium/issues/detail?id=77246). + +* Share doesn't work yet. \ No newline at end of file diff --git a/TODO.markdown b/TODO.markdown index cf5bd9a..9d420c3 100644 --- a/TODO.markdown +++ b/TODO.markdown @@ -1,55 +1,3 @@ -// UNSAVE -Request URL: http://www.reddit.com/api/unsave -Request Method: POST -Form Data: - id:FULLNAME - executed:unsaved - r:SUBREDDIT - uh:f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0 - renderstyle:html - -// SAVE -Request URL: http://www.reddit.com/api/save -Request Method: POST -Form Data: - id:FULLNAME - executed:saved - r:SUBREDDIT - uh:f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0 - renderstyle:html - -// SEARCH REDDIT NAMES -Request URL: http://www.reddit.com/api/search_reddit_names -Request Method: POST -Form Data: - query:rp - uh:f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0 - renderstyle:html - -// COMMENT IF ON COMMENTS PAGE, posting as top level of course, maybe save to localStorage until submitted? -Request URL: http://www.reddit.com/api/comment -Request Method: POST -Form Data: - thing_id:FULLNAME - text:**Bold**, *italic*, [link](http://minecraft.net), normal. - id:#form-FULLNAME01h - r:SUBREDDIT - uh:f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0 - renderstyle:html -Response: - {"jquery": [[0, 1, "call", ["#form-t3_i37mb01h"]], [1, 2, "attr", "find"], [2, 3, "call", [".status"]], [3, 4, "attr", "hide"], [4, 5, "call", []], [5, 6, "attr", "html"], [6, 7, "call", [""]], [7, 8, "attr", "end"], [8, 9, "call", []], [1, 10, "attr", "find"], [10, 11, "call", ["textarea"]], [11, 12, "attr", "attr"], [12, 13, "call", ["rows", 3]], [13, 14, "attr", "html"], [14, 15, "call", [""]], [15, 16, "attr", "val"], [16, 17, "call", [""]], [0, 18, "attr", "insert_things"], [18, 19, "call", [[{"kind": "t1", "data": {"parent": "t3_i37mb", "content": "<div class=\"thing id-t1_c20lkip even odd comment \" onclick=\"click_thing(this)\"><p class=\"parent\"><a name=\"c20lkip\" ></a></p><div class=\"midcol likes\" ><div class=\"arrow upmod\" onclick=\"$(this).vote('e221cf86a1de86a4fb7d6c41da38acd52f63162b', null, event)\" ></div><div class=\"arrow down\" onclick=\"$(this).vote('e221cf86a1de86a4fb7d6c41da38acd52f63162b', null, event)\" ></div></div><div class=\"entry likes\"><div class=\"collapsed\" style='display:none'><a href=\"#\" class=\"expand\" onclick=\"return showcomment(this)\">[+]</a><a href=\"http://www.reddit.com/user/KerrickLong\" class=\"author gray id-t2_4appr\" >KerrickLong</a><span class=\"userattrs\"></span>&#32;<span class=\"score dislikes\">-1 points</span><span class=\"score unvoted\">0 points</span><span class=\"score likes\">1 point</span>&#32; 162 milliseconds ago &nbsp;<a href=\"#\" class=\"expand\" onclick=\"return showcomment(this)\">(0 children)</a></div><div class=\"noncollapsed\" ><p class=\"tagline\"><a href=\"#\" class=\"expand\" onclick=\"return hidecomment(this)\">[&ndash;]</a><a href=\"http://www.reddit.com/user/KerrickLong\" class=\"author id-t2_4appr\" >KerrickLong</a><span class=\"userattrs\"></span>&#32;<span class=\"score dislikes\">-1 points</span><span class=\"score unvoted\">0 points</span><span class=\"score likes\">1 point</span>&#32; 162 milliseconds ago</p><form action=\"#\" class=\"usertext\" onsubmit=\"return post_form(this, 'editusertext')\" id=\"form-t1_c20lkip9nl\"><input type=\"hidden\" name=\"thing_id\" value=\"t1_c20lkip\"/><div class=\"usertext-body\"><div class=\"md\"><p><strong>Bold</strong>, <em>italic</em>, <a href=\"http://minecraft.net\" rel='nofollow'>link</a>, normal.</p></div>\n</div><div class=\"usertext-edit\" style=\"display: none\"><div><textarea rows=\"1\" cols=\"1\" name=\"text\" >**Bold**,&#32;*italic*,&#32;[link](http://minecraft.net),&#32;normal.</textarea></div><div class=\"bottom-area\"><span class=\"help-toggle toggle\" style=\"display: none\"><a class=\"option active \" href=\"#\" tabindex=\"100\" onclick=\"return toggle(this, helpon, helpoff)\" >formatting help</a><a class=\"option \" href=\"#\">hide help</a></span><span class=\"error TOO_LONG field-text\" style=\"display:none\"></span><span class=\"error RATELIMIT field-ratelimit\" style=\"display:none\"></span><span class=\"error NO_TEXT field-text\" style=\"display:none\"></span><span class=\"error TOO_OLD field-parent\" style=\"display:none\"></span><span class=\"error DELETED_COMMENT field-parent\" style=\"display:none\"></span><span class=\"error DELETED_LINK field-parent\" style=\"display:none\"></span><div class=\"usertext-buttons\"><button type=\"submit\" onclick=\"\" class=\"save\" style='display:none'>save</button><button type=\"button\" onclick=\"cancel_usertext(this)\" class=\"cancel\" style='display:none'>cancel</button><span class=\"status\"></span></div></div><table class=\"markhelp md\" style=\"display: none\"><tr style=\"background-color: #ffff99; text-align: center\"><td><em>you type:</em></td><td><em>you see:</em></td></tr><tr><td>*italics*</td><td><em>italics</em></td></tr><tr><td>**bold**</td><td><b>bold</b></td></tr><tr><td>[reddit!](http://reddit.com)</td><td><a href=\"http://reddit.com\">reddit!</a></td></tr><tr><td>* item 1<br/>* item 2<br/>* item 3</td><td><ul><li>item 1</li><li>item 2</li><li>item 3</li></ul></td></tr><tr><td>&gt; quoted text</td><td><blockquote>quoted text</blockquote></td></tr><tr><td>Lines starting with four spaces<br/>are treated like code:<br/><br/><span class=\"spaces\">&nbsp;&nbsp;&nbsp;&nbsp;</span>if 1 * 2 &lt 3:<br/><span class=\"spaces\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>print \"hello, world!\"<br/></td><td>Lines starting with four spaces<br/>are treated like code:<br/><pre>if 1 * 2 &lt 3:<br/>&nbsp;&nbsp;&nbsp;&nbsp;print \"hello, world!\"</pre></td></tr><tr><td>~~strikethrough~~</td><td><strike>strikethrough</strike></td></tr><tr><td>super^script</td><td>super<sup>script</sup></td></tr></table></div></form><ul class=\"flat-list buttons\"><li class=\"first\"><a href=\"http://www.reddit.com/r/Minecraft/comments/i37mb/what_if_notch_and_jeb_posted_their_tweets_here/c20lkip\" class=\"bylink\" rel=\"nofollow\" >permalink</a></li><li><a class=\"edit-usertext\" href=\"javascript:void(0)\" onclick=\"return edit_usertext(this)\">edit</a></li><li><form class=\"toggle del-button\" action=\"#\" method=\"get\"><input type=\"hidden\" name=\"executed\" value=\"deleted\"/><span class=\"option active\"><a href=\"#\" onclick=\"return toggle(this)\">delete</a></span><span class=\"option error\">are you sure? &#32;<a href=\"javascript:void(0)\" class=\"yes\" onclick='change_state(this, \"del\", hide_thing)'>yes</a>&#32;/&#32;<a href=\"javascript:void(0)\" class=\"no\" onclick=\"return toggle(this)\">no</a></span></form></li><li><a class=\"\" href=\"javascript:void(0)\" onclick=\"return reply(this)\">reply</a></li></ul></div></div><div class=\"child\" ></div><div class=\"clearleft\"><!--IE6sux--></div></div><div class=\"clearleft\"><!--IE6sux--></div>", "contentText": "**Bold**, *italic*, [link](http://minecraft.net), normal.", "link": "t3_i37mb", "replies": "", "contentHTML": "<div class=\"md\"><p><strong>Bold</strong>, <em>italic</em>, <a href=\"http://minecraft.net\" >link</a>, normal.</p></div>", "id": "t1_c20lkip"}}], false]], [0, 20, "call", ["#noresults"]], [20, 21, "attr", "hide"], [21, 22, "call", []]]} - -// DELETE COMMENT maybe? Undo posted top level comment? -Request URL: http://www.reddit.com/api/del -Request Method: POST -Form Data: - id:FULLNAME - executed:deleted - r:SUBREDDIT - uh:f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0 -Response: - {} - // IDEAS How about parsing imgur to look for direct AND imgur links? User preference to sort by freshness, score, comment count!