Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add reddit

  • Loading branch information...
commit a61000164bc98394b1ed96fc3a397a055ca63e9c 1 parent 27291fb
Garrett Bjerkhoel authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 reddit.com.js
5 reddit.com.js
View
@@ -0,0 +1,5 @@
+$(document).on('keydown', '.usertext-edit textarea', function(e) {
+ if(e.keyCode == 13 && (e.metaKey || e.ctrlKey)) {
+ $(this).parents('form').submit()
+ }
+})
Please sign in to comment.
Something went wrong with that request. Please try again.