项目作者: yst138451

项目描述 :
Unofficial realtime counters for 10FF
高级语言: JavaScript
项目地址: git://github.com/yst138451/10ff-realtime-counters.git
创建时间: 2019-09-29T19:42:29Z
项目社区:https://github.com/yst138451/10ff-realtime-counters

开源协议:MIT License

下载


Unofficial Realtime WPM Counter for 10FF

A self-contained script for “injecting” additional functionalities on 10FF. It’s all about improved typing experience.

Screenshot 1

Results might not be in perfect sync since we’re calculating the scores client-side while the final result, server-side; but it’s usually only a few CPMs off, thus should still be reliable in giving you a quick heads-up on your potential achievement during the test.

💠 Features

  • Realtime WPM counter (for sure).
  • Beer-filling-up progress bar.
    Note: Click on the countdown timer to turn it on/off and type on, undistracted!

🔧 Configurations (optional)

Head over to src folder and open up the config.json file, make your desired changes and reproduce the target script by running npm start.

Default options:

  1. {
  2. "wpmCounter": {
  3. "styles": {
  4. "color": "#de1531",
  5. "fontSize": "1.3em",
  6. "fontFamily": "Roboto, monospace"
  7. }
  8. },
  9. "progressBar": {
  10. "fillColor": "rgba(210, 150, 122, 0.2)"
  11. }
  12. }

The styles options are essentially the common CSS properties which let you further customize the counters look.

❓ How to use

To create one, do the following:

  1. Run npm start (non-programming users can ignore this step), then
  2. Locate the output file (called “10ff-realtime-counters.min.js“) inside the dist folder.
  3. Copy the whole script text to clipboard.
  4. Fire up your favorite browser of choice (e.g. Chrome) and hit Ctrl+Shift+B or Command+Shift+B on Mac to display the bookmark bar (if you haven’t already).
  5. Add a new bookmark, name it and in the URL field, paste the script you copied earlier prefixed with javascript: protocol, like so:

    1. javascript:(paste_the_copied_script_here)
  6. At this point, go to the 10FF site, click on this bookmark and enjoy! :)

Console Inject (the simplest, for one-off use)

Bring up the browser console window on 10FF website by pressing F12 for Windows or Cmd+Option+J for Mac, select the “Console” tab, paste the script into the text field, hit Enter, and voila!

Chrome Extension

Coming soon!

📜 License

MIT