Skip to content
A Chrome Extension with Useful JavaScript snippets for testing
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Useful Snippets Extension

A Chrome Extension with Useful JavaScript snippets for testing.

Feel free to contribute to this set of snippets.

What we are looking for are short JavaScript snippets that can run from a popup menu and provide small useful aids to support testing.

The snippets should also be small enough that they provide useful examples of using JavaScript from the console or as Bookmarklets and help people learn to use JavaScript in their testing.

Basic Install Instructions

  • Download and extract this repository somewhere
  • Navigate to chrome://extensions within Chrome
  • Ensure to switch 'Developer mode' on (a toggle at the top right of the page)
  • Select 'Load unpacked' and then navigate to the /extension folder
  • Navigate to a website and then right click it to access the Web Page context menu
  • After executing a snippet you can see the bot code and get the code as a bookmarklet by viewing the DevTools console

how to install extension

Current Snippets

Below is a list of snippets currently available with this extension. Have an idea? Want to contribute? Please feel free to fork this repository, add snippets and then create a pull request.


  • Remove images which do not have alt tags
  • Show images which do not have alt tags
  • Remove inputs which do not have matching for labels
  • Show inputs which do not have matching for labels
  • Remove page style sheets
  • Visualise page tab flow

Validation (Client side)

  • Remove max length attributes from fields
  • Remove required field attributes from fields
  • Remove paste restrictions from fields


  • Check label text overflow
  • Check button text overflow
  • Check link text overflow
  • Check page text overflow
  • Check all elements text overflow


See commit history for the authorship of the onging snippets.


  • add an icon
  • add more snippets
You can’t perform that action at this time.