blob: 674253b5cefe7c64a39ce174c4352cf159c7f98b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import Mousetrap from 'mousetrap';
import $ from 'jquery';
/* open original article */
Mousetrap.bind('o', () => {
$('ul.side-nav li:nth-child(2) a i')[0].click();
});
/* mark as favorite */
Mousetrap.bind('s', () => {
$('ul.side-nav li:nth-child(5) a i')[0].click();
});
/* mark as read */
Mousetrap.bind('a', () => {
$('ul.side-nav li:nth-child(4) a i')[0].click();
});
/* delete */
Mousetrap.bind('del', () => {
$('ul.side-nav li:nth-child(6) a i')[0].click();
});
|