* Automatic theme switching support in favorite colours
* Ref to dark theme
Co-authored-by: Rob Wu <rob@robwu.nl>
---------
Co-authored-by: Rob Wu <rob@robwu.nl>
* Adding send message and on message functions
* moving table displaying into a new function
* updating rootCertStats from var to let
* updating comments
* Apply Linter change, unused const
Co-authored-by: Rob Wu <rob@robwu.nl>
---------
Co-authored-by: Rob Wu <rob@robwu.nl>
Co-authored-by: rebloor <git@sherpa.co.nz>
Fixes#397
There is no mechanism for updating these files. They were last refreshed five years ago, so can no longer be guaranteed to reflect the example code. Links to these files on MDN were removed in https://github.com/mdn/content/pull/28422.
These examples are designed to be cross-browser compatible.
In particular, these extensions do not use `background` because there is
currently no single manifest that can support both Firefox and Chrome,
due to the lack of event page support in Chrome, and the lack of service
worker support in Firefox.
Three examples demonstrating the use of the declarativeNetRequest API:
- dnr-block-only: One minimal example demonstrating the use of static
DNR rules to block requests.
- dnr-redirect-url: One minimal example demonstrating the use of static
DNR rules to redirect requests.
- dnr-dynamic-with-options: A generic example demonstrating how host
permissions can be requested and free forms to input DNR rules.
* Extension now is up-to-date with the Menus API
In the previous version of this extension, the author used a comment to
explain that the `browser.menus.onClicked.addListener` event listener
doesn't pass the current check state of a checkbox menu.
To solve this, an additional variable checkedState was used to keep
track of the current value of the context menu.
But now, this function is supported by the menus API in Firefox.
I changed the code to reflect how you would use it with the recent
versions, making it easier for new developers to learn this
functionality.
* Comment now reflects new function body
* Made background script of context-menu-copy-link-with-types non-persistent. Now clearing errors that could result from background.js context menu creation happening more than once.
* Suggestions from code review
* Syntax error and formatting
* Added note about () => void browser.runtime.lastError
* Feedback suggestion
Co-authored-by: Rob Wu <rob@robwu.nl>
---------
Co-authored-by: rebloor <git@sherpa.co.nz>
Co-authored-by: Rob Wu <rob@robwu.nl>
* Don't use <div /> as a button
Addition to https://github.com/mdn/content/pull/21410
* stick to old styling
* Update beastify/popup/choose_beast.html
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
* Update beastify/popup/choose_beast.css
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
* fix: check for button type at event listener
* fix: align css selectors to changes
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>