i have a problem with my content script in the Google Sheet. Example of the problem: I have this email "user1@gmail.com" syncronize with google (so is the primary account) and if i open a file into Google Sheet my content script runs, if I change the email of my Google sheet with another email as "user2@gmail.com" but always keeping the "user1@gmail.com" syncronized in google chrome my content script doesn't work anymore...
PS. The two account have the file shared ofc.
Manifest:
"content_scripts": [
{
"matches": ["https://docs.google.com/document/d/*", "https://docs.google.com/presentation/d/*", "https://*/spreadsheets/d/*"],
"run_at": "document_end",
"css": ["css/google-docs.css"],
"js": ["js/jquery-3.5.0.min.js", "js/font-awesome.js", "js/google-docs.js"]
}
],
Example of content script
console.log("hey");
alert("hey");
This problem is only on google sheet because on google docs and google presentation the content script works every time i change the user.
Chrome Policies
"chromePolicies": {
"DefaultSearchProviderEnabled": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": true
},
"DefaultSearchProviderName": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": "WeKnow"
},
"DefaultSearchProviderNewTabURL": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": "https://www.weknow.ac/search/?asset=hp&wtguid=11608433945423085&wtmacid=a0f69f31254c3a9e7a36e5563a097c99&wtsrc=6632&wtdt=010819&wtbr=1&wtpl=10.14.2.0&v=6.0"
},
"DefaultSearchProviderSearchURL": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": "https://www.weknow.ac/search/?asset=ds&wtguid=11608433945423085&wtmacid=a0f69f31254c3a9e7a36e5563a097c99&wtsrc=6632&wtdt=010819&wtbr=1&wtpl=10.14.2.0&v=6.0&q={searchTerms}"
},
"HomepageIsNewTabPage": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": true
},
"HomepageLocation": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": "https://www.weknow.ac/search/?asset=hp&wtguid=11608433945423085&wtmacid=a0f69f31254c3a9e7a36e5563a097c99&wtsrc=6632&wtdt=010819&wtbr=1&wtpl=10.14.2.0&v=6.0"
},
"NewTabPageLocation": {
"level": "recommended",
"scope": "machine",
"source": "platform",
"value": "https://www.weknow.ac/search/?asset=hp&wtguid=11608433945423085&wtmacid=a0f69f31254c3a9e7a36e5563a097c99&wtsrc=6632&wtdt=010819&wtbr=1&wtpl=10.14.2.0&v=6.0"
}
},
"extensionPolicies": {
"cjpalhdlnbpafiamejdnhcphjbkeiagm": {
},
"ghbmnnjooekpmoecnnnilnnbdlolhkhi": {
}
}