Skip to content

Commit 7e7821a

Browse files
committed
fix
1 parent 1fd4e6c commit 7e7821a

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

HacgGodTurn.user.js

Lines changed: 14 additions & 1 deletion
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.25
49+
// @version 3.20.26
5050
// @grant GM_notification
5151
// @grant GM_xmlhttpRequest
5252
// @run-at document-end
@@ -123,6 +123,7 @@
123123
name:"lifan",
124124
url:"http://lifanmoe.com/",
125125
regex:/lifanmoe\./,
126+
downloadUrl:/lifanmoe\.com\/download/,
126127
offset:55
127128
},
128129
{
@@ -399,6 +400,18 @@
399400
break;
400401
case "lifan":
401402
articleSel="section.card";
403+
if(curSite.downloadUrl.test(location.href)){
404+
t=window.setInterval(function(){
405+
if(document.querySelector('.btn-success')){
406+
clearInterval(t);
407+
process();
408+
}
409+
},1000);
410+
}
411+
curSite.getDownPass=function(target){
412+
var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control');
413+
if(pass2)target.href+='#'+pass2.value;
414+
};
402415
break;
403416
case "moe-acg":
404417
articleSel="section.card";

0 commit comments

Comments
 (0)