Skip to content

Commit 718f147

Browse files
committed
fix
1 parent 77abf5d commit 718f147

1 file changed

Lines changed: 34 additions & 18 deletions

File tree

HacgGodTurn.user.js

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
// @include http*://www.acgzone.org/*
4343
// @include http*://uraban.me/*
4444
// @include http*://www.uraban.me/*
45-
// @version 3.19.94
45+
// @version 3.19.95
4646
// @grant GM_notification
4747
// @grant GM_xmlhttpRequest
4848
// @run-at document-end
49-
// @require https://greasyfork.org/scripts/23522-od-js/code/odjs.js?version=154299
49+
// @require https://greasyfork.org/scripts/23522-od-js/code/odjs.js?version=154351
5050
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js
5151
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js
5252
// @license MIT License
@@ -74,12 +74,14 @@
7474
{
7575
name:"acglover",
7676
url:"http://www.acglover.top/",
77-
regex:/acglover\.top/
77+
regex:/acglover\.top/,
78+
offset:60
7879
},
7980
{
8081
name:"acgtf",
8182
url:"https://www.acg.tf/",
82-
regex:/acg\.tf/
83+
regex:/acg\.tf/,
84+
offset:50
8385
},
8486
{
8587
name:"tianshit",
@@ -91,59 +93,69 @@
9193
url:"https://www.acggj.com/",
9294
regex:/www\.acggj\./,
9395
hideOd:true,
94-
bbs:/bbs\.acggj\./
96+
bbs:/bbs\.acggj\./,
97+
offset:10
9598
},
9699
{
97100
name:"acg12",
98101
url:"https://acg12.com/",
99102
regex:/acg12\./,
100103
hideOd:true,
101-
downloadUrl:/acg12\.com\/download/
104+
downloadUrl:/acg12\.com\/download/,
105+
offset:55
102106
},
103107
{
104108
name:"moxacg",
105109
url:"http://www.moxacg.com/",
106110
regex:/moxacg\./,
107-
hideOd:true
111+
hideOd:true,
112+
offset:55
108113
},
109114
{
110115
name:"acg15",
111116
url:"http://www.acg15.com/",
112117
regex:/acg15\.com/,
113-
hideOd:true
118+
hideOd:true,
119+
offset:55
114120
},
115121
{
116122
name:"lifan",
117123
url:"http://lifanmoe.com/",
118-
regex:/lifanmoe\./
124+
regex:/lifanmoe\./,
125+
offset:55
119126
},
120127
{
121128
name:"nacg",
122129
url:"http://nacg.me/",
123130
regex:/nacg\.me/,
124-
hideOd:true
131+
hideOd:true,
132+
offset:65
125133
},
126134
{
127135
name:"idanmu",
128136
url:"http://www.idanmu.co/",
129-
regex:/idanmu\.co/
137+
regex:/idanmu\.co/,
138+
offset:10
130139
},
131140
{
132141
name:"sijihuisuo",
133142
url:"https://www.sijihuisuo.club/",
134143
regex:/sijihuisuo\.club/,
135-
innerPage:/sijihuisuo\.club\/(sj\/\d|\?p=\d)/
144+
innerPage:/sijihuisuo\.club\/(sj\/\d|\?p=\d)/,
145+
offset:115
136146
},
137147
{
138148
name:"acg18",
139149
url:"https://acg18.us/",
140-
regex:/acg18\./
150+
regex:/acg18\./,
151+
offset:55
141152
},
142153
{
143154
name:"zuiacg",
144155
url:"http://zuiacg.com/",
145156
regex:/zuiacg\./,
146-
hideOd:true
157+
hideOd:true,
158+
offset:75
147159
},
148160
{
149161
name:"galacg",
@@ -156,7 +168,8 @@
156168
url:"http://www.mhecy.com/",
157169
regex:/mhecy\./,
158170
downloadUrl:/www\.mhecy\.com\/\?page_id=\d+&code/,
159-
hideOd:true
171+
hideOd:true,
172+
offset:10
160173
},
161174
{
162175
name:"acgnz",
@@ -168,11 +181,12 @@
168181
name:"oomoe",
169182
url:"https://www.oomoe.moe/",
170183
regex:/oomoe\.moe/,
171-
hideOd:true
184+
hideOd:true,
185+
offset:10
172186
},
173187
{
174188
name:"acgzone",
175-
url:"https://acgzone.org/",
189+
url:"http://acgzone.org/",
176190
regex:/acgzone\.org|uraban\.me/
177191
}
178192
],
@@ -806,7 +820,9 @@
806820
function scrollArticle(a){
807821
curArticle=a;
808822
curArticle.classList.add("oD_sel");
809-
scrollToControl(curArticle);
823+
let pos=elementPosition(curArticle).y;
824+
if(curSite.offset)pos-=curSite.offset;
825+
scrollToControl(pos);
810826
}
811827

812828
var hasViewed=false;

0 commit comments

Comments
 (0)