|
44 | 44 | // @include http*://www.uraban.me/* |
45 | 45 | // @include http*://acgmoon.* |
46 | 46 | // @include http*://www.moe-acg.cc/* |
47 | | -// @version 3.20.16 |
| 47 | +// @include http*://htai.* |
| 48 | +// @version 3.20.17 |
48 | 49 | // @grant GM_notification |
49 | 50 | // @grant GM_xmlhttpRequest |
50 | 51 | // @run-at document-end |
|
59 | 60 | // ==/UserScript== |
60 | 61 |
|
61 | 62 | (function(){ |
| 63 | + 'use strict'; |
62 | 64 | var config={ |
63 | 65 | sites:[ |
64 | 66 | { |
|
208 | 210 | offset:55, |
209 | 211 | hideOd:true, |
210 | 212 | downloadUrl:/moe-acg\.cc\/download/ |
| 213 | + }, |
| 214 | + { |
| 215 | + name:"htai", |
| 216 | + url:"http://htai.co/", |
| 217 | + regex:/htai\.(co|me)/ |
211 | 218 | } |
212 | 219 | ], |
213 | 220 | rocketReg:/magnet:\?xt|pan\.baidu\.com\/s|yunpan\.cn|howfile\.com\/file|mega\.|ed2k:\/\/\|file|bt\.cosxcos\.com\/view|du\.acgget\.com\/go\/|\.mediafire\.com\/download\/|\.torrent$/, |
|
497 | 504 | break; |
498 | 505 | case "acgmoon": |
499 | 506 | contentArea="div.post-content"; |
500 | | - var warn=document.querySelector("div.kinky-warning"); |
501 | | - if(warn){ |
502 | | - var postContent=document.querySelector("div.post-content"); |
503 | | - if(postContent && postContent.classList.contains("hexie")){ |
504 | | - var hexieBtn=document.createElement("button"); |
505 | | - hexieBtn.id="hexieBtn"; |
506 | | - hexieBtn.type="button"; |
507 | | - hexieBtn.textContent="\u597d\u5b69\u5b50\u770b\u4e0d\u5230"; |
508 | | - hexieBtn.style="padding:4px 0;position: relative;width:120px;"; |
509 | | - hexieBtn.onclick=function(){ |
510 | | - postContent.classList.contains("hexie")?postContent.classList.remove("hexie"):postContent.classList.add("hexie"); |
511 | | - }; |
512 | | - warn.parentNode.insertBefore(hexieBtn,warn.nextSibling); |
513 | | - } |
| 507 | + var postContent=document.querySelector("div.post-content"); |
| 508 | + if(postContent && postContent.classList.contains("hexie")){ |
| 509 | + var hexieBtn=document.createElement("button"); |
| 510 | + hexieBtn.id="hexieBtn"; |
| 511 | + hexieBtn.type="button"; |
| 512 | + hexieBtn.textContent="\u597d\u5b69\u5b50\u770b\u4e0d\u5230"; |
| 513 | + hexieBtn.style="padding:4px 0;position: relative;width:120px;"; |
| 514 | + hexieBtn.onclick=function(){ |
| 515 | + postContent.classList.contains("hexie")?postContent.classList.remove("hexie"):postContent.classList.add("hexie"); |
| 516 | + }; |
| 517 | + var warn=document.querySelector("div.kinky-warning"); |
| 518 | + if(warn)warn.parentNode.insertBefore(hexieBtn,warn.nextSibling); |
| 519 | + else postContent.parentNode.insertBefore(hexieBtn,postContent); |
514 | 520 | } |
515 | 521 | break; |
516 | 522 | case "acg15": |
|
528 | 534 | case "acg18": |
529 | 535 | changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?acg18\\\.us\\\/go\\\/\\\?url=','']]]); |
530 | 536 | break; |
| 537 | + case "htai": |
| 538 | + contentArea="div.post_content"; |
| 539 | + commArea='commentlist'; |
| 540 | + break; |
531 | 541 | } |
532 | 542 | } |
533 | 543 |
|
|
0 commit comments