Skip to content

Commit e00e814

Browse files
committed
fix
1 parent 30729b1 commit e00e814

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

HacgGodTurn.user.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
// @include http*://www.acgzone.org/*
4343
// @include http*://uraban.me/*
4444
// @include http*://www.uraban.me/*
45-
// @version 3.20.04
45+
// @version 3.20.05
4646
// @grant GM_notification
4747
// @grant GM_xmlhttpRequest
4848
// @run-at document-end
49-
// @require https://greasyfork.org/scripts/23522/code/od.js?version=154553
49+
// @require https://greasyfork.org/scripts/23522/code/od.js?version=154564
5050
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js
5151
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js
5252
// @license MIT License
@@ -318,6 +318,7 @@
318318
}
319319
},500);
320320
}
321+
changeUrl(true,[["a"],[['https?:\/\/[^\.]*(\.)?sijihuisuo\.club\/go\/\?url=','']]]);
321322
break;
322323
case "hacg":
323324
var feiZaos=document.getElementsByTagName("p1");
@@ -351,6 +352,7 @@
351352
title.innerHTML+="</br> <a href=\"#pa8\" style=\"color:#e30000\">\u2605\u5c0f\u0038\u9171\u2605<\/a>";
352353
}
353354
}
355+
changeUrl(true,[["a"],[['^http:','https:']]]);
354356
break;
355357
case "sexacg":
356358
contentArea='article';
@@ -365,7 +367,7 @@
365367
break;
366368
case "acggj":
367369
if(isHttps){
368-
st2https(true,[["a","img","script","link"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.|bbs\.)?acggj','ps:$1$2acggj']]]);
370+
changeUrl(true,[["a","img","script","link"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.|bbs\.)?acggj','ps:$1$2acggj']]]);
369371
var baseUrl=document.querySelector('base');
370372
if(baseUrl)baseUrl.href=baseUrl.href.replace(/http:/,"https:");
371373
}
@@ -387,7 +389,7 @@
387389
contentArea='.article-content';
388390
break;
389391
case "acglover":
390-
st2https(true,[["a","img"],[['acglover\.net','acglover\.top']]]);
392+
changeUrl(true,[["a","img"],[['acglover\.net','acglover\.top']]]);
391393
break;
392394
case "idanmu":
393395
var resets = document.querySelectorAll('body>style');
@@ -466,6 +468,8 @@
466468
if(pass&&pass.id.indexOf("download-pwd")!=-1)target.href=target.href.split("#")[0]+'#'+pass.value;
467469
};
468470
break;
471+
case "acg18":
472+
changeUrl(true,[["a"],[['https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=','']]]);
469473
}
470474
}
471475

@@ -595,13 +599,6 @@
595599
imgs = document.getElementsByTagName('img');
596600
}
597601
for (i = 0, k = link.length; i < k; i++) {
598-
if (isHttps && /.*http:[^\.]*(\.)?hacg\./i.test(link[i].href)) {
599-
link[i].href = link[i].href.replace(/http/, 'https');
600-
}else if(/https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=/.test(link[i].href)){
601-
link[i].href = link[i].href.replace(/https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=/, '');
602-
}else if(/https?:\/\/[^\.]*(\.)?sijihuisuo\.club\/go\/\?url=/.test(link[i].href)){
603-
link[i].href = link[i].href.replace(/https?:\/\/[^\.]*(\.)?sijihuisuo\.club\/go\/\?url=/, '');
604-
}
605602
var target=link[i];
606603
if(/baidu.com/i.test(target.href)&&!/(?:eyun|tieba)\.baidu\.com/i.test(target.href)&&!/#/i.test(target.href)){
607604
if(/\/storage-download/.test(location.href)){

0 commit comments

Comments
 (0)