How to disable a specific extension programmatically? - google-chrome-extension

How can I disable a specific extension programmatically from my own extension?

"Extensity" chrome extensions programmatically disables extensions, so you can try giving a look at its code (if it is not obfuscated).

Related

Auto enabling and disabling chrome extension at particular time?

How can I enable/disable any chrome extension at particular time automatically even during my sleep.
This is possible by creating another extension with chrome.alarms.create to define the times and chrome.management.setEnabled to toggle the extensions.

For a Chrome extension, can it control other extensions like turning them off?

I'm working on a project where I need to see the page I'm working on without any extension injected code messing up what I see. I want to know if I can create, or if there is currently, an extension that disables all other extensions for xyz page.
No, extensions can only disable other extensions entirely by using chrome.management.setEnabled API. It's like the on/off switch in chrome://extensions page.
The only way to exclude a certain site from being affected by all or some extensions is to add ExtensionSettings policy with runtime_blocked_hosts that contains that site. Note that the entire site is disabled, not just a single URL. Example: {"*": {"runtime_blocked_hosts": ["*://lastpass.com"]}}
A simple workaround for your use case may be to open that page in an incognito window or even in a new browser profile without extensions: click your avatar icon in the toolbar to access the profile tools where you can create and then open a new profile.

is there any way to disable a chrome extension but without hidding the icon

i'm making a chrome extension with a toggle button that disable and enable the extension but the problem is that the extension icon hides when i click it.
i was thinking in a background extension but how I can add two extensions in the manifest.json..
The answer is simple: you can't! In a manifest.json you can only declare one extension and all the relative resources. The behaviour you want to achieve is not possible, because the icon will be removed from the chrome toolbar if an extension is deactivated, and it's not possible to change this.

Disable a specific Chrome extension for a specific page?

Can I add code to a page that will disable an extension running on that specific page?
Yes, there are extensions and settings that will prevent an extension from running.
I'm trying to avoid those approaches and control it within the page itself where I don't want it to run.
Yes, I can add code to the page(s) where I want to disable.
Want to do this with Javasript or JQuery.

Is it possible to call one extension from another

I have Google Chrome and the extensions installed on it. I would like to reduce number of extension buttons on Chrome panel.
For this I want to create my plugin which will display popup window and allow to run another extension installed on my browser?
Is it possible and where I can find examples?
The messaging API has an external extension feature. You can use that communicate between extensions.

Resources