MCPcopy
hub / github.com/52cik/github-hans / transTitle

Function transTitle

main.js:100–108  ·  view source on GitHub ↗

* 翻译页面标题

()

Source from the content-addressed store, hash-verified

98 * 翻译页面标题
99 */
100 function transTitle() {
101 var title = translate(document.title, 'title');
102
103 if (title === false) { // 无翻译则退出
104 return false;
105 }
106
107 document.title = title;
108 }
109
110
111 /**

Callers 1

main.jsFile · 0.85

Calls 1

translateFunction · 0.85

Tested by

no test coverage detected