Skip to content

Commit 3012c43

Browse files
committed
fix
1 parent d1df18d commit 3012c43

1 file changed

Lines changed: 27 additions & 4 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@
7272
// @include http*://yui-nya.com/*
7373
// @include http*://www.l-sj.cc/*
7474
// @include http*://htacg.cc/*
75-
// @version 3.21.11
75+
// @version 3.21.12
7676
// @grant GM_notification
7777
// @grant GM_xmlhttpRequest
7878
// @grant GM_setClipboard
79+
// @grant GM_setValue
80+
// @grant GM_getValue
7981
// @run-at document-end
8082
// @require https://greasyfork.org/scripts/23522/code/od.js?version=163021
8183
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js
@@ -1305,7 +1307,7 @@
13051307
var ttss=["有家,有爱,有欧派","未被穿过的胖次是没有价值的","巨乳只有下垂的未来","男人变态有什么错","为什么你会这么熟练啊","德国的科学技术是世界第一","在虚构的故事当中寻求真实感的人脑袋一定有问题"," 胸部什么的,明明只是装饰","勇士喜欢巨乳有什么错","哥哥让开!这样我杀不了那家伙","我们的宇宙充满了质子,中子,电子,还有奶子","有个能干的妹妹真好","玄不救非,氪不改命","只要可爱就算是男孩子也没关系","道歉時露出胸部是常識","我就是叫紫妈怎么了 有本事突然从我背后出现 把我的脸按在键盘上aqswdectfrvtghunijopioijohnuygbyfvtcdesxwedrfvtbguyhiumjiuyvftrssexrybtgnyuhm","反基复奶"];
13061308
var ttsRand=Math.floor(Math.random()*ttss.length);
13071309
var tts=ttss[ttsRand];
1308-
var soundUrl = `http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=5&text=${tts}`;
1310+
var soundUrl = "http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=5&text="+tts;//`http://tts.baidu.com/text2audio?lan=zh&ie=UTF-8&spd=5&text=${tts}`;
13091311
var p = new Promise(function(resolve, reject) {
13101312
var ret = GM_xmlhttpRequest({
13111313
method: "GET",
@@ -1322,8 +1324,29 @@
13221324
}
13231325
});
13241326
});
1325-
p.then(playSound, function(e) {
1326-
console.log(e);
1327+
if(!GM_getValue("hazukashii")){
1328+
p.then(playSound, function(e) {
1329+
console.log(e);
1330+
});
1331+
}
1332+
var command=[72,65,90,85,75,65,83,72,73,73],index=0;//"hazukashii"
1333+
document.addEventListener("keydown", function(e) {
1334+
if(e.keyCode == command[index]) {
1335+
if(index==command.length-1){
1336+
index=0;
1337+
var nowValue=GM_getValue("hazukashii");
1338+
GM_setValue("hazukashii", !nowValue);
1339+
if(nowValue){
1340+
p.then(playSound, function(e) {
1341+
console.log(e);
1342+
});
1343+
}
1344+
}else{
1345+
index++;
1346+
}
1347+
}else{
1348+
index=0;
1349+
}
13271350
});
13281351
GM_notification(notificationDetails);
13291352
}

0 commit comments

Comments
 (0)