我在页面的标题上有这个代码
<script>window["_GOOG_TRANS_EXT_VER"] = "1";</script>
Run Code Online (Sandbox Code Playgroud)
但我不明白它的意义或从它产生的地方,任何人都知道什么?我想删除它,因为它似乎是页面生成中的一个问题...
谢谢您的帮助.
小智 9
这是由Google翻译扩展程序(或基于Google翻译扩展程序的其他扩展程序)动态插入的
Google翻译扩展程序的源代码专门指代它:
/* Copyright 2010 Google */
...
function v(a) {
var b = {
noEvents: c,
content: u('window["_GOOG_TRANS_EXT_VER"] = "1";')
};
i.tabs.executeScript(a, {
code: q(s, b)
})
}
...
Run Code Online (Sandbox Code Playgroud)
并禁用该扩展程序将其从页面中删除.