Comments (3)
The tabs documentation ( https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs ) is part of the documentation of APIs for WebExtensions. That includes tutorials to run extension code
Are you able to find answers to your questions at:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions
from webextensions-examples.
The (Tabs API) examples featured in the documentation you linked to use the following syntax:
browser.tab
...
But it never mentions how to set browser
and there does not appear to be any documentation on MDN about the predicate browser
variable.
Can the Tabs API be interacted with directly through the console, or will I need to author [and publish?] a browser extension?
from webextensions-examples.
@dumpster-of-things I suspect your problem is that you need Toolbox for browser to be defined when you run snippets in the console. To do this, open about:debugging then This Firefox, click Inspect against any installed or temporary extension, and open Console. You can then paste and run the example code in the console.
from webextensions-examples.
Related Issues (20)
- Colors !?
- Manifest v3 examples needed HOT 6
- Favourite Color bug manifest HOT 11
- Native messaging example doesn't pong after a while HOT 3
- Can't get response in Ubuntu HOT 10
- Python Native Messaging host does not process 1MB input HOT 11
- Image is not loading by innerHTML in the content-script-register HOT 3
- Create an example of getting select text to a variable HOT 2
- Please add example for "Paste text from clipboard" HOT 5
- examples.json should include a way to list significant manifest keys
- Update eslint, fix linting errors and integrate in CI
- MV3 example for getting data from page/content script/activeTab context into action / popup HOT 3
- Broken root-cert-stats due to var -> let change HOT 6
- Firefox Load temporary addon not working HOT 12
- native-messaging app example: provide non-contrived example for each platform HOT 1
- Update root-cert-stats to use runtime.sendMessage HOT 3
- Update execCommand use in context-menu-copy-link-with-types HOT 2
- beastify beasts-48.png image is 60x60 not 48x48 HOT 1
- zip does not contain a valid manifest HOT 2
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 webextensions-examples.