Adding buttons on the GMAIL Toolbar - google-chrome-extension

I currently have a chrome extension which adds a new button on the GMail Toolbar each time I open a message in GMail on a chrome tab. This is done currently using inboxSDK's (1) registerThreadViewHandler() and (2) registerMessageViewHandler()
Unfortunately, using inboxSDK library will make the extension call remote code which is disallowed in Manifest V3.
I would like to ask if there are other possible and sustainable ways to do this without inboxSDK.
Thank you very much.

Related

Disable notifications of a Chrome Extension that you don't control

I'm using a Chrome Extension, which I like a lot, but it shows notifications, which I find distracting. I want to disable those notifications. I'm using Linux Mint, and the notifications are shown in the panel (at the bottom of the screen).
I've checked chrome.management API, but haven't found anything related to disabling notifications. Also googling didn't provide any results.
The only way I can think of is installing the same
extension via Developer mode, creating a system script that would be watching the original Chrome Extension folder for changes, and on every change, copy the content to the Developer Mode folder (modified), modify it after each update to remove the notifications permission, and then reload the Developer Mode extension inside Chrome via a shortcut, for example.
I'm wondering if there is any simpler way to accomplish this.

How to insert a button to gmail page in firefox extension?

i want to develop an extension for both chrome and firefox and need to insert a button to gmail page. In chrome i use Inboxsdk and it work very fine like this: image
Unfortunately, it looks like inboxsdk is not supported on the firefox extension. I tried to load the inboxsdk script but nothing happened on gmail. I want to ask is there a way to use Inboxsdk on firefox extension? Or is there any other way to insert the button into gmail as inboxsdk? Thankyou.
The InboxSDK is currently just supporting Chrome and Safari Browser extensions.
What browsers are supported? Chrome and Safari are currently
supported. Chrome version 36 and Safari 7 are the minimum versions we
support.
Firefox support is under consideration; please let us know if you're
interested.
FAQ - Supported Browsers
One approach to add buttons without InboxSDK to compose views could be using MutationObservers and check whenever a compose view is added to the DOM. Find the send button and append your own button dynamicly. The hard part will be to find a way how you can reliably identify compose views/send buttons.
Classnames could work but I'm bot sure if gmail has consistent classnames and ids you can use (obfuscation etc.).

Writing Gmail Chrome Extesion

I'm interesting in developing Chrome Extension for Gmail.
Unfortunately I couldn't find any tutorials on this subject (demonstrating a simple action as adding a button).
I'm looking for adding a button to the compose toolbar, and creating a new tag/folder in gmail account.
Please, Help!
You should check out these APIS at https://github.com/joscha/gmailr, it is a fork of https://github.com/jamesyu/gmailr but the original author has been too busy to update it.

Chrome Extensions in Gmail, autosave removes it

I'm trying to write a chrome extension that is used in the GMail compose screen. So far I have it working the way I want to except that when the GMail does its auto-save it removes my extension.
I'm adding in my extension with the content_script via java inject. and appending to the compose iframe.
Any help would be appreciated :)
You have to track DOM changes and re-add your code after the auto-save. There is another answer that gives a quick intro to DOMNodeInserted events. You should be able to watch for the Draft saved at ... insert.

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