Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Character counter #4

Open
saxoncameron opened this issue May 4, 2022 · 8 comments
Open

[REQUEST] Character counter #4

saxoncameron opened this issue May 4, 2022 · 8 comments

Comments

@saxoncameron
Copy link

Much like some people like to track the number of characters read when reading a VN (e.g. via a texthooker page with a character counter), it'd be cool to have something similar here in the top part of the UI that tracks the number of characters as you read.

AFAIK there's nothing like that out there for manga, so that'd be a unique feature that this tool would enable.

@saxoncameron
Copy link
Author

saxoncameron commented May 8, 2022

Pasted_Image_8_5_2022__2_39_pm

For those interested, I unofficially bootstrapped this feature for myself along with a couple others via bookmarklets.

  1. mokuro-char-counter.js adds a little bar to the top-right which tracks total characters/pages read (pictured)
  2. mokuro-arrow-navi.js lets you use the left/right arrow keys to navigate pages
  3. mokuro-pan-scroll.js changes scroll behaviour from zoom to vertical scroll. Zoom changed to alt+scroll

How to use:

  1. Go to https://mrcoles.com/bookmarklet/
  2. Depending on which of the above features you want, copy/paste that files contents into the text box there
  3. Hit Convert to bookmarklet button
  4. Click and drag the generated blue link into your browser toolbar
  5. Whenever you open up a mokuro-generated html file, hit the bookmarklet button to enable (must be done every time)

(Download link removed, scroll to bottom for newest version)

@saxoncameron
Copy link
Author

As discussed with the author, this would be a nice thing to officially integrate into the manga reader UI in future, but this is a functional workaround in the meantime.

@saxoncameron
Copy link
Author

saxoncameron commented May 11, 2022

mokuro-character-counter version 1.3.0 has the following changes/fixes:

  • [FEATURE] Reading timer starts/stops automatically based on whether the tab or window is focused/visible.
  • [FEATURE] Reading timer is now coloured green when active, red when stopped.
  • [STYLE] Character counter UI now appears above manga canvas, not below.
  • [CHORE] Timer "stop" button renamed to "pause".
  • [STYLE] Character count UI no longer overlaps with top menu on smaller viewports.
  • [FIX] Character p/h number will no longer ever have decimals.

mokuro 1 3 0

(Download link removed, scroll to bottom for newest version)

@saxoncameron
Copy link
Author

saxoncameron commented May 12, 2022

Some minor fixes for the mokuro-char-counter bookmarklet - thanks for the reports :slight_smile:
v1.3.1

  • [FIX] Characters p/h no longer equal '∞' when reading timer surpasses 1 hour. 🤦‍♂️
  • [FIX] Document visibility listener for reading timer auto play/pause now also checks for focus too.
  • [FIX] Timer auto-play no longer triggers if the timer was paused.

Image

(Download link removed, scroll to bottom for newest version)

@saxoncameron
Copy link
Author

saxoncameron commented May 23, 2022

FYI a couple more tweaks/fixes to the mokuro character counter UI bookmarklets

Screen Shot 2022-05-23 at 2 28 07 pm

mokuro-char-counter v1.4.0

  • [CHORE] Character p/h initially displays "(wait 1m)" for increased functional clarity.
  • [FIX] The reliability of the timer auto-play reliability has again been improved.
  • [FEATURE] When turning to an unread page, if the reading timer is paused, it is automatically resumed.
  • [FEATURE] Added hotkeys for reading timer: (s)tart, (p)ause, (r)eset.

Latest download link

Mokuro bookmarklets.zip

@SirGram
Copy link

SirGram commented May 7, 2023

FYI a couple more tweaks/fixes to the mokuro character counter UI bookmarklets

Screen Shot 2022-05-23 at 2 28 07 pm

mokuro-char-counter v1.4.0

  • [CHORE] Character p/h initially displays "(wait 1m)" for increased functional clarity.
  • [FIX] The reliability of the timer auto-play reliability has again been improved.
  • [FEATURE] When turning to an unread page, if the reading timer is paused, it is automatically resumed.
  • [FEATURE] Added hotkeys for reading timer: (s)tart, (p)ause, (r)eset.

Latest download link

Mokuro bookmarklets.zip

Timer stops when yomichan is opened.

@OhMesch
Copy link

OhMesch commented Nov 14, 2023

Just wanted to say love the character counter and and arrow nav enhancements.
Having some nice success using it as a tampermonkey script matching pretty generously on 'file://**/*.html'
Could be an alternative distribution method to consider until fully integrated

@cedarhillgoods
Copy link

Pasted_Image_8_5_2022__2_39_pm

For those interested, I unofficially bootstrapped this feature for myself along with a couple others via bookmarklets.

1. `mokuro-char-counter.js` adds a little bar to the top-right which tracks total characters/pages read (pictured)

2. `mokuro-arrow-navi.js` lets you use the left/right arrow keys to navigate pages

3. `mokuro-pan-scroll.js` changes scroll behaviour from zoom to vertical scroll. Zoom changed to alt+scroll

How to use:

1. Go to https://mrcoles.com/bookmarklet/

MrColes bookmarklet creator didn't work for me. Had success using https://www.yourjs.com/bookmarklet/ instead. Looks like they generate different code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants