We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d094142 commit 5deddb7Copy full SHA for 5deddb7
1 file changed
V2ex-Enhanced.user.js
@@ -1,6 +1,6 @@
1
// ==UserScript==
2
// @name V2EX 增强
3
-// @version 1.0.2
+// @version 1.0.3
4
// @author X.I.U
5
// @description 自动签到、自动无缝翻页、回到顶部(右键点击两侧空白处)
6
// @match *://v2ex.com/*
@@ -195,7 +195,7 @@
195
196
// 回到顶部(右键点击空白处)
197
function backToTop() {
198
- document.getElementById("Wrapper").oncontextmenu = function(event){
+ document.getElementById("Wrapper").oncontextmenu = document.querySelector("#Wrapper > .content").oncontextmenu = function(event){
199
if (event.target==this) {
200
event.preventDefault();
201
window.scrollTo(0,0)
0 commit comments