Comments (5)
Realised that many samples already use commands (albeit not custom commands). Closing issue
from chrome-extensions-samples.
hi @hrmtsh2, could you point me towards any of these samples? much appreciated
from chrome-extensions-samples.
Well, coming back to this issue, I have been unable to find a single sample that explicitly uses the "command" property in the manifest (I swear I saw many when I closed the issue!). Even if there were, it was certainly small in number, and many samples do not, in fact, demonstrate the commands API.
I suppose one could do this by either incorporating it into existing samples, or by creating a new (set of) api-samples for it.
So I will reopen this issue.
from chrome-extensions-samples.
Hi @hrmtsh2, an example of an extension using the manifest declaration would be this one: https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api-samples/default_command_override
The only thing I don't see right now is an example of an extension using the getAll method. I think a new sample demonstrating that or updating an existing sample would make sense, if you want to work on something :)
from chrome-extensions-samples.
Sorry I was unable to find this before.
Yes, I will work on a sample demonstrating the getAll()
method. My first idea was to extend the sample you've linked here to use getAll()
in two ways:-
- To display all shortcuts in the extension popup (will be extending the sample you linked above with a couple more shortcuts and a popup)
- To check for unassigned shortcuts (this case could arise when two extensions attempt to register the same shortcuts) as is demonstrated in the docs
from chrome-extensions-samples.
Related Issues (20)
- continuous recording sample - allow user to select media stream tab or window ? HOT 1
- Manifest V3 declarativeNetRequest redirect sample is completely broken on latest chrome 121 HOT 11
- The Quick Start tutorial "quick-api-reference" sample doesn't work HOT 15
- Samples for chrome.management HOT 2
- Network preview tab override HOT 2
- How i can use extensions to hide maximize、minimize HOT 1
- Sample for chrome.types HOT 1
- Sample for chrome.desktopCapture
- Sample for chrome.offscreen HOT 1
- A CI to check for grammer mistake in the `.md` files HOT 8
- Adding a pull request template to the repository as like issue template HOT 2
- Proposal: Enforce Node Version Rule and Prevent Modifications to package-lock.json
- I have a problem with the color of the tab page in the console HOT 1
- Incorrect Time Unit in History API Sample Code
- Extension complexity HOT 2
- sidePanel has minimum width of 495 pixels. too large. HOT 1
- Chrome
- [Question]: Missing dynamic override response content capability HOT 1
- Specific SidePanel Site Only Works with Google.com HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extensions-samples.