Skip to content

Commit c99d228

Browse files
committed
fix
1 parent a887a20 commit c99d228

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
// @include http*://www.l-sj.cc/*
7575
// @include http*://htacg.cc/*
7676
// @include http*://www.htacg.cc/*
77-
// @version 3.21.16
77+
// @version 3.21.17
7878
// @grant GM_notification
7979
// @grant GM_xmlhttpRequest
8080
// @grant GM_setClipboard
@@ -545,8 +545,9 @@
545545
}
546546
if(/hacg\.(ch|la|at|tw)/.test(location.href)){
547547
document.title = document.title.replace(/\u7409\u7483\u795e\u793e/,"\u6d41\u5229\u4f38\u820c");
548-
var titleName=document.querySelector("#site-title>span>a");
549-
titleName.innerHTML=titleName.innerHTML.replace(/\u7409\u7483\u795e\u793e/,"\u6d41\u5229\u4f38\u820c");
548+
[].forEach.call(document.querySelectorAll("a"), function(item, index, arr) {
549+
item.innerHTML=item.innerHTML.replace(/\u7409\u7483\u795e\u793e/,"\u6d41\u5229\u4f38\u820c");
550+
});
550551
}
551552
var embeds=document.querySelectorAll(".wp-embedded-content");
552553
for(i=0;i<embeds.length;i++){

0 commit comments

Comments
 (0)