Skip to content

Commit

Permalink
Closes #65 Use the arrow keys to turn the page
Browse files Browse the repository at this point in the history
  • Loading branch information
sciooga committed Aug 7, 2017
1 parent 259e682 commit 84bc0eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions all.js
Expand Up @@ -19,3 +19,18 @@ $('.avatar').each(function(){
*/

//——————————————————————————————————双击回到顶部——————————————————————————————————


//——————————————————————————————————方向键切换上下页——————————————————————————————————

$('body').keyup(function(e) {
if (e.keyCode == 37) {
// 按下左键,上一页
$('[title=上一页]').click()
} else if (e.keyCode == 39) {
// 按下右键,上一页
$('[title=下一页]').click()
}
})

//——————————————————————————————————方向键切换上下页——————————————————————————————————
2 changes: 1 addition & 1 deletion manifest.json
@@ -1,6 +1,6 @@
{
"name": "v2ex plus",
"version": "1.2.6",
"version": "1.2.7",
"manifest_version": 2,
"description": "优雅便捷的 V2EX 扩展",
"background": {
Expand Down

0 comments on commit 84bc0eb

Please sign in to comment.