Skip to content

Commit a887a20

Browse files
committed
fix
1 parent f49ccb1 commit a887a20

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 4 additions & 2 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.15
77+
// @version 3.21.16
7878
// @grant GM_notification
7979
// @grant GM_xmlhttpRequest
8080
// @grant GM_setClipboard
@@ -544,7 +544,9 @@
544544
changeUrl(true,[["a"],[['http:(.*hacg)','https:$1']]]);
545545
}
546546
if(/hacg\.(ch|la|at|tw)/.test(location.href)){
547-
document.title = "冒牌货 ★ "+document.title;
547+
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");
548550
}
549551
var embeds=document.querySelectorAll(".wp-embedded-content");
550552
for(i=0;i<embeds.length;i++){

0 commit comments

Comments
 (0)