How to enable Inspect function within right-click menu on custom dialog when debugging Google apps script? - html

I'm developing a file picker function in Google sheet, using Google Picker API. Now I'm able to show a custom dialog window to pick files from my Google drive, but the result doesn't fully meet my needs, I would like to debug and find out any wrong script in HTML which shows in the dialog window. However, when I right-click and select Inspect in a new popup window, it's grey and invalid, unable to debug. What's wrong? Does our company's Google manager restrict users to debug?
Here is a screenshot to show my problem:

Are you able to click outside of the modal and inspect it?
You can also press F12 to open the developer tools.
Also, ctrl+shift+C will open the developer tools with the element picker tool selected.

Related

Use Google App Script to prevent user opening url link in Sheets if site is already open in another browser tab

I've got a Google Sheet that contains numerous hyperlinks.
I'd like to prevent the user from opening multiple instances of the same site.
ie. user clicks the hyperlink in one cell which opens the linked site in a new tab, then attempts to click the same hyperlink while the first new tab is still open - I'd like a dialogue box to appear saying that they cannot open this second new tab until they have closed the first one.
Is this possible via Google App Script?
Many thanks!
Unfortunately not. GAS has no access to your browser data and cannot know what tabs are open.Moreover, GAS has no way of intercepting hyperlink clicks from within a spreadsheet, it can only do that in a side bar, modal (or modeless) dialog, a custom or an add-on menu or an image with a script attached to it.

Automatically open an gmail addon card without user clicking on the addon icon

I am looking for a way (I understand does not really seem a good idea) to force my Gmail addon to automatically open a card and display the same.
Basically, the addon should check the current email's tags and then auto trigger some 'showPanel' of the addon.
I see some answers about google sheets, but not getting how to go about this in the Gmail addon without user triggering it.
Additional Chrome Extension way ??:
If this is not something possible. I also have a chrome extension (which the users will have installed) clicking on a link created by the chrome extension can I somehow trigger the addon icons click event?
Apologies if this basic stuff, not able to find any direct useful info.
There is a Chrome extension that allows you to automaticlly open an addon from Gmail, Calendar, Drive and Docs when you open the page in the browser.
https://chrome.google.com/webstore/detail/auto-open-add-on/bcjnialkobgkdkbdclhdnbdcdgdcgdlo

Is there a way to add a chrome app shortcut to my bookmarks bar in Google Chrome?

Some Chrome extensions have bookmark icons that are automatically added to the bookmarks bar, but, so far as I can tell apps such as Postman can't be added directly to the shortcut bar.
If I want to launch an "app" (i.e. not one of the extensions which already show up in the toolbar) such as this, I have to open the "Apps" shortcut window, and then find the app (or launch it separately from the app launcher).
I would very much like to have a bookmark to a specific App in the bookmark bar. Is this possible?
It's not possible.
The closest implementable thing is an extension with a toolbar icon that launches specifically the app.
Or toolbar popup launchers like Apps Launcher or AppJump App Launcher and Organizer.
Not the direct answer to the question, but this question is about quickly launching signal.
Two other solutions include:
https://github.com/WhisperSystems/Signal-Desktop/pull/1262
Add a shortcut to your Launcher or Desktop
Have Signal Desktop already open
Right our Double click on your app icon
On Mac: Choose Options > Choose Keep in Dock
On Windows: Select More > Pin to taskbar
The shortcut Alt + S, however this is being Depreciated:

How do you get the url of the script your running in Google scripts?

If your making a script using the Google script editor, how do you get the url of the script your running in the google script editor in google docs? (sorry for not capitalizing the word google)
If I'm understanding your question, you can choose the "Publish" -> "Deploy As a Web App..." menu item. From there, the pop-up will show "Deploy as Web App" with a text box underneath containing the URL. Grab that (or click the "latest code" link just below it). You don't have to follow-through on the re-deploy (if you do, you'll want to use the URL it presents in a pop-up after doing so)
If you haven't previously deployed it, you'll need to save a "version" and deploy it, as touched on here. Upon doing that, it will present you with the Url in a pop-up as mentioned above. If you miss it, the the first part of this answer applies.

Working with current tab from Popup chrome extention

I'm trying to make an extension that will collect some data from currently opened tab on Google chrome.
I also use a popup in my extension to provide a control interface (buttons and stuff).
I need to be able to do the following:
1) Read source code of currently opened tab.
2) To be able to scroll down window content (using the code of course) .
If I could only get access to a javascript "window" object of currently opened tab , that would be enough.
But I'm open for another suggestions .
Can anyone help ?
You can simple use document in a content_script. Content scripts are defined in the manifest.json. In your case you should set "run_at": "document_end", so the dom is fully loaded when your script is called.
For more informations about content scripts and chrome extension development you find an easy to use guide from google - http://code.google.com/chrome/extensions/content_scripts.html
Code from popup won't be able to access directly to window objects from displayed tabs. You have to use a content script which will be able to send the source code of opened tab to the background page. This content script will also be able to scroll the window of opened tab.