Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add twitter

  • Loading branch information...
commit cc5f135d64fe3bd275b3f8eacf28cdb6d5e6a161 1 parent 42e606e
@dewski authored
Showing with 7 additions and 1 deletion.
  1. +2 −1  README.md
  2. +5 −0 twitter.com.js
View
3  README.md
@@ -10,8 +10,9 @@ For every site that doesn't support it, a kitten weeps. Here's to fixing that.
## Supported Sites
- [dribbble](dribbble.com.js)
-- [reddit](reddit.com.js)
- [hackernews](news.ycombinator.com.js)
+- [reddit](reddit.com.js)
+- [twitter](twitter.com.js)
## Contributing
View
5 twitter.com.js
@@ -0,0 +1,5 @@
+$(document).on('keydown', '.tweet-box[contenteditable]', function(e) {
+ if(e.keyCode == 13 && (e.metaKey || e.ctrlKey)) {
+ $(this).parents('form').find('.tweet-action').click()
+ }
+})
Please sign in to comment.
Something went wrong with that request. Please try again.