how do i see code behind the Google sheet add on? - google-apps-script

I created couple of google sheets add on, but then later my associated google account was disabled and can't access/edit those add ons.
Instead of starting from scratch I thought to ask here if there is a way to see the code behind the Google sheet add on?
thank you

No such API to view source code for Add-ons, nothing mentioned in the docs atleast.

Related

How to get the DOM elements of the active page in google app script from add-on

I am currently developing a google calendar add on . And I need to access the DOM of the current active page from the add On
I need to know how to get the DOM element in app script for google add on
Problem
Unfortunately, at the day of this answer there is no functionality in Apps Script to get the DOM of any site.
Workaround
Try using a chrome addon as these might let you get the DOM of sites. Here you can find out more about chrome add ons.
I hope this has helped you. Let me know if you need anything else or if you did not understood something. :)

Is there a way to remove big blue bar on top of google documents after running a script using google apps script

I am creating a google apps script for a private reason but this is nothing about the code. If you are confused by the title, I will explain what I mean:
I'm pretty sure most google drive users have used add-ons before. When you launch an addon, it runs a script. Perfectly normal, but the thing is, you don't know when it is running a script because there isn't anything indicating it. What I want is to hide that big blue bar that appears when you run a script.
I tried looking at Google Apps Script's website but if you tried searching something like this on the web, your browser won't understand you which is why I decided to use stack overflow.
Here is a picture of what I want to get rid of:
as you can see here the I want to hide the "Finished Script" thing using Google Apps Script or some other way.
Based from this blog, as soon as you click the Apps Script button, you’ll see a yellow bar "Running function <function-name>". This will indicate that the script is running. When done, the bar will read “Finished Script”. This is a built-in Google Apps Script feature. I think you will not be able to remove this feature.

Google Chrome extension - integrate with Google Calendar

How can a Chrome extension alter the Google Calendar event editing UI?
I see that, for example, the Moxtra extension has managed to inject UI including a button just below the location. According to their YouTube video they added a button to fill out the event description although when I installed Moxtra this no longer seems to work.
Stepping back from this a bit, it occurs to me that editing the Google Calendar page seems like something that could easily get messed up by future changes to Google Calendar. Perhaps it is better to edit the event description from the extension's own UI? If so, how can that be done?
Thanks.
It can be done with content scripts and modification of the DOM.
They probably check Event edit page for specific selectors and try to insert their own elements in the page, if they found it.
So, if UI of Google Calendar will change, extensions like Moxtra will be probably also broken.
You are right about the edit of the description - it's safer. But you still need to get a description field and change a content of it. There is no 100% safe way to do it and don't break on the change of UI.

Google Slides API activating script on click of element

I am trying to create a branching scenario using google slides, the idea is that someone viewing the presentation can click on the buttons and see the outcome of their selections.
The first few slides it's easy, it's a 1 to 1 so I can just use the "link" feature in slides.
The tricky part is once you progress to slide 3. I want the slide they are directed to by clicking on the "course of action" options to be based on all the currently selected options.
So here is where I'm stuck - I need to figure out how to have an interaction (click) with the slide in presentation mode trigger a script.
Any suggestions on how to accomplish this in Google Slides?
At this time the Slides Service for Google Apps Script and the Google Slides REST API don't include a way to call a script on a click of an element. This feature is only included on Google Sheets (Clickable images and drawings in Google Sheets)
NOTE: The Google's official documentation very rarely includes a page about missing features. It could be possible that someone already submitted a feature request through the official Issue Tracker. If so, you could star that issue to get notifications about changes on it. Another place to monitor is the G Suite Developers Blog and the Google Apps Script release notes.

Can't get Google Now card to trigger from email

I've followed the tutorial here: https://developers.google.com/schemas/tutorials/google-now-cards
and I cannot get an event card to show up in my google now. I have noticed that some of the test emails I sent yesterday using this link http://gmail-actions.appspot.com/ (as suggested by the tutorial) have correctly showed the "Modify Reservation" button in Gmail but it seems like this doesn't show up immediately. I'm wondering if Google is doing some processing on the backend that takes some time to propagate into my inbox. I'm also wondering if Google Now Cards will only work if you schedule something at least one day in the future.
Has anyone gotten this to work? If so, was there any "gotchas" that aren't obvious from the Google Tutorial? Any help would be appreciated.
I've finally got this to work. For some reason the starter tutorial they provide doesn't give you adequate markup to generate a google now card. Instead, you should use the event without reservation markup here.