Skip to content

Commit 3407b7d

Browse files
committed
add acgmoon
1 parent 132150d commit 3407b7d

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

HacgGodTurn.user.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
// @include http*://www.acgzone.org/*
4343
// @include http*://uraban.me/*
4444
// @include http*://www.uraban.me/*
45-
// @version 3.20.12
45+
// @include http*://acgmoon.*
46+
// @version 3.20.13
4647
// @grant GM_notification
4748
// @grant GM_xmlhttpRequest
4849
// @run-at document-end
@@ -192,6 +193,12 @@
192193
name:"acgzone",
193194
url:"http://www.uraban.me/",
194195
regex:/acgzone\.org|uraban\.me/
196+
},
197+
{
198+
name:"acgmoon",
199+
url:"https://acgmoon.org/",
200+
regex:/acgmoon\.(org|com)/,
201+
offset:50
195202
}
196203
],
197204
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,6 +471,24 @@
464471
case "galacg":
465472
articleSel="div.article";
466473
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;
467492
case "acg15":
468493
articleSel="section.card";
469494
break;

0 commit comments

Comments
 (0)