Skip to content

Commit 12a8cd5

Browse files
committed
fix
1 parent 248eb65 commit 12a8cd5

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// @include http*://www.l-sj.cc/*
7676
// @include http*://htacg.cc/*
7777
// @include http*://www.htacg.cc/*
78-
// @version 3.21.35
78+
// @version 3.21.36
7979
// @grant GM_notification
8080
// @grant GM_xmlhttpRequest
8181
// @grant GM_setClipboard
@@ -541,20 +541,6 @@
541541
header.innerHTML+="</br> <a href=\"#"+commId+"\">\u2605\u0020\u76f4\u8fbe\u8865\u6863\u59ec\u0020\u2605<\/a>";
542542
}
543543
}
544-
if(unsafeWindow.quote){
545-
var msg = "…" + unsafeWindow.quote + "…",pos = 0;
546-
function scrollMsg() {
547-
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
548-
pos++;
549-
if (pos > msg.length) {
550-
pos = 0;
551-
document.title = originTitile;
552-
}else{
553-
setTimeout(scrollMsg,250);
554-
}
555-
}
556-
scrollMsg();
557-
}
558544
if(isHttps){
559545
changeUrl(true,[["iframe"],[['http:','https:']]]);
560546
changeUrl(true,[["object"],[['http:','https:']]]);
@@ -573,7 +559,7 @@
573559
var articleTitle=document.querySelector(".entry-title");
574560
if(articleTitle){
575561
articleTitle.innerHTML="<font color='red' title='!\u53cd\u9e21\u590d\u5976!'>\u2642\u8def\u897f\u6cd5\u2642</font> "+articleTitle.innerHTML;
576-
document.title = document.title.replace(/\u7409\u7483\u795e\u793e/,"\u5927\u5c4c\u795e\u793e");
562+
originTitile = document.title = document.title.replace(/\u7409\u7483\u795e\u793e/,"\u5927\u5c4c\u795e\u793e");
577563
}
578564
break;
579565
}
@@ -587,9 +573,22 @@
587573
},1);
588574
};
589575
}
576+
if(unsafeWindow.quote){
577+
var msg = "…" + unsafeWindow.quote + "…",pos = 0;
578+
function scrollMsg() {
579+
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
580+
pos++;
581+
if (pos > msg.length) {
582+
pos = 0;
583+
document.title = originTitile;
584+
}else{
585+
setTimeout(scrollMsg,250);
586+
}
587+
}
588+
scrollMsg();
589+
}
590590
break;
591591
case "萌心次元":
592-
//if(isHttps)addInsertHandler([["body","a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.)?moxacg','ps:$1$2moxacg']]]);
593592
break;
594593
case "次元轨迹":
595594
if(isHttps){

0 commit comments

Comments
 (0)