Skip to content

Commit dce4ea0

Browse files
committed
fix
1 parent e00e814 commit dce4ea0

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

HacgGodTurn.user.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,18 @@
4242
// @include http*://www.acgzone.org/*
4343
// @include http*://uraban.me/*
4444
// @include http*://www.uraban.me/*
45-
// @version 3.20.05
45+
// @version 3.20.06
4646
// @grant GM_notification
4747
// @grant GM_xmlhttpRequest
4848
// @run-at document-end
49-
// @require https://greasyfork.org/scripts/23522/code/od.js?version=154564
49+
// @require https://greasyfork.org/scripts/23522/code/od.js?version=154711
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
5353
// @compatible chrome
5454
// @compatible firefox
5555
// ==/UserScript==
56+
5657
(function(){
5758
var config={
5859
sites:[
@@ -294,7 +295,7 @@
294295
case "acg12":
295296
articleSel="section.card";
296297
if(isHttps)
297-
addInsertHandler([["a","img","link","script"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.|static\.)?acg12','ps:$1$2acg12']]]);
298+
addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.|static\\\.)?acg12','ps:$1$2acg12']]]);
298299
if(curSite.downloadUrl.test(location.href)){
299300
t=window.setInterval(function(){
300301
if(document.querySelector('.btn-success')){
@@ -318,7 +319,7 @@
318319
}
319320
},500);
320321
}
321-
changeUrl(true,[["a"],[['https?:\/\/[^\.]*(\.)?sijihuisuo\.club\/go\/\?url=','']]]);
322+
changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?sijihuisuo\\\.club\\\/go\\\/\\\?url=','']]]);
322323
break;
323324
case "hacg":
324325
var feiZaos=document.getElementsByTagName("p1");
@@ -360,14 +361,14 @@
360361
break;
361362
case "moxacg":
362363
articleSel="section.post";
363-
if(isHttps)addInsertHandler([["body","a","img","link","script"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.)?moxacg','ps:$1$2moxacg']]]);
364+
if(isHttps)addInsertHandler([["body","a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.)?moxacg','ps:$1$2moxacg']]]);
364365
break;
365366
case "lifan":
366367
articleSel="section.post";
367368
break;
368369
case "acggj":
369370
if(isHttps){
370-
changeUrl(true,[["a","img","script","link"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.|bbs\.)?acggj','ps:$1$2acggj']]]);
371+
changeUrl(true,[["a","img","script","link"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.|bbs\\\.)?acggj','ps:$1$2acggj']]]);
371372
var baseUrl=document.querySelector('base');
372373
if(baseUrl)baseUrl.href=baseUrl.href.replace(/http:/,"https:");
373374
}
@@ -380,7 +381,7 @@
380381
break;
381382
case "acgnz":
382383
articleSel="section.card";
383-
if(isHttps)addInsertHandler([["a","img","link","script"],[['p:(\/\/|\\\\\\/\\\\\\/)(www\.)?acgnz','ps:$1$2acgnz']]]);
384+
if(isHttps)addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.)?acgnz','ps:$1$2acgnz']]]);
384385
break;
385386
case "nacg":
386387
contentArea='.content';
@@ -389,7 +390,7 @@
389390
contentArea='.article-content';
390391
break;
391392
case "acglover":
392-
changeUrl(true,[["a","img"],[['acglover\.net','acglover\.top']]]);
393+
changeUrl(true,[["a","img"],[['acglover\\\.net','acglover\\\.top']]]);
393394
break;
394395
case "idanmu":
395396
var resets = document.querySelectorAll('body>style');
@@ -469,7 +470,8 @@
469470
};
470471
break;
471472
case "acg18":
472-
changeUrl(true,[["a"],[['https?:\/\/[^\.]*(\.)?acg18\.us\/go\/\?url=','']]]);
473+
changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?acg18\\\.us\\\/go\\\/\\\?url=','']]]);
474+
break;
473475
}
474476
}
475477

0 commit comments

Comments
 (0)