Turn off autocomplete in the App Script editor [duplicate] - google-apps-script

Any idea how to switch off the contextual help that covers your code above the line you are working on? It also covers the auto-complete which is super annoying.

There is no user preference setting to disable contextual help in the new Apps Script code editor.

Related

New Apps Script IDE too helpful. Can you turn it off?

Any idea how to switch off the contextual help that covers your code above the line you are working on? It also covers the auto-complete which is super annoying.
There is no user preference setting to disable contextual help in the new Apps Script code editor.

Adding Button in Gmail for web users

I am trying to figure out how can I add a button to the Gmail compose window.
Please see the image below for better idea..
Using Google App Script I have achieved some functionality where we can create almost anything, but How can We create a button in Gmail?
Even if not compose window as shown in image above, I will like to learn how to add button at any place in Gmail.com's window using gadget or any other way.
Note: I have tried many things and ended up nowhere, The Sidebar is deprecated by google so please don't highlight that..
I will be glad if any working code to add button in Gmail available,
Thanks in advance

Is there any way to get alert and prompt buttons to follow the UI Style guide for add-ons

I really don't want to create a full html dialogue box for a simple yes no question, when it is built into getUI() api. My problem is that prompt and alert function don't seem to conform to the UI Style guide for add-ons. This is causing an issue when trying to get it published, because I can't make them blue, or work when enter is clicked on the keyboard.
So is there any way to properly style alert and prompt boxes, or does anyone have any tricks that they are using.
The one thing I did was change my non-button alerts from alert to using toast instead.
The UI style guide specifically says 'And don't use UI service to create a public add-on', so no. You must use the HTML service.

Can't open google apps script. All buttons and menu are disabled

today I'm having some trouble opening the script editor.
The interface opens but the whole app seems to be disabled. I have no field to type the code and the buttons and menu bar are gray.
Can someone help me on this issue?
Thanks.
Switch you drive locale settings to English and it will work. This is a temporary workaround to use until they fix the bug. see issue 4339

Gmail extension/gadget API - how to add a button to the compose toolbar?

I'm trying to figure out how can I add a button to the Gmail compose window.
In "Gmail Labs" they have some extensions that add certain buttons For example "Send & Archive" button and "Inserting images" button, so I assume this is possible.
I checked their API here and it seems that you can either add a gadget to left sidebar or use contextual gadgets that are dependent on the message context. I'm looking for a way to add a button to the toolbar of the compose window, and both options don't seem to support it.
Do you know how can this be done?
If it's not possible using Gmail API, is there another way I can achieve this? Maybe by creating a Google Chrome extension or user scripts?
I would appreciate any info that can direct me in the right direction.
Thanks.
The Gmail Labs have special permissions because they are written by Google Employees, unfortunately we mortals don't have such power. There is a way around it of course and you've correctly pointed out that it is to make a Chrome Extension or a UserScript. If you choose to do a Chrome Extension it will just be a wrapper for a UserScript anyway
You will have to create and inject the button programmatically. This will involve quite a bit of scouring the Gmail source code (spoiler: it's ugly).
Without more details about what you want to do, I won't be able to provide much more help but I can help you with one problem right away. You have to make your script wait until the Gmail loading process is done which is a bit of a challenge. This is the solution I'm currently using in Minimalist:
function bootstrap() {
target = document.querySelectorAll('.vt:not(.SFzvCe)');
if (document.querySelectorAll('html.xiu1Fc, html.aao')[0] == null) {
return;
}
if (target.length > 0) {
// loaded, do stuff
} else {
window.setTimeout(bootstrap, 200);
}
}
window.addEventListener('DOMSubtreeModified', bootstrap);
That version waits for the chat to fully load. Let me know if you have any other questions: #anstosa
You can use InboxSDK for that.
Here is documentation link
Also you have a Hello world repo, where is a solved your problem
hello repo