Skip to content

Commit 419802f

Browse files
committed
add zuiacg
1 parent 1170ef5 commit 419802f

1 file changed

Lines changed: 108 additions & 26 deletions

File tree

HacgGodTurn.js

Lines changed: 108 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
// @name:zh-TW 琉神轉
55
// @namespace hoothin
66
// @description Glazed shrine and other adult gentleman station (Reimu imperial, pure love plan, gentleman two dimension, dimension and dimension trajectory, adorable heart ACG survey team, the magic day in the field, light agency, two dimensional, adorable Angel Sakura diffuse homes, Shengguang, love nest, Campanula dimension barrage, fantasy element, our opportunities, some adorable) mysterious code into the download link, F6, shift+F6 switching station, Baidu disk automation, harmonious patch
7-
// @description:zh-CN 琉璃神社与其他成人绅士站(灵梦御所、纯爱计划、绅士二次元、萌心次元、次元轨迹、ACG调查小队、幻天领域、轻萌社、天使二次元、樱花漫舍、风铃窝、次元の圣光、爱弹幕、幻想次元、司机会所、里番萌)神秘代码转换成下载链接,F6、shift+F6站点切换,左右方向键文章跳转,Ctrl+左右快捷翻页,Ctrl+上下跳入跳出,下载链接嗅探,百度盘自动化,绕过重定向跳转,各种和谐补丁
8-
// @description:zh-TW 琉璃神社與其他成人紳士站(靈夢禦所、純愛計劃、紳士二次元、萌心次元、次元軌跡、ACG調查小隊、幻天領域、輕萌社、天使二次元、櫻花漫舍、風鈴窩、次元の聖光、愛彈幕、幻想次元、司機會所、裏番萌)神秘代碼轉換成下載鏈接,F6、shift+F6站點切換,左右方向鍵文章跳轉,Ctrl+左右快捷翻頁,Ctrl+上下跳入跳出,下載鏈接嗅探,百度盤自動化,繞過重定向跳轉,各種和諧補丁
7+
// @description:zh-CN 琉璃神社与其他成人绅士站(灵梦御所、纯爱计划、绅士二次元、萌心次元、次元轨迹、ACG调查小队、幻天领域、轻萌社、天使二次元、樱花漫舍、风铃窝、次元の圣光、爱弹幕、幻想次元、司机会所、里番萌、最ACG)神秘代码转换成下载链接,F6、shift+F6站点切换,左右方向键文章跳转,Ctrl+左右快捷翻页,Ctrl+上下跳入跳出,下载链接嗅探,百度盘自动化,绕过重定向跳转,各种和谐补丁
8+
// @description:zh-TW 琉璃神社與其他成人紳士站(靈夢禦所、純愛計劃、紳士二次元、萌心次元、次元軌跡、ACG調查小隊、幻天領域、輕萌社、天使二次元、櫻花漫舍、風鈴窩、次元の聖光、愛彈幕、幻想次元、司機會所、裏番萌、最ACG)神秘代碼轉換成下載鏈接,F6、shift+F6站點切換,左右方向鍵文章跳轉,Ctrl+左右快捷翻頁,Ctrl+上下跳入跳出,下載鏈接嗅探,百度盤自動化,繞過重定向跳轉,各種和諧補丁
99
// @author hoothin
1010
// @icon https://www.hacg.fi/favicon.ico
1111
// @include http*://www.hacg.*/wordpress/*
@@ -35,8 +35,10 @@
3535
// @include http*://sijihuisuo.club/*
3636
// @include http*://acg18.us/*
3737
// @include http*://*.acg18.us/*
38-
// @version 3.19.86
38+
// @include http*://zuiacg.com/*
39+
// @version 3.19.87
3940
// @grant GM_notification
41+
// @grant GM_xmlhttpRequest
4042
// @run-at document-end
4143
// @require https://greasyfork.org/scripts/23522-olddriver-js/code/oldDriverjs.js?version=153486
4244
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js
@@ -49,87 +51,120 @@
4951
var config={
5052
sites:[
5153
{
54+
name:"hacg",
5255
url:"https://www.hacg.fi/wp/",
5356
regex:/hacg\./
5457
},
5558
{
59+
name:"reimu",
5660
url:"https://blog.reimu.net/",
5761
regex:/blog\.reimu\./
5862
},
5963
{
64+
name:"sexacg",
6065
url:"https://sexacg.com/",
6166
regex:/sexacg\./
6267
},
6368
{
64-
url:"https://www.acg.tf/",
65-
regex:/acg\.tf/
66-
},
67-
{
69+
name:"acglover",
6870
url:"http://www.acglover.top/",
6971
regex:/acglover\.top/
7072
},
7173
{
74+
name:"acgtf",
75+
url:"https://www.acg.tf/",
76+
regex:/acg\.tf/
77+
},
78+
{
79+
name:"tianshit",
7280
url:"https://www.tianshit.com/",
7381
regex:/tianshit\./
7482
},
7583
{
84+
name:"acggj",
7685
url:"https://www.acggj.com/",
7786
regex:/www\.acggj\./,
7887
hideOd:true,
7988
bbs:/bbs\.acggj\./
8089
},
8190
{
91+
name:"acg12",
8292
url:"https://acg12.com/",
8393
regex:/acg12\./,
8494
hideOd:true,
8595
downloadUrl:/acg12\.com\/download/
8696
},
8797
{
98+
name:"acgnz",
8899
url:"http://www.acgnz.cc/",
89100
regex:/acgnz\.cc/,
90101
hideOd:true
91102
},
92103
{
104+
name:"moxacg",
93105
url:"http://www.moxacg.com/",
94106
regex:/moxacg\./,
95107
hideOd:true
96108
},
97109
{
110+
name:"acg15",
98111
url:"http://www.acg15.com/",
99112
regex:/acg15\.com/,
100113
hideOd:true
101114
},
102115
{
116+
name:"lifan",
103117
url:"http://lifan.moe/",
104118
regex:/lifan\.moe/
105119
},
106120
{
121+
name:"nacg",
107122
url:"http://nacg.me/",
108123
regex:/nacg\.me/,
109124
hideOd:true
110125
},
111126
{
127+
name:"oomoe",
112128
url:"https://www.oomoe.moe/",
113129
regex:/oomoe\.moe/,
114130
hideOd:true
115131
},
116132
{
133+
name:"idanmu",
117134
url:"http://www.idanmu.co/",
118135
regex:/idanmu\.co/
119136
},
120137
{
138+
name:"sijihuisuo",
121139
url:"https://www.sijihuisuo.club/",
122140
regex:/sijihuisuo\.club/,
123141
innerPage:/sijihuisuo\.club\/(sj\/\d|\?p=\d)/
124142
},
125143
{
144+
name:"acg18",
126145
url:"https://acg18.us/",
127146
regex:/acg18\./
147+
},
148+
{
149+
name:"zuiacg",
150+
url:"http://zuiacg.com/",
151+
regex:/zuiacg\./,
152+
hideOd:true
128153
}
129154
],
130155
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\//,
131156
disableSites:/hacg.*about\.html/
132157
};
158+
if (!Array.prototype.findSite) {
159+
Array.prototype.findSite = function (siteName) {
160+
var arr = this;
161+
for (var i = 0, length = arr.length; i < length; i++) {
162+
if (arr[i].name == siteName) {
163+
return arr[i];
164+
}
165+
}
166+
};
167+
}
133168
var contentArea='.entry-content';
134169
var commArea="comment-content";
135170
var t, curSite;
@@ -221,7 +256,7 @@
221256
return;
222257
}else if(config.disableSites.test(location.href)){
223258
return;
224-
}else if(config.sites[3].regex.test(location.href)){
259+
}else if(config.sites.findSite("acgtf").regex.test(location.href)){
225260
var content=document.querySelector('.entry-content');
226261
if(content){
227262
var plist = content.querySelectorAll("p");
@@ -246,7 +281,7 @@
246281

247282
}
248283
}
249-
}else if (config.sites[1].regex.test(location.href)){
284+
}else if (config.sites.findSite("reimu").regex.test(location.href)){
250285
var OriginTitile = document.title;
251286
var titleTime;
252287
document.addEventListener('visibilitychange', function() {
@@ -274,51 +309,51 @@
274309
}
275310
});
276311
createBlockBtn();
277-
}else if(config.sites[7].regex.test(location.href)){
312+
}else if(config.sites.findSite("acg12").regex.test(location.href)){
278313
if(isHttps)
279314
addInsertHandler([["a","img","link","script"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.|static\.)?acg12','ps:$1$2acg12']]]);
280-
if(config.sites[7].downloadUrl.test(location.href)){
315+
if(config.sites.findSite("acg12").downloadUrl.test(location.href)){
281316
t=window.setInterval(function(){
282317
if(document.querySelector('.btn-success')){
283318
clearInterval(t);
284319
process();
285320
}
286321
},1000);
287322
}
288-
}else if(config.sites[15].innerPage.test(location.href)){
323+
}else if(config.sites.findSite("sijihuisuo").innerPage.test(location.href)){
289324
contentArea=".ds-comments";
290325
t=window.setInterval(function(){
291326
if(document.querySelector(".ds-comments")){
292327
clearInterval(t);
293328
process();
294329
}
295330
},500);
296-
}else if(config.sites[0].regex.test(location.href)){
331+
}else if(config.sites.findSite("hacg").regex.test(location.href)){
297332
var has8=false;
298333
var comms=document.querySelectorAll("span.fn");
299334
for(var comm of comms){
300335
if(comm.innerHTML == "\u5c0f\u0038\u9171"){
301336
has8=true;
302-
comm.innerHTML=comm.innerHTML.replace(/\u5c0f\u0038\u9171/,'<a name=\"little8\">\u5c0f\u0038\u9171<\/a>');
337+
comm.innerHTML=comm.innerHTML.replace(/\u5c0f\u0038\u9171/,'<a name=\"pa8\">\u5c0f\u0038\u9171<\/a>');
303338
break;
304339
}
305340
}
306341
if(has8){
307342
var title=document.querySelector("h1.entry-title");
308343
if(title){
309-
title.innerHTML+="</br> <a href=\"#little8\" style=\"color:#f60000\">\u2605\u76f4\u8fbe\u5c0f\u0038\u9171\u2605<\/a>";
344+
title.innerHTML+="</br> <a href=\"#pa8\" style=\"color:#e30000\">\u2605\u5c0f\u0038\u9171\u2605<\/a>";
310345
}
311346
}
312-
}else if(config.sites[2].regex.test(location.href)){
347+
}else if(config.sites.findSite("sexacg").regex.test(location.href)){
313348
contentArea='article';
314349
commArea='su-quote-inner';
315-
}else if(config.sites[9].regex.test(location.href)){
350+
}else if(config.sites.findSite("moxacg").regex.test(location.href)){
316351
if(isHttps)
317352
addInsertHandler([["body","a","img","link","script"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.)?moxacg','ps:$1$2moxacg']]]);
318-
}else if(config.sites[11].regex.test(location.href)){
353+
}else if(config.sites.findSite("lifan").regex.test(location.href)){
319354
if(isHttps)
320355
st2https(true,[["a","img","script","link"],[['p:(\/\/|\\\\\\/\\\\\\/)lifan\.moe','ps:$1lifan\.moe']]]);
321-
}else if(config.sites[6].regex.test(location.href)){
356+
}else if(config.sites.findSite("acggj").regex.test(location.href)){
322357
if(isHttps)
323358
st2https(true,[["a","img","script","link"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.|bbs\.)?acggj','ps:$1$2acggj'],['"\/\/(img\.2dfan)','"http:\/\/$1']]]);
324359
var benzi=document.querySelector('#menu-item-3786');
@@ -327,7 +362,7 @@
327362
scy.innerHTML = scy.innerHTML.replace(/\u672c\u5b50/g, '\u4e09\u6b21\u5143').replace(/hexie\/book/g, 'sciyuan').replace(/fa-book/g, 'fa-instagram');
328363
benzi.after(scy);
329364
}
330-
}else if(config.sites[6].bbs.test(location.href)){
365+
}else if(config.sites.findSite("acggj").bbs.test(location.href)){
331366
if(isHttps){
332367
st2https(true,[["a","img","script","link"],[['p:(\/\/|\\\\\\/\\\\\\/)bbs\.acggj','ps:$1bbs\.acggj'],['"\/\/(img\.2dfan)','"http:\/\/$1']]]);
333368
var baseUrl=document.querySelector('base');
@@ -341,16 +376,16 @@
341376
temp.outerHTML = temp.outerHTML;
342377
}
343378
}
344-
}else if(config.sites[8].regex.test(location.href)){
379+
}else if(config.sites.findSite("acgnz").regex.test(location.href)){
345380
if(isHttps)
346381
addInsertHandler([["a","img","link","script"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.)?acgnz','ps:$1$2acgnz'],['"\/\/(pic|tc)\.(ffsky|rpgsky)','"http:\/\/$1\.$2']]]);
347-
}else if(config.sites[12].regex.test(location.href)){
382+
}else if(config.sites.findSite("nacg").regex.test(location.href)){
348383
contentArea='.content';
349-
}else if(config.sites[5].regex.test(location.href)){
384+
}else if(config.sites.findSite("tianshit").regex.test(location.href)){
350385
contentArea='.article-content';
351-
}else if(config.sites[4].regex.test(location.href)){
386+
}else if(config.sites.findSite("acglover").regex.test(location.href)){
352387
st2https(true,[["a","img"],[['acglover\.net','acglover\.top']]]);
353-
}else if(config.sites[14].regex.test(location.href)){
388+
}else if(config.sites.findSite("idanmu").regex.test(location.href)){
354389
var resets = document.querySelectorAll('body>style');
355390
for(var reset of resets){
356391
if(/\.card-bg\simg|\.content-reset\simg/.test(reset.innerHTML)){
@@ -363,6 +398,53 @@
363398
r18.innerHTML = r18.innerHTML.replace(/\u8d44\u8baf/g, '18禁').replace(/category\/v01/g, 'category/v09/v13');
364399
r10.after(r18);
365400
}
401+
}else if(config.sites.findSite("zuiacg").regex.test(location.href)){
402+
let shield=document.querySelector('#shieldclass');
403+
if(shield){
404+
shield.parentNode.removeChild(shield);
405+
let imgs=document.querySelectorAll('p>img');
406+
for(let img of imgs){
407+
img.onclick=function(){this.className="";};
408+
}
409+
}
410+
var downloadBtn=document.querySelector('a[data-action=download]');
411+
if(downloadBtn){
412+
if(/\.com\/download\//.test(location.href)){
413+
let cd=document.querySelector('div.single-content>p>input');
414+
if(cd){
415+
downloadBtn.href+="#"+cd.value;
416+
}
417+
}else{
418+
downloadBtn.onclick=function(e){
419+
if(e.ctrlKey){
420+
let newWin=window.open('');
421+
GM_xmlhttpRequest({
422+
method: 'GET',
423+
url: downloadBtn.href.replace(/\/news\//,"/download/"),
424+
onload: function(d) {
425+
let html=document.implementation.createHTMLDocument('');
426+
html.documentElement.innerHTML = d.responseText;
427+
let dl=html.querySelector('#adddownload>a');
428+
if(dl){
429+
let url=dl.href;
430+
let cd=html.querySelector('div.single-content>p>input');
431+
if(cd){
432+
url+="#"+cd.value;
433+
}
434+
newWin.location.href=url;
435+
}else{
436+
newWin.close();
437+
}
438+
},
439+
onerror: function(e) {
440+
newWin.close();
441+
}
442+
});
443+
return false;
444+
}
445+
};
446+
}
447+
}
366448
}
367449

368450
function process(){
@@ -409,7 +491,7 @@
409491
if(/\/storage-download/.test(location.href)){
410492
var pass=target.parentNode.parentNode.querySelector('input.pwd');
411493
if(pass&&pass.id.indexOf("download-pwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value;
412-
} else if(config.sites[7].downloadUrl.test(location.href)){
494+
} else if(config.sites.findSite("acg12").downloadUrl.test(location.href)){
413495
var pass2=target.parentNode.parentNode.parentNode.querySelector('input.form-control');
414496
if(pass2)target.href+='#'+pass2.value;
415497
} else if(codeRule.test(target.textContent)){

0 commit comments

Comments
 (0)