Iam doing a Chrome extension using Google Calendar API to show list calendars and events. Everything seems good until I want to watch change whenever events have been changed. Following this document, I have to listen an endpoint to detect change but I can't create a server on chrome extension to do that thing. Having any way to do listen events change instead?
Already trying to search the solution to find the other way but nothing
Trying to use chrome.sockets.tcpServer (I prefer from Web Server for Chrome Extension but this API is deprecated
Related
I need to change my Google Chat status frequently because of daily meetings, which I do mostly in Google Meet. Is there a way to change my status as busy(programmatically) whenever I'm in Google Meet?
Google Meet does not offer a public API, this means that the only way would be to use a browser extension. This extension could be able to detect Google Meet calls and react by changing the status. As the Google Chat API does not support setting the status as far as I am concerned, using a something like puppeteer or a browser extension would be the only way.
I'm trying to share some information from my website. I managed to get it to share on facebook, however I would like to update this functionality and be able to call the share function available in the browser. Something like in the following image using the google chrome browser on my android phone.
I have tried using Navigator.share and ng-navigator-share
However I was not able to set up Navigator.share and I kept receiving errors that my browser is not supported with ng-navigator-share (even thou it states that it supports google chrome on an android phone). Does anyone have any idea how this can be achieved.
I am trying to make a Chrome extension to record user activity in the current tab.
I found out that I can use getUserMedia() on the front, and chrome.desktopCapture in my background script.
However, when I try to use chrome.desktopCapture.chooseDesktopMedia(['tab'], onApproved), I get prompted for the tab I want to share. However, I would like to skip this step and share my current tab without the prompt.
I know that this can be done, because in the Screencastify Chrome extension, you can do that. The first option is to record the current tab and no popups are displayed.
Have you taken a look at chrome.tabCapture API? It can be used inside of an extension, and unlike the chrome.desktopCapture API can be called programmatically without a prompt. The limitation is that the chrome.tabCapture API can only be used within an extension, and cannot be used within a Chrome packaged app (tested and verified in my own attempts at using the "tabCapture" permission in a custom packaged app). So, if you are just writing an extension, the chrome.tabCapture API might be your best option.
I'm trying to write a chrome extension that auto-hides the bookmark bar and shows it when you hover over that area. I was able to do this through c++ by listening to the cursor location and using the ctrl-shift-b shortcut. Unfortunately this is not feasible using the extensions API so I'll have to find another solution.
Would it be possible to do this by changing the value of show_on_all_tabs to true in Preferences?
"bookmark_bar":{"show_apps_shortcut":false,"show_on_all_tabs":false}
If so, then how would I go about implementing that in my extension?
Thanks
There's no API available to Google Chrome extensions to change/hook/control the browser UI.
Other Chromium-based browsers may have something of the kind like Opera's sidebar API.
Changing any of the internal files like the Preferences is also not allowed. It's hard to change even externally as you'd need to change Secure Preferences too, properly updating its hashsum.
Sending Ctrl+Shift+B hotkey from inside an extension/webpage is fruitless as well as it will never escape the content sandbox, and won't reach the browser's internal event listener.
Is there an API for google chrome extension that lets me add an event listener on key press in address bar?
I tried searching on the web, couldn't find anything.
No, unlike Firefox, Chrome doesn't expose its UI to extensions.
The only remotely related options are:
omnibox API to add a keyword search.
When the user enters your extension's keyword, the user starts interacting solely with your extension. Each keystroke is sent to your extension, and you can provide suggestions in response. The suggestions can be richly formatted in a variety of ways. When the user accepts a suggestion, your extension is notified and can take action.
commands API to register a hotkey for the extension that will work everywhere, including the omnibox but the extension won't be able to read anything from it.
webNavigation.onBeforeNavigate or webRequest.onBeforeRequest in case the prediction service is enabled - impossible since Chrome 71