你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/433465-quick-cyoa-calculator,源站連結 點此以跳轉

Quick CYOA calculator

Overlay for quick CYOA playing



點此查看下載連結位址https://update.greasyfork.org.cn/scripts/433465/Quick%20CYOA%20calculator.user.js

安装此脚本?
提问、发表评价或者举报此脚本
作者
agreg
日安装量
0
总安装量
513
评分
0 1 0
版本
0.9.7
创建于
2021-10-06
更新于
2025-06-01
大小
46.0 KB
许可证
MIT
适用于

Overlay for quick CYOA playing. No more spreadsheets!

The design is minimalistic, so make sure to at least skim through the usage section, or refer to it when confused (also, check for tooltips on unmarked checkboxes).

Features

Note: the script was developed under Firefox (which is better suited for CYOA browsing either way), with Tampermonkey script manager. Chrome (and browsers based on it) was tested for general compatibility but I could've missed an issue if it's sufficiently obscure.

Firefox users: you may want to enable (toggle to true) the value dom.forms.select.customstyling in about:config, to enable colors in dropdowns

Usage

With exception for CYOA mode button, the userscript is activated via userscript menu (in case of Tampermonkey, click on the Tampermonkey button in the browser toolbar to find it). To open the CYOA calculator overlay, pick “Toggle overlay” action. (Additionally, unloading the overlay is done with the same menu action; all the state is reset upon unloading, including the storage connection.)

When loaded, the overlay can be found at the top right corner of the screen; it's transparent when not hovered by the mouse cursor, to prevent getting in the way of reading the CYOA, and can be minimized at any time.

Overlay header

At the top of the overlay (which can be found in top-right corner of the screen) is a header/toolbar.

Points view

This is the initial view, as well as the “navigation hub” of sorts for other views. It allows you to browse/manage your point types.

Note: deleting the point type removes it from all choices as well. Renaming the point type also updates all choices that use it.

Choices view

This view is opened by clicking Choices button in the Points view. It contains the list of choices you've picked (along with those you deselected without deleting); you can alter it, change your selection, filter by selection, and view your build in read-only mode.

Note that any complex CYOA rule (like a single-time cost/bonus for a multi-selection choice, or synergy effects), especially when making a ‘preset’, will likely require you to create additional ‘virtual’ choices that indicate such effects; as a convention, I suggest making it grey-colored and naming it after the option, appended by rule/effect description in braces ({}) – e.g. Choice name {+other choice}.

Also note that grouping in read-only mode works based on a simple pattern match: group name: choice name.

Builds view

This view is opened by clicking Build button (displaying the name of the active build or <unnamed> if none) in the Points view. It contains the list of stored builds along with the current one; each stored build can be exported as a file, and the current state can be stored as a build (or overwritten by importing/loading a build).

Note that stored builds are saved to the storage on every build change, and even if you haven't enabled fast-sync the build will be synced occasionally (once per 5 minutes instead of per 5 seconds). The only way un-sync (unlink?) the overlay from a build is to unload the overlay (via “Toggle overlay”). Likewise, you can't export your build without storing it, and can't overwrite a stored build directly by loading or importing another.
Also, unless you're using Firefox, changes in storage made in Private mode aren't retained when closing the browser.

CYOA mode

Certain sites used for hosting CYOA images (image gallery sites) aren't well-suited for browsing them: they clutter their interface with UI elements unnecessary for image viewing, and the images themselves only take up a small part of the screen, regardless of their actual size. (And if you click on the image, you get a full-screen preview… which doesn't help at all when the image is 10000px long.)

In case of those supported by this userscript (Imgur and ImageChest), it adds a CYOA button to the top-left corner of the screen; clicking on it toggles “CYOA mode” which removes all the clutter and makes the gallery area (almost) full-width. The state of the button is retained for the site (so after enabling CYOA mode in an Imgur gallery, all Imgur galleries will be loaded in CYOA mode until it's toggled off again).

(Also, I suggest setting 120% page zoom for CYOA browsing.)

New in v0.8.3: improved Imgur support (full quality images, disabled switching galleries by Left/Right Arrow keys)
New in v0.9.1: added a page tracker (slider for page selection)

Note for Imgur: before using the slider, scroll through all pages! (I.e. drag the slider from first to last tick one-by-one, or just hold down PgDown after loading the page first).
Due to a bug in the site code, for any page that Imgur hasn't loaded yet, Imgur will mess up positioning of all the subsequent pages!

Open in Cubari/Imgur/ImageChest

Cubari is a manga viewing app adapted for browsing image galleries; some of the few sources it supports are Imgur & ImageChest.
This userscript adds a menu command “Open in Cubari” for Imgur/ImageChest galleries, which causes the browser to open the respective Cubari URL in a new tab; and for Cubari pages supporting Imgur/ImageChest, a menu command “Open in Imgur” (“Open in ImageChest”) is added.

(I suggest enabling limit-width, top-to-bottom single-page layout with page gaps on, and with page-selector pinned on the left in Cubari settings… and of course collapsing the sidebar as well.)

Open in Viewer

CYOA Viewer is a CYOA viewing app I've made at some point, the main feature of which is that it displays loaded images in full-width (limiting their width to 100% of the screen; though it can be changed to 150%, 200%, 300% or 400%). Though I guess the CYOA mode mitigates most of the reason for using it (in case of Imgur/ImageChest galleries).
This userscript adds a menu command “Open in Viewer” for most supported sites (except for itself and Cubari, but including standalone images), which causes the browser to open the respective Viewer URL in a new tab.

(Opening from Cubari isn't supported due to technical difficulties in obtaining URL lists; also, if you open an individual page – either as a standalone image, or in Imgur/ImgBB, – “Open in Viewer” will load Viewer with only the currently opened page.)

In case of standalone pages, you can either download them and use “Open” button of the Viewer, or compose a Viewer URL on the URL generator page (type the title and URLs into respective inputs, and click the first generated link).

New in v0.8.2: on the Viewer page, there's an option to switch to CYOA Viewer v2 (a version that supports making an "interactive" overlay) and back to v1; and on both of these pages, there's an option to open the URL generator with the data from the current Viewer URL.