Skip to content

Commit 922caf0

Browse files
committed
fix
1 parent e774b8b commit 922caf0

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

HacgGodTurn.user.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// @include http*://www.acgzone.org/*
4343
// @include http*://uraban.me/*
4444
// @include http*://www.uraban.me/*
45-
// @version 3.20.09
45+
// @version 3.20.10
4646
// @grant GM_notification
4747
// @grant GM_xmlhttpRequest
4848
// @run-at document-end
@@ -330,18 +330,6 @@
330330
}
331331
var has8=false;
332332
var comms=document.querySelectorAll("span.fn");
333-
var msg = "…" + unsafeWindow.quote,pos = 0;
334-
function scrollMsg() {
335-
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
336-
pos++;
337-
if (pos > msg.length) {
338-
pos = 0;
339-
document.title = originTitile;
340-
}else{
341-
setTimeout(scrollMsg,150);
342-
}
343-
}
344-
scrollMsg();
345333
for(var comm of comms){
346334
if(comm.innerHTML == "\u5c0f\u0038\u9171"){
347335
has8=true;
@@ -352,10 +340,24 @@
352340
if(has8){
353341
var title=document.querySelector("h1.entry-title");
354342
if(title){
355-
title.innerHTML+="</br> <a href=\"#pa8\" style=\"color:#e30000\">\u2605\u5c0f\u0038\u9171\u2605<\/a>";
343+
title.innerHTML+="</br> <a href=\"#pa8\" style=\"color:#e30000\">\u2605\u8865\u6863\u59ec\u5c0f\u0038\u9171\u2605<\/a>";
344+
}
345+
}
346+
if(unsafeWindow.quote){
347+
var msg = "…" + unsafeWindow.quote + "…",pos = 0;
348+
function scrollMsg() {
349+
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
350+
pos++;
351+
if (pos > msg.length) {
352+
pos = 0;
353+
document.title = originTitile;
354+
}else{
355+
setTimeout(scrollMsg,250);
356+
}
356357
}
358+
scrollMsg();
357359
}
358-
changeUrl(true,[["a"],[['^http:','https:']]]);
360+
if(isHttps)changeUrl(true,[["a"],[['^http:','https:']]]);
359361
break;
360362
case "sexacg":
361363
contentArea='article';

0 commit comments

Comments
 (0)