Tools for the browser.
- Table of bookmarklets
- HTML bookmark file for importing into browsers (in Netscape bookmark format to import in any browser)
git clone https://github.com/jsnmrs/bookmarklets.git && cd bookmarkletsnpm cinpm start
Use the scaffolding script to create the required files:
npm run new -- --name "My Bookmarklet" --author "Your Name" --description "What it does" --tags "accessibility"This creates:
bookmarklets/my-bookmarklet.jswith metadata templatebookmarklets/my-bookmarklet.htmltest page stub
Then edit the generated files and run npm start to test locally.
Alternatively, create files manually:
- Create a JS file in
bookmarklets/with a JSDoc metadata block:/** * @bookmarklet My Bookmarklet Name * @description What the bookmarklet does * @author Your Name * @authorUrl https://example.com * @tags accessibility, utility * @pageTest true */ (function() { // Your bookmarklet code here })();
- Optionally create a test HTML page in
bookmarklets/with the same base name (no frontmatter needed) - Run
npm startto lint JS, build data files, and generate the static site
| Field | Required | Description |
|---|---|---|
@bookmarklet |
Yes | Display name of the bookmarklet |
@description |
Yes | Brief description of what it does |
@author |
No | Original author's name |
@authorUrl |
No | Link to author or source |
@tags |
No | Comma-separated list of tags |
@auditing |
No | Set to true for auditing favorites |
@pageTest |
No | true, false, or self for test page behavior |
- Eric Meyer's URL encoder and decoder
- Bookmarklet builder — long-standing, reliable JS to bookmarklet converter
- Bookmarkleter — another JS to bookmarklet converter
via ANDI - Accessibility Testing Tool - Install
If after pressing the ANDI favelet button, ANDI does not launch after a few seconds, it could be due to the page telling the browser to enforce a Content Security Policy directive. To determine if this is the issue, open the browser's Developer Tools (F12) and attempt to launch ANDI. If the Dev Tools console shows an error message that says "Refused to load the script…because it violates the following Content Security Policy directive" then this is the issue.
If the user desires to use ANDI immediately, Content Security Policy (CSP) can be disabled. Note: It is the user's decision to disable CSP and the user's responsibility to re-enable CSP when testing with ANDI has concluded. If users decide not to disable CSP, and ANDI cannot be launched, it is recommended to use other accessibility testing procedures.
- Install the Disable Content-Security-Policy extension from the Chrome Web Store
- Select the Disable Content-Security-Policy extension button in the Chrome browser toolbar to disable CSP
- Navigate to the test page, launch ANDI
- When done testing with ANDI, re-enable CSP
- In the address bar, enter
about:config - Under Preference Name, select
security.csp.enableto disable it - Navigate to the test page, launch ANDI
- When done testing with ANDI, re-enable the
security.csp.enable