|
46 | 46 | // @include http*://acgmoon.* |
47 | 47 | // @include http*://www.moe-acg.cc/* |
48 | 48 | // @include http*://htai.* |
49 | | -// @version 3.20.27 |
| 49 | +// @version 3.20.28 |
50 | 50 | // @grant GM_notification |
51 | 51 | // @grant GM_xmlhttpRequest |
52 | 52 | // @run-at document-end |
|
163 | 163 | name:"mhecy", |
164 | 164 | url:"http://www.mhecy.com/", |
165 | 165 | regex:/mhecy\./, |
166 | | - downloadUrl:/www\.mhecy\.com\/\?page_id=\d+&code/, |
| 166 | + downloadUrl:/www\.mhecy\.com\/\?page_id=\d+/, |
167 | 167 | hideOd:true, |
168 | 168 | offset:55 |
169 | 169 | }, |
|
328 | 328 | articleSel="section.card"; |
329 | 329 | if(isHttps) |
330 | 330 | 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 | | - } |
339 | 331 | curSite.getDownPass=function(target){ |
340 | 332 | var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
341 | 333 | if(pass2)target.href+='#'+pass2.value; |
|
401 | 393 | break; |
402 | 394 | case "lifan": |
403 | 395 | 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 | | - } |
412 | 396 | curSite.getDownPass=function(target){ |
413 | 397 | var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
414 | 398 | if(pass2)target.href+='#'+pass2.value; |
415 | 399 | }; |
416 | 400 | break; |
417 | 401 | case "moe-acg": |
418 | 402 | 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 | | - } |
427 | 403 | curSite.getDownPass=function(target){ |
428 | 404 | var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
429 | 405 | if(pass2)target.href+='#'+pass2.value; |
|
561 | 537 | case "mhecy": |
562 | 538 | articleSel="section.card"; |
563 | 539 | 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; |
566 | 542 | }; |
567 | 543 | break; |
568 | 544 | case "acg18": |
|
574 | 550 | break; |
575 | 551 | } |
576 | 552 | } |
| 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 | + } |
577 | 561 |
|
578 | 562 | document.addEventListener("keydown", function(e) { |
579 | 563 | if(curArticle && e.keyCode != 17)curArticle.classList.remove("oD_sel"); |
|
0 commit comments