Allows easy switching between the different GOV.UK environments and content representations. Inspired by the govuk-bookmarklets.
The extension is downloadable on the Chrome web store and AMO for Firefox.
If you don't want to install from your browser's web store for security reasons, you can install a local non-self updating copy.
- Download the source from GitHub and unzip.
- Visit chrome://extensions in your browser.
- Ensure that the Developer mode checkbox in the top right-hand corner is checked.
- Click
Load unpacked extension…
to pop up a file selection dialog. - Navigate to
src
in the extension directory, and select it. - Visit any page on GOV.UK.
Source: Getting Started: Building a Chrome Extension.
Extensions installed using the following instructions are only active while Firefox is open and are removed on exit. Permanently-active extensions can be only be installed from packages signed by Mozilla.
- Download the source from GitHub and unzip.
- Visit about:debugging in your browser.
- Click
Load Temporary Add-on
to pop up a file selection dialog. - Navigate to
src
in the extension directory, and selectmanifest.json
. - Visit any page on GOV.UK.
Source: Temporary installation in Firefox.
You'll need jasmine-browser, which you can set up with:
$ npm install
You can then run the tests with:
$ npm test
This will start a server and run the tests in a browser (chrome by default).
If you want the browser to remain open with the test results, you can use
$ npx jasmine-browser-runner serve
..then navigate to http://localhost:8888/
When a new version is merged to main
, a new version of the extension is automatically packaged up and published to
Firefox Add-ons and to Chrome web store. See releasing.md
MIT License