We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f49730 commit b967d47Copy full SHA for b967d47
1 file changed
JiandanHero/JiandanHero.user.js
@@ -3,7 +3,7 @@
3
// @name:en Jiandan Hero
4
// @name:zh-TW 煎蛋俠
5
// @namespace hoothin
6
-// @version 0.8
+// @version 1.0
7
// @description 为煎蛋jandan.net提供左右方向键快捷翻页、鼠标悬停显示大图、屏蔽指定用户发言等功能
8
// @description:en Tools for jandan.net
9
// @description:zh-TW 為煎蛋jandan.net提供左右方向鍵快捷翻頁、鼠標懸停顯示大圖、屏蔽指定用戶發言等功能
@@ -102,8 +102,10 @@
102
if(!type && bigImg.width>document.documentElement.clientWidth){
103
bigImg.width=document.documentElement.clientWidth;
104
}
105
- if(top+bigImg.height>document.documentElement.clientHeight){
106
- top=document.documentElement.clientHeight-bigImg.height;
+ if(top-bigImg.height<0){
+ top=0;
107
+ }else{
108
+ top-=bigImg.height;
109
110
if(left+bigImg.width>document.documentElement.clientWidth){
111
left=document.documentElement.clientWidth-bigImg.width;
0 commit comments