- Sep 2020
-
onezero.medium.com onezero.medium.com
-
There are clever ways around trackers
I also recommend switching to FIrefox, getting the Facebook container extension and Privacy Badger extension!
-
- Apr 2020
-
developer.mozilla.org developer.mozilla.org
-
A settings page gives users a way to see and change settings (sometimes also called "preferences" or "options") for the extension.
Topic: How to save settings in firefox extension.
-
-
-
Webpack is a most have to compile a complete JavaScript project.
Test question: how do you pack the web extension?
-
linter
Test question: What is a linter?
Answer (Wikipedia): lint, or a linter, is a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.[1] The term originates from a Unix utility that examined C language source code.[2]
-
This tool accepts both a configuration file and line parameters.
Test question: How can you configure web-ext?
-
-
developer.mozilla.org developer.mozilla.org
-
you create an HTML file and point to it using a specific property in manifest.json. The HTML file can include CSS and JavaScript files, just like a normal web page.
Test question: How do you link in manifest.json sidebar, popup and options page?
-
-
developer.mozilla.org developer.mozilla.org
-
It should be 48x48 pixels.
Test question: What is the recommendes size of the icon for the firefox extension?
-
"48": "icons/beasts-48.png"
Test quesiton: Why is there no "," at the end of the line?
-
[
Square brackets are used for arrays.
-
,
Not to forget the "," at the end of { } block in json.
-
The popup
Question: How to create popup and what do I need for creating this? Answer: 3 files: html, css, js
-
-
developer.mozilla.org developer.mozilla.org
-
Extensions for Firefox are built using the WebExtensions APIs, a cross-browser system for developing extensions.
Testing question: How compatible are extensions among Web Browsers?
-
-
developer.mozilla.org developer.mozilla.org
-
The most interesting key here is content_scripts, which tells Firefox to load a script into
Testing question: What part of "manifest.json" tells firefox where is the script to load?
-
description is optional, but recommended: it's displayed in the Add-ons Manager. icons is optional, but recommended: it allows you to specify an icon for the extension, that will be shown in the Add-ons Manager.
Testing question: What are the optional parts of manifest.json?
-
The first three keys: manifest_version, name, and version, are mandatory and contain basic metadata for the extension.
Question: What are the mandatory part of manifest.json?
-
-
developer.mozilla.org developer.mozilla.orgPopups2
-
The popup is specified as an HTML file, which can include CSS and JavaScript files, as a normal web page does.
Testing question: Of which files the popup consists of?
-
Popups resize automatically to fit their content.
Testing question: How is the popup resized?
-
-
developer.mozilla.org developer.mozilla.org
-
There are two ways to specify a browser action: with or without a popup
Question: What are the ways in which the browser action can work?
-
The only mandatory key is default_icon
Question: What is the only mandatory key in the firefox "browser action" in the manifest.json file?
-
Specifying the browser action
Question: Where do you define the browser action? Answer: In the manifest.json.
-
ommonly referred to as a browser action, this user interface option is a button added to the browser toolbar. Users click the button to interact with your extension.
Question: What is a "browser action"?
-
- Nov 2018
- Nov 2014
-
developer.mozilla.org developer.mozilla.org
-
Add a toggle button to the Firefox user interface. With this module you can create buttons that function like a check box, representing an on/off choice.
Seems to support using a toggle for the Hypothesis extension.
-