Giter Club home page Giter Club logo

alphagov.govuk-browser-extension's Introduction

GOV.UK Toolkit for Chrome and Firefox

Allows easy switching between the different GOV.UK environments and content representations. Inspired by the govuk-bookmarklets.

Screenshot

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:

  1. Download the source from GitHub and unzip.
  2. Visit chrome://extensions in your browser.
  3. Ensure that the Developer mode checkbox in the top right-hand corner is checked.
  4. Click Load unpacked extension… to pop up a file selection dialog.
  5. Navigate to src in the extension directory, and select it.
  6. 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.

  1. Download the source from GitHub and unzip.
  2. Visit about:debugging in your browser.
  3. Click Load Temporary Add-on to pop up a file selection dialog.
  4. Navigate to src in the extension directory, and select manifest.json.
  5. 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

  1. Update the version in manifest.json
  2. Run rake build
  3. Create a Pull Request with the new package committed
  4. 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).
  5. Upload newly created package in /build to Firefox Add-ons. Account details in the 2nd line password store.

License

MIT License

alphagov.govuk-browser-extension's People

Contributors

tijmenb avatar suzannehamilton avatar rubenarakelyan avatar alex-ju avatar chao-xian avatar matmoore avatar sihugh avatar andysellick avatar davidslv avatar carvil avatar leenagupte avatar dilwoarh avatar tomsabin avatar dependabot[bot] avatar ikennaokpala avatar chrisbashton avatar murilodalri avatar nooshu avatar robinjam avatar jackscotti avatar elliotcm avatar alecgibson avatar cbaines avatar davidbasalla avatar gpeng avatar injms avatar jeremyhhy avatar fofr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.