Created
February 11, 2009 23:34
-
-
Save wfarr/62369 to your computer and use it in GitHub Desktop.
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
| function reddit_mod_up (I) { | |
| var articleId = reddit_getArticleId(I.buffer); | |
| if(articleId) | |
| I.buffer.top_frame.wrappedJSObject.mod("t3_" + articleId, 1); | |
| } | |
| function reddit_mod_down(I) { | |
| var articleId = reddit_getArticleId(I.buffer); | |
| if(articleId) | |
| I.buffer.top_frame.wrappedJSObject.mod("t3_" + articleId, 0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment