What's the most efficient way of adding buttons in gmail?What is the most efficient way to deep clone an object in JavaScript?How to efficiently count the number of keys/properties of an object in JavaScript?What is the most efficient way to create HTML elements using jQuery?<button> vs. <input type=“button” />. Which to use?How can I know which radio button is selected via jQuery?What's the difference between using “let” and “var”?Most efficient way to create a zero filled JavaScript array?How to create an HTML button that acts like a link?What is the best way to detect a mobile device?Round to at most 2 decimal places (only if necessary)
Is for(( ... )) ... ; a valid shell syntax? In which shells?
Is there any way to keep a player from killing an NPC?
What are some interesting features that are common cross-linguistically but don't exist in English?
Compelling story with the world as a villain
Can a Rogue PC teach an NPC to perform Sneak Attack?
Why did this happen to Thanos's ships at the end of "Avengers: Endgame"?
Why do all fields in a QFT transform like *irreducible* representations of some group?
Would it be possible to have a GMO that produces chocolate?
Handling Disruptive Student on the Autistic Spectrum
Can more than one wizard copy a spell from a spellbook?
Is using a hyperlink to close a modal a poor design decision?
Non-visual Computers - thoughts?
How to find out the average duration of the peer-review process for a given journal?
Dataset human solutions for OR problems
French abbreviation for comparing two items ("vs")
Which note goes on which side of the stem?
Identify a problem where a potentially winning move draws because of the 50 move rule
Nothing like a good ol' game of ModTen
What is the difference between "Grippe" and "Männergrippe"?
Thank God it's Friday, tomorrow is THE weekend. Why the definite article?
Confirming resignation after resignation letter ripped up
Prove your innocence
Architectural feasibility of a tiered circular stone keep
If all stars rotate, why was there a theory developed that requires non-rotating stars?
What's the most efficient way of adding buttons in gmail?
What is the most efficient way to deep clone an object in JavaScript?How to efficiently count the number of keys/properties of an object in JavaScript?What is the most efficient way to create HTML elements using jQuery?<button> vs. <input type=“button” />. Which to use?How can I know which radio button is selected via jQuery?What's the difference between using “let” and “var”?Most efficient way to create a zero filled JavaScript array?How to create an HTML button that acts like a link?What is the best way to detect a mobile device?Round to at most 2 decimal places (only if necessary)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to add custom buttons into gmail, and was partially successful by injecting elements into the div
. The problem seems to be gmail changing the div class elements dynamically without notice and the button are not getting properly instantiated and they are returning null values.
The second issue is that these custom elements will not be instantiated until and unless Gmail loads fully, if i am trying to instantiate these div elements from chrome extensions it will work only after two or three reloads , where as the other chrome extensions are able to do it when gmail loads completely , I am unable to figure out how are they doing it.
InboxSDK doesn't support adding buttons in search bar area
javascript html google-chrome-extension
add a comment |
I am trying to add custom buttons into gmail, and was partially successful by injecting elements into the div
. The problem seems to be gmail changing the div class elements dynamically without notice and the button are not getting properly instantiated and they are returning null values.
The second issue is that these custom elements will not be instantiated until and unless Gmail loads fully, if i am trying to instantiate these div elements from chrome extensions it will work only after two or three reloads , where as the other chrome extensions are able to do it when gmail loads completely , I am unable to figure out how are they doing it.
InboxSDK doesn't support adding buttons in search bar area
javascript html google-chrome-extension
The probably use MutationObserver to detect when a certain element appears. Alternatively, there's an unofficial gmail.js API.
– wOxxOm
Mar 27 at 17:39
add a comment |
I am trying to add custom buttons into gmail, and was partially successful by injecting elements into the div
. The problem seems to be gmail changing the div class elements dynamically without notice and the button are not getting properly instantiated and they are returning null values.
The second issue is that these custom elements will not be instantiated until and unless Gmail loads fully, if i am trying to instantiate these div elements from chrome extensions it will work only after two or three reloads , where as the other chrome extensions are able to do it when gmail loads completely , I am unable to figure out how are they doing it.
InboxSDK doesn't support adding buttons in search bar area
javascript html google-chrome-extension
I am trying to add custom buttons into gmail, and was partially successful by injecting elements into the div
. The problem seems to be gmail changing the div class elements dynamically without notice and the button are not getting properly instantiated and they are returning null values.
The second issue is that these custom elements will not be instantiated until and unless Gmail loads fully, if i am trying to instantiate these div elements from chrome extensions it will work only after two or three reloads , where as the other chrome extensions are able to do it when gmail loads completely , I am unable to figure out how are they doing it.
InboxSDK doesn't support adding buttons in search bar area
javascript html google-chrome-extension
javascript html google-chrome-extension
edited Mar 27 at 17:38
Ajay Kumar Ganesh
1,6581 gold badge18 silver badges30 bronze badges
1,6581 gold badge18 silver badges30 bronze badges
asked Mar 27 at 17:28
elixirdev9549elixirdev9549
13 bronze badges
13 bronze badges
The probably use MutationObserver to detect when a certain element appears. Alternatively, there's an unofficial gmail.js API.
– wOxxOm
Mar 27 at 17:39
add a comment |
The probably use MutationObserver to detect when a certain element appears. Alternatively, there's an unofficial gmail.js API.
– wOxxOm
Mar 27 at 17:39
The probably use MutationObserver to detect when a certain element appears. Alternatively, there's an unofficial gmail.js API.
– wOxxOm
Mar 27 at 17:39
The probably use MutationObserver to detect when a certain element appears. Alternatively, there's an unofficial gmail.js API.
– wOxxOm
Mar 27 at 17:39
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55383263%2fwhats-the-most-efficient-way-of-adding-buttons-in-gmail%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55383263%2fwhats-the-most-efficient-way-of-adding-buttons-in-gmail%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The probably use MutationObserver to detect when a certain element appears. Alternatively, there's an unofficial gmail.js API.
– wOxxOm
Mar 27 at 17:39