|
46 | 46 | // @include http*://acgmoon.* |
47 | 47 | // @include http*://www.moe-acg.cc/* |
48 | 48 | // @include http*://htai.* |
49 | | -// @version 3.20.31 |
| 49 | +// @version 3.20.32 |
50 | 50 | // @grant GM_notification |
51 | 51 | // @grant GM_xmlhttpRequest |
52 | 52 | // @run-at document-end |
|
236 | 236 | } |
237 | 237 | }; |
238 | 238 | } |
| 239 | + |
239 | 240 | var t, curSite, curArticle; |
240 | 241 | var contentArea='.entry-content', commArea="comment-content"; |
241 | 242 | var originTitile = document.title; |
|
329 | 330 | articleSel="section.card"; |
330 | 331 | if(isHttps) |
331 | 332 | addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.|static\\\.)?acg12','ps:$1$2acg12']]]); |
332 | | - curSite.getDownPass=function(target){ |
333 | | - var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
334 | | - if(pass2)target.href+='#'+pass2.value; |
335 | | - }; |
336 | 333 | break; |
337 | 334 | case "sijihuisuo": |
338 | 335 | if(curSite.innerPage.test(location.href)){ |
|
394 | 391 | break; |
395 | 392 | case "lifan": |
396 | 393 | articleSel="section.card"; |
397 | | - curSite.getDownPass=function(target){ |
398 | | - var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
399 | | - if(pass2)target.href+='#'+pass2.value; |
400 | | - }; |
401 | 394 | break; |
402 | 395 | case "moe-acg": |
403 | 396 | articleSel="section.card"; |
404 | | - curSite.getDownPass=function(target){ |
405 | | - var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
406 | | - if(pass2)target.href+='#'+pass2.value; |
407 | | - }; |
408 | 397 | break; |
409 | 398 | case "acggj": |
410 | 399 | articleSel="section.card"; |
|
423 | 412 | case "acgnz": |
424 | 413 | articleSel="section.card"; |
425 | 414 | if(isHttps)addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.)?acgnz','ps:$1$2acgnz']]]); |
426 | | - curSite.getDownPass=function(target){ |
427 | | - var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
428 | | - if(pass2)target.href+='#'+pass2.value; |
429 | | - }; |
430 | 415 | break; |
431 | 416 | case "nacg": |
432 | 417 | contentArea='.content'; |
|
541 | 526 | break; |
542 | 527 | case "mhecy": |
543 | 528 | articleSel="section.card"; |
544 | | - curSite.getDownPass=function(target){ |
545 | | - var pass=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
546 | | - if(pass&&pass.id.indexOf("downloadPwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value; |
547 | | - }; |
548 | 529 | break; |
549 | 530 | case "acg18": |
550 | 531 | changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?acg18\\\.us\\\/go\\\/\\\?url=','']]]); |
|
556 | 537 | } |
557 | 538 | } |
558 | 539 | if(curSite && curSite.downloadUrl && curSite.downloadUrl.test(location.href)){ |
| 540 | + if(!curSite.getDownPass){ |
| 541 | + curSite.getDownPass=function(target){ |
| 542 | + var pass=target.parentNode.parentNode.parentNode.querySelector('input.form-control'); |
| 543 | + if(pass)target.href=target.href.split("#")[0]+'#'+pass.value; |
| 544 | + }; |
| 545 | + } |
559 | 546 | t=window.setInterval(function(){ |
560 | 547 | if(document.querySelector('.btn-success')){ |
561 | 548 | clearInterval(t); |
|
0 commit comments