Skip to content

jsnmrs/bookmarklets

Repository files navigation

bookmarklets

Tools for the browser.

Install and run locally

  1. git clone https://github.com/jsnmrs/bookmarklets.git && cd bookmarklets
  2. npm ci
  3. npm start

Adding a bookmarklet

  1. Edit data/bookmarklets.json and add a new entry, following the schema used on the rest of the file
  2. Create a new JS file (and optionally a test HTML page) for the new entry
  3. Add code
  4. Run npm start to lint JS, build data file, and generate static site
  5. New entry will be added to the table of bookmarklets in index.html

Related web tools

Content Security Policy (CSP) issues

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.

Chrome

  1. Install the Disable Content-Security-Policy extension from the Chrome Web Store
  2. Select the Disable Content-Security-Policy extension button in the Chrome browser toolbar to disable CSP
  3. Navigate to the test page, launch ANDI
  4. When done testing with ANDI, re-enable CSP

Firefox

  1. In the address bar, enter about:config
  2. Under Preference Name, select security.csp.enable to disable it
  3. Navigate to the test page, launch ANDI
  4. When done testing with ANDI, re-enable the security.csp.enable