", "text": "<p>I have this code on the header of my page</p>\n\n<pre class="prettyprint"><code> &lt;script&gt;window["_GOOG_TRANS_EXT_VER"] = "1";&lt;/script&gt;\n</code></pre>\n\n<p>But i dont understand its meaning or from where it is generated, anyone knows anything ?\nI would like to delete this because it seems to be a problem in the page generation...</p>\n\n<p>Thank you for your help.</p>", "answerCount": 2, "upvoteCount": 433, "dateCreated": "2012-04-15 08:27:21", "dateModified": "2022-11-03 14:07:52", "author": { "type": "Person", "name": "Art Planteur" }, "acceptedAnswer": { "@type": "Answer", "text": "<p>This is dynamically inserted by the Google Translate extension (or other extensions that were based on the Google Translate extension)</p>\n\n<p>The source code of the Google Translate extension specifically refers to it:</p>\n\n<pre class="prettyprint"><code>/* Copyright 2010 Google */\n...\nfunction v(a) {\n var b = {\n noEvents: c,\n content: u('window["_GOOG_TRANS_EXT_VER"] = "1";')\n };\n i.tabs.executeScript(a, {\n code: q(s, b)\n })\n}\n...\n</code></pre>\n\n<p>and disabling the extension removes it from the page.</p>", "upvoteCount": 130, "url": "https://exchangetuts.com/what-is-the-meaning-of-scriptwindow-goog-trans-ext-ver-1script-1641191403421999#answer-1658023085560738", "dateCreated": "2022-10-01 07:53:11", "dateModified": "2022-11-03 14:07:52", "author": { "type": "Person", "name": "jrace" } }, "suggestedAnswer": [ { "@type": "Answer", "text": "<p>Check the actions for your onClick event for in anchor tags, or another JavaScript action that is being fired. it is most likely an escaped quote where there should not be an escape.</p>", "upvoteCount": 2, "url": "https://exchangetuts.com/what-is-the-meaning-of-scriptwindow-goog-trans-ext-ver-1script-1641191403421999#answer-1667524072293317", "dateCreated": "2022-11-02 01:07:52", "dateModified": "2022-11-03 13:07:52", "author": { "type": "Person", "name": "Todd Vaughn" } } ] } }
Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of <script>window["_GOOG_TRANS_EXT_VER"] = "1";</script>

I have this code on the header of my page

    <script>window["_GOOG_TRANS_EXT_VER"] = "1";</script>

But i dont understand its meaning or from where it is generated, anyone knows anything ? I would like to delete this because it seems to be a problem in the page generation...

Thank you for your help.

like image 433
Art Planteur Avatar asked Apr 15 '12 08:04

Art Planteur


2 Answers

This is dynamically inserted by the Google Translate extension (or other extensions that were based on the Google Translate extension)

The source code of the Google Translate extension specifically refers to it:

/* 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)
    })
}
...

and disabling the extension removes it from the page.

like image 130
jrace Avatar answered Nov 03 '22 14:11

jrace


Check the actions for your onClick event for in anchor tags, or another JavaScript action that is being fired. it is most likely an escaped quote where there should not be an escape.

like image 2
Todd Vaughn Avatar answered Nov 03 '22 13:11

Todd Vaughn