Skip to content

Commit baa6061

Browse files
committed
fix
1 parent 13a3380 commit baa6061

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
// @include http*://www.htacg.cc/*
7878
// @include http*://sleazyfork.org/*/scripts/*
7979
// @include http*://greasyfork.org/*/scripts/*
80-
// @version 3.21.46
80+
// @version 3.21.47
8181
// @grant GM_notification
8282
// @grant GM_xmlhttpRequest
8383
// @grant GM_setClipboard
@@ -393,8 +393,15 @@
393393
if(document.body.innerHTML.indexOf("\u7409\u7483\u795e\u793e")!=-1){
394394
var installLink=document.querySelector("a.install-link");
395395
if(installLink){
396+
installLink.onclick=function(){
397+
if(window.confirm('\u8be5\u811a\u672c\u53ef\u80fd\u4e0e\u2605\u7409\u795e\u8f6c\u2605\u4e0d\u517c\u5bb9\u54e6\uff0c\u4f60\u786e\u5b9a\u8981\u5b89\u88c5\u5417\uff1f')){
398+
return true;
399+
}else{
400+
return false;
401+
}
402+
};
396403
var hgtSign=document.createElement("font");
397-
hgtSign.innerHTML=' <b>\u8be5\u811a\u672c\u4e0e\u300a\u7409\u795e\u8f6c\u300b\u4e0d\u517c\u5bb9\u54e6</b>';
404+
hgtSign.innerHTML=' <b>\u8be5\u811a\u672c\u53ef\u80fd\u4e0e\u2605\u7409\u795e\u8f6c\u2605\u4e0d\u517c\u5bb9\u54e6</b>';
398405
installLink.parentNode.insertBefore(hgtSign,installLink.nextSibling.nextSibling);
399406
}
400407
}

0 commit comments

Comments
 (0)