Skip to content

Commit 8a8892c

Browse files
committed
fix
1 parent 70e5a3f commit 8a8892c

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
// @include http*://greasyfork.org/*/scripts/*
105105
// @include http*://sleazyfork.org/*/forum/*discussion*
106106
// @include http*://greasyfork.org/*/forum/*discussion*
107-
// @version 3.22.61
107+
// @version 3.22.62
108108
// @grant GM_notification
109109
// @grant GM_xmlhttpRequest
110110
// @grant GM_setClipboard
@@ -415,11 +415,11 @@
415415
},
416416
{
417417
name:"幻想次元",
418-
url:"https://acg18.us/",
418+
url:"https://acg18.world/",
419419
regex:/acg18\./,
420420
offset:55,
421421
run:function(){
422-
changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?acg18\\\.us\\\/go\\\/\\\?url=','']]]);
422+
changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?acg18\\\.(us|world)\\\/go\\\/\\\?url=','']]]);
423423
}
424424
},
425425
{
@@ -492,7 +492,7 @@
492492
url:"https://cangku.moe/",
493493
regex:/galacg\.|cangku\./,
494494
hideOd:true,
495-
articleSel:"section.post-wrap",
495+
articleSel:".post-card-wrap",
496496
run:function(){
497497
window.setTimeout(function(){
498498
process();
@@ -600,7 +600,7 @@
600600
var a = this.match(reg);
601601
return a? [a.slice(1,a.length)] : 0;
602602
}
603-
a=[],b;
603+
a=[];var b;
604604
while(b=reg.exec(this)){
605605
b.shift();
606606
a.push(b);
@@ -1276,12 +1276,13 @@
12761276
oD_button.style.cssText="padding:4px 0;position: absolute;top:-1px;right:0px;width:40px;height:35px";
12771277
oD_button.onclick=function (){
12781278
oD_link.textContent=oD_link2.textContent=oD_link3.textContent="";
1279-
var oD_hash=oD_text.value;
1279+
var oD_hash=oD_text.value,url;
12801280
if(oD_hash===""){
12811281
alert("请输入hash值、网盘或Base64密文");
12821282
}else if(/\b1[0-9a-z]{6,7}(\b|$)/i.test(oD_hash)){
12831283
var panMatch=oD_hash.match(/\b1[0-9a-z]{6,7}/i);
1284-
var ecode=oD_hash.trim(),url="https://pan.baidu.com/s/"+panMatch;
1284+
var ecode=oD_hash.trim();
1285+
url="https://pan.baidu.com/s/"+panMatch;
12851286
var shortMatch=/\b1[0-9a-z]{6,7}\s*([0-9a-z!]{4}|[^\s,:]{2,4})(\b|$)/i.exec(ecode);
12861287
if(shortMatch){
12871288
url+="#"+shortMatch[1];
@@ -1291,7 +1292,10 @@
12911292
}
12921293
window.open(url);
12931294
}else if(/^\s*(https|ftp)?:\/\//.test(oD_hash)){
1294-
var url=oD_hash.replace(/[^a-z0-9:\/%\?&\._\-\+\*]/gi,"");
1295+
url=oD_hash.replace(/[^a-z0-9:\/%\?&\._\-\+\*]/gi,"");
1296+
window.open(url);
1297+
}else if(/^\d{8}$/.test(oD_hash)){
1298+
url="https://www.pixiv.net/member_illust.php?mode=medium&illust_id="+oD_hash;
12951299
window.open(url);
12961300
}else{
12971301
oD_hash=oD_hash.replace(/(\[.*\])|[\W_]/g,"");

0 commit comments

Comments
 (0)