Today my three Chrome extensions web developer accounts have been disabled and all my 30+ extensions are all taken down without even single warning email, but got the email stating that
"Where possible, make as much of your code visible in the package as
you can. If some of your app's logic is hidden and it appears to be
suspicious, we may remove it".
But, my extensions were containing only 2-3 javascript files, one is standard jquery js file, and other two are my own javascript files which have hardly 100+ lines of basic validation logic of javascript code. I am 100% sure that those are not at all malicious or suspicious code. I really don't know why Google has taken such ruthless action by suspending and taking down all extensions without even basic courtesy of informing to us.
I did get such complains from other friends who's accounts also got suspended and 100+ extensions are taken down. It is definitely seem to be a mass action.
If anybody facing same issue, please share your experience and any solutions to get everything back.
Regards
===== manifest.json =====
{
"manifest_version": 2,
"name": "Extension",
"version": "1.0.0",
"description": "Extension Description",
"icons": {"16": "img/icon-16.png", "48": "img/icon-48.png", "128": "img/icon-128.png"},
"background": {
"page": "background.html"
},
"browser_action": {
"default_icon": "img/icon-48.png",
"default_title": "Extension",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [ "http://*/*", "https://*/*"],
"js": ["js/jquery-1.9.1.min.js", "js/common.js", "js/popup.js"]
}
],
"permissions": ["*://*/*", "tabs", "webRequest", "webRequestBlocking", "notifications"],
"content_security_policy": "script-src 'self' 'unsafe-eval' https://ssl.google-analytics.com; object-src 'self'"
}
Related
I am trying to get display information in my chrome extension. I was very successful to get it in manifest version 2 with "system.display" permission.
The API I used,
chrome.system.display.getinfo((info)=>{
console.log(info);
}
);
I am trying the same in manifest version 3, but it's giving me the error.
TypeError: Cannot read property 'display' of undefined
My manifest file,
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
},
"host_permissions": ["<all_urls>"],
"permissions": ["activeTab", "tabs", "history", "storage", "system.display"]
Please help me to find out where I am making mistake.
One more thing, I read something like availability: foreground only, in a document of chrome.system.display API. If someone can explain what that exactly means then it'll be great knowledge you share with me.
Thanks
I have a Chrome extension that uploads to the Chrome store just fine. My current manifest file is posted below. It is saved in ANSI format as suggested in previous posts with this issue. This is the third variant and they all produce the same error message when I try to install: "Invalid manifest". No real information. I have tried waiting 24 hours for it to propagate properly as suggested in previous posts, but to no effect.
Has anyone encountered this issue before?
The extension is here: https://chrome.google.com/webstore/detail/bamboo-dialog-fixer/oelecpkhobhmbbdmehaoonkbkdodhdio?hl=en-US
{
"manifest_version": 2,
"name": "Bamboo dialog fixer",
"version": "1.3",
"description": "This extension makes bamboo popup dialogs such a the performance dialogs fit the width of the screen.",
"icons": {"128": "BambooHR_FullSize.png"},
"content_scripts":
{
"css": "styles.css",
"matches": "https://*.bamboohr.co.uk/*"
}
}
Thanks wOxxOm. I must have screwed up, even though I thought I had it right on a previous occasion. I rewrote the file as below and uploaded and it works now.
{
"manifest_version": 2,
"name": "Bamboo dialog fixer",
"version": "1.4",
"description": "This extension makes bamboo popup dialogs such a the performance dialogs fit the width of the screen.",
"icons": {"128": "BambooHR_FullSize.png"},
"content_scripts": [
{
"css": ["styles.css"],
"matches": ["https://*.bamboohr.co.uk/*"]
}
]
}
I developped a Google Docs add-on with translations, so, instead of using the traditional online deployment process, I need to upload a ZIP file with a json manifest (example below) and files for each locales.
{
"manifest_version": 2,
"name": "__MSG_application_title__",
"short_name": "__MSG_application_title__",
"description": "__MSG_application_description__",
"container": ["GOOGLE_DOCUMENT"],
"default_locale": "en",
"icons": {
"16": "icon.png",
"128": "icon.png"
},
"container_info": {
"container_version": "my_container_version",
"post_install_tip": "my_tip",
"container_id": "my_container_id"
},
"version": "my_version"
}
When uploading such ZIP file, I get the following error message:
An error occurred: Failed to process your item. Please specify
background subsection of app section in the manifest. Legacy packaged
apps cannot be uploaded to the Chrome Web Store any more. More
information can be found at
http://blog.chromium.org/2014/06/migrate-your-legacy-packaged-apps-to.html
I tried to add background subsection from different ways, but none of them was working. Does anyone know how to change the manifest to make it valid please ?
Thanks
Sincerest apologies, I was misunderstanding the issue entirely. Try and see if:
"app":{
"background":{
"scripts":["background.js"]
}
},
Works when added to your code.
similarly, I had to change the app section of my manifest to the following to get it to work when facing this issue:
"app": {
"background": {
"persistent": false
}
}
I'm having a problem controlling what pages my content scripts are injected into. The chrome extension developer guide specifies that I can use an "exclude_matches" directive in my manifest.json to exclude certain pages from injection.
However, this doesn't seem to have any effect. My content script still executes on pages that I have specified as ignored.
I have put the steps to reproduce in a Gist. The code is also available on Github.
Any ideas what I'm doing wrong?
manifest.json
{
"name": "Testing Extension",
"version": "1.0",
"description": "Test the chrome extensions exclude_matches.",
"content_scripts": [{
"matches": ["http://*/*", "https://*/*"],
"exclude_matches": ["http://news.ycombinator.com/"],
"js": ["content.js"]
}]
}
content.js
console.log("hello from the content script");
This is Bug #100106. exclude_matches do not function properly.
To solve the problem, use exclude_globs instead of exclude_matches.
Also, your exclude_matches rule does only match http://news.ycombinator.com/.
Suffice the pattern with an asterisk to match the whole site: http://news.ycombinator.com/*.
See also: Match patterns.
I made an extension for google chrome but I don't like what the market put as a warning :(
This extension may have access to:
Your data on every website
Your history data
the manifest:
{
"name": "extension name",
"description": "description cool super description.",
"version": "1.0",
"permissions": [ "tabs", "http://*/*", "https://*/*" ],
"browser_action": {
"default_icon": "icon.png",
"popup": "popup.html"
}
}
Is there any way to explain to google that I don't access any of this? is just an app to reveal asterisk :(
If you mean "browser history" part then it's a bug on the webstore website which someone should report. This contradicts their own docs where it says that tab permission should raise "Your tabs and browsing activity" warning. (As a reference this bug report could be used)
"Your data on all websites" is correct one. Their warnings show not what you do, but what you can potentially do.