|
42 | 42 | // @include http*://www.acgzone.org/* |
43 | 43 | // @include http*://uraban.me/* |
44 | 44 | // @include http*://www.uraban.me/* |
45 | | -// @version 3.20.12 |
| 45 | +// @include http*://acgmoon.* |
| 46 | +// @version 3.20.13 |
46 | 47 | // @grant GM_notification |
47 | 48 | // @grant GM_xmlhttpRequest |
48 | 49 | // @run-at document-end |
|
192 | 193 | name:"acgzone", |
193 | 194 | url:"http://www.uraban.me/", |
194 | 195 | regex:/acgzone\.org|uraban\.me/ |
| 196 | + }, |
| 197 | + { |
| 198 | + name:"acgmoon", |
| 199 | + url:"https://acgmoon.org/", |
| 200 | + regex:/acgmoon\.(org|com)/, |
| 201 | + offset:50 |
195 | 202 | } |
196 | 203 | ], |
197 | 204 | 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$/, |
|
464 | 471 | case "galacg": |
465 | 472 | articleSel="div.article"; |
466 | 473 | break; |
| 474 | + case "acgmoon": |
| 475 | + contentArea="div.post-content"; |
| 476 | + var warn=document.querySelector("div.kinky-warning"); |
| 477 | + if(warn){ |
| 478 | + var postContent=document.querySelector("div.post-content"); |
| 479 | + if(postContent && postContent.classList.contains("hexie")){ |
| 480 | + var hexieBtn=document.createElement("button"); |
| 481 | + hexieBtn.id="hexieBtn"; |
| 482 | + hexieBtn.type="button"; |
| 483 | + hexieBtn.textContent="\u597d\u5b69\u5b50\u770b\u4e0d\u5230"; |
| 484 | + hexieBtn.style="padding:4px 0;position: relative;width:120px;"; |
| 485 | + hexieBtn.onclick=function(){ |
| 486 | + postContent.classList.contains("hexie")?postContent.classList.remove("hexie"):postContent.classList.add("hexie"); |
| 487 | + }; |
| 488 | + warn.parentNode.insertBefore(hexieBtn,warn.nextSibling); |
| 489 | + } |
| 490 | + } |
| 491 | + break; |
467 | 492 | case "acg15": |
468 | 493 | articleSel="section.card"; |
469 | 494 | break; |
|
0 commit comments