I made some Userscripts for chyoa (Updated: 2021-10-24)

Discussion in 'CHYOA General' started by poiasdew, Apr 20, 2021.

  1. poiasdew

    poiasdew Virgin

    Edit: UPDATED 2021-10-14! Version 3.0.0. New images of the new features

    Chapter Counter for Map and Next Chapter choice

    Map page
    • Shows how many chapters are inside each chapter in the map screen
    • Button to toggle Collapse/Expand of all chapters of the chosen depth
    Chapter page
    • Shows the date of chapters of scanned stories under the chapter's header
    • Shows how many chapters are inside each chapter choice
    • Button "Prev Chapters" that shows a tree of all chapters leading to the present one
    How to use:
    Open the map page, load the entire map moving to the bottom, then click regenerate. Now it should all work

    Hi! I've been obsessed with making this the entire week. Now I can share the goods! :)
    I like to collapse all branches and use the map to choose which decision has more chapters inside it.

    It is a UserScript. To use it, you need a browser extension like TamperMonkey, ViolentMonkey...

    Script: https://greasyfork.org/en/scripts/425316-chapter-counter-for-map-and-next-chapter-choice

    Images:
    [​IMG] [​IMG] [​IMG]
     
    Last edited: Oct 14, 2021
    C_Que, SageMaelthon, Gyutze and 3 others like this.
  2. poiasdew

    poiasdew Virgin

    C_Que likes this.
  3. poiasdew

    poiasdew Virgin

    Updated the first script to v3.0.0.
     
  4. srennorj

    srennorj Virgin

    Thanks for the excellent scripts! A request though: is it possible to add hotkey navigation? Like, press 1 to choose the first option, etc. For *ahem* one-handed usage.
     
    poiasdew likes this.
  5. Gyutze

    Gyutze Virgin

    That would be great!
     
    poiasdew likes this.
  6. poiasdew

    poiasdew Virgin

    Sorry for the late response. I have a script for that!

    I call it Mouseless Link Opener: https://sleazyfork.org/en/scripts/423692-mouseless-link-opener
    It maybe a bit wonky so be sure to edit it first. I have it set to CTRL+' (my key under ESC on my brazilian portuguese keyboard), but you can config it to any other key you want.
    To use it you press the hotkey (CTRL+' in my case), it will show numbers next to the links on screen. You can cycle between them with TAB, and cancel with ESC. Press the number you want to "click". Hold CTRL while pressing a number to open in a new tab.

    I also have this other other script I call Smooth Scrolling for scrolling the page up and down: https://greasyfork.org/en/scripts/423926-smooth-scrolling
    I use it with W and S.

    Remember that you can edit the scripts @match rules to make it only work on the websites you want.

    Alternativelly you can substitute both scripts with a browser extension called Vimium. It adds Vim-like keybinds the browser. Vim is a text editor popular with the Linux crew that you can do everything and more without a mouse.
    The extension requires a little bit of learning tho. The basics is that you can navigate up and down with JK and UD, and click links with F.
    It can be a bit intrusive with how it wants to work on every page by default and adds a ton of other hotkeys
     
    Cuchuilain likes this.
  7. pdg728

    pdg728 Virgin