Skip to content

Commit d824efd

Browse files
committed
fix
1 parent f3853e0 commit d824efd

1 file changed

Lines changed: 12 additions & 28 deletions

File tree

HacgGodTurn.user.js

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// @include http*://acgmoon.*
4747
// @include http*://www.moe-acg.cc/*
4848
// @include http*://htai.*
49-
// @version 3.20.27
49+
// @version 3.20.28
5050
// @grant GM_notification
5151
// @grant GM_xmlhttpRequest
5252
// @run-at document-end
@@ -163,7 +163,7 @@
163163
name:"mhecy",
164164
url:"http://www.mhecy.com/",
165165
regex:/mhecy\./,
166-
downloadUrl:/www\.mhecy\.com\/\?page_id=\d+&code/,
166+
downloadUrl:/www\.mhecy\.com\/\?page_id=\d+/,
167167
hideOd:true,
168168
offset:55
169169
},
@@ -328,14 +328,6 @@
328328
articleSel="section.card";
329329
if(isHttps)
330330
addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.|static\\\.)?acg12','ps:$1$2acg12']]]);
331-
if(curSite.downloadUrl.test(location.href)){
332-
t=window.setInterval(function(){
333-
if(document.querySelector('.btn-success')){
334-
clearInterval(t);
335-
process();
336-
}
337-
},1000);
338-
}
339331
curSite.getDownPass=function(target){
340332
var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control');
341333
if(pass2)target.href+='#'+pass2.value;
@@ -401,29 +393,13 @@
401393
break;
402394
case "lifan":
403395
articleSel="section.card";
404-
if(curSite.downloadUrl.test(location.href)){
405-
t=window.setInterval(function(){
406-
if(document.querySelector('.btn-success')){
407-
clearInterval(t);
408-
process();
409-
}
410-
},1000);
411-
}
412396
curSite.getDownPass=function(target){
413397
var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control');
414398
if(pass2)target.href+='#'+pass2.value;
415399
};
416400
break;
417401
case "moe-acg":
418402
articleSel="section.card";
419-
if(curSite.downloadUrl.test(location.href)){
420-
t=window.setInterval(function(){
421-
if(document.querySelector('.btn-success')){
422-
clearInterval(t);
423-
process();
424-
}
425-
},1000);
426-
}
427403
curSite.getDownPass=function(target){
428404
var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control');
429405
if(pass2)target.href+='#'+pass2.value;
@@ -561,8 +537,8 @@
561537
case "mhecy":
562538
articleSel="section.card";
563539
curSite.getDownPass=function(target){
564-
var pass=target.parentNode.parentNode.querySelector('input.pwd');
565-
if(pass&&pass.id.indexOf("download-pwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value;
540+
var pass=target.parentNode.parentNode.parentNode.querySelector('input.form-control');
541+
if(pass&&pass.id.indexOf("downloadPwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value;
566542
};
567543
break;
568544
case "acg18":
@@ -574,6 +550,14 @@
574550
break;
575551
}
576552
}
553+
if(curSite.downloadUrl.test(location.href)){
554+
t=window.setInterval(function(){
555+
if(document.querySelector('.btn-success')){
556+
clearInterval(t);
557+
process();
558+
}
559+
},1000);
560+
}
577561

578562
document.addEventListener("keydown", function(e) {
579563
if(curArticle && e.keyCode != 17)curArticle.classList.remove("oD_sel");

0 commit comments

Comments
 (0)