Repository: govuk-browser-extension
Chrome and Firefox extension for developers working on GOV.UK.
- Ownership
- #govuk-publishing-experience-tech
- Hosting
- N/A
- Category
- Utilities
README
Allows easy switching between the different GOV.UK environments and content representations. Inspired by the govuk-bookmarklets.

Installation
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.
For Chrome:
-
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.
For Firefox:
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 select manifest.json
.
- Visit any page on GOV.UK.
Source: Temporary installation in Firefox.
Running the tests
In development, it’s easiest to run:
$ bundle exec rake jasmine
This will start a server on http://localhost:8888/ that serves the tests.
You can also run the Jasmine test suite in slower “headless” mode with:
$ bundle exec rake jasmine:ci
Releasing the extension
- Update the version in
manifest.json
- Run
rake build
- Create a Pull Request with the new package committed
- Upload newly created package in
/build
to the Chrome web store. You will need to have been added to the govukdevelopers google group (at the time of writing, @andysellick, and @alex-ju).
- Upload newly created package in
/build
to Firefox Add-ons. Account details in the 2nd line password store.
License
MIT License