Skip to content

Commit 3aef947

Browse files
committed
fix
1 parent 4c4f561 commit 3aef947

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
// @include http*://yui-nya.com/*
7373
// @include http*://www.l-sj.cc/*
7474
// @include http*://htacg.cc/*
75-
// @version 3.20.78
75+
// @version 3.20.79
7676
// @grant GM_notification
7777
// @grant GM_xmlhttpRequest
7878
// @grant GM_setClipboard
@@ -707,6 +707,12 @@
707707
}
708708
sum++;
709709
if(sum>maxCss){
710+
var style=document.querySelector("style");
711+
var curRegs=style.innerHTML.pmatch(/background\-image:\s*url\(([^\)]+)\)/gi);
712+
for(var curReg of curRegs){
713+
if(bgUrls.indexOf(curReg[0])==-1)
714+
bgUrls+=curReg[0]+"\n";
715+
}
710716
GM_setClipboard(bgUrls);
711717
alert("背景图片链接复制完毕");
712718
}
@@ -735,6 +741,15 @@
735741
processing=false;
736742
},500);
737743
});
744+
var picTitle=document.querySelector("h1>a[href='https://www.mygalgame.com/gengxinrizhi.html']");
745+
if(picTitle){
746+
var imgUrl=picTitle.parentNode.parentNode.parentNode.querySelector("div.img>img").src;
747+
var picBtn=document.createElement("a");
748+
picBtn.href=imgUrl;
749+
picBtn.target="_blank";
750+
picBtn.innerHTML="<span class='animated_h1'>封面图</span>";
751+
picTitle.parentNode.appendChild(picBtn);
752+
}
738753
break;
739754
case "紳士の庭":
740755
if(isHttps)addInsertHandler([["img"],[['p(:\\\/\\\/static\.gmgard\.com)','ps$1']]]);

0 commit comments

Comments
 (0)