Manipulating a Google Doc outline using Google App Script - google-apps-script

Is there a way to use a Google App Script to remove an item in the document outline (the outline that appears when you select View->Show Document Outline in the top menu)? I have a script that adds several H3 headers, and I don't want those headers to appear in my outline.

Related

Add a clickable menu item or a button to the Google Docs editor [duplicate]

In a google document, is there a way to make a piece of text (or a hyperlink or a button inside the text) calling a google app script?
The options are to create a custom menu or a sidebar panel. For further details see:
https://developers.google.com/apps-script/guides/docs
https://developers.google.com/apps-script/guides/menus
https://developers.google.com/apps-script/guides/dialogs
Related questions:
Is it possible to modify the Google Docs/Sheets right-click context menu?
Add custom menu to a Google Document

How to access Gmail messages selected (checkbox)

I am trying to build an Add-On for gmail which will perform some actions on a set of messages selected by the user.
Looking at the gmail Apps Script API, I cannot see a method that allows me to do that.
I've noticed that some AddOns operate on selected messages, just like what I want to do. See picture below...
The checkboxes (highlighted in green) tell the AddOn what to operate on.
What am I missing?
The opened menu has options to forward the messages selected by combining them.
Also, I noticed that this AddOn is placed by google along the top. The same happen to the boomerange AddOn. The AddOn I am developing, always appears on the right hand side (pink arrows).
How can you place your addOn along the top menu?
The items you reference with the orange arrows in the image are not Gmail Add-ons, they are actually Chrome Extensions. Chrome Extensions are installed in the browser and they can add functionality by manipulating the DOM (Document Object Model) of a webpage. The chrome extension in question is probably specifically targeting chrome tabs with Gmail loaded and injecting content in the respective pages.
If you want to learn more about developing Chrome Extensions check out the following documentation:
https://developer.chrome.com/extensions/devguide
And for developing gmail specific Chrome Extensions you might want to check out the InboxSDK framework linked below:
https://www.inboxsdk.com/

Google Apps Script to force open the document outline

I'm sending a google doc (view only) out to a bunch of students. I would like the document outline to show by default. I know they can manually go in to the View menu and open the document outline, but is there any way to force open the document outline when students access the document (apps script?)

how to call a script from inside a google document

In a google document, is there a way to make a piece of text (or a hyperlink or a button inside the text) calling a google app script?
The options are to create a custom menu or a sidebar panel. For further details see:
https://developers.google.com/apps-script/guides/docs
https://developers.google.com/apps-script/guides/menus
https://developers.google.com/apps-script/guides/dialogs
Related questions:
Is it possible to modify the Google Docs/Sheets right-click context menu?
Add custom menu to a Google Document

How to display the body of the spreadsheet document?

So there is some landing page, where link, that opens document in blank page. But it opens with all toolbars and other stuff. The main aim, to display the document in a new window without all the toolbars, only the body of the document (red border on the picture). Here the picture:
How to realize this? With API?
When you open a Google Drive spreadsheet, the URL has "/edit" at the end. If you change this to "/preview" then you will get a view-only version of the spreadsheet.