/thinklient

An open-source Google Chrome extension to nudge towards thoughtful and deliberate posting.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

thinklient

An open-source Google Chrome extension to nudge towards thoughtful and deliberate posting.

Install

  1. Install node and npm
  2. Clone the repo.
  3. npm install
  4. npm run build
  5. Open chrome://extensions/ on Google Chrome.
  6. Enable "Developer mode".
  7. Click "Load unpacked extension".
  8. Navigate and select the dist directory of the cloned repo.
  9. Visit facebook.com and the contents of content-script should be run!

Test

  1. Enable all features before testing.
  2. Test encourage discard
    1. Verify that the 'Post' dialog has a rust-colored 'Discard' button properly aligned to the left of the 'Post' button.
    2. Verify that clicking 'Discard' closes the dialog.
  3. Test random quotes
    1. Verify that a quote appears in place of "What's on your mind, ?" in the 'Post' box.
    2. Verify that the new 'Post' box created after posting something contains another quote (not necessarily a different one).
    3. Verify that a quote appears in place of "Write a comment..." in the 'Comment' box.
    4. Verify that the new 'Comment' box created after commenting something (on the previous post, e.g.) contains another quote (not necessarily a different one).