Last active
November 23, 2025 12:57
-
-
Save TypeA2/d8df8b02f59281d6f8e145b59d6cdf8b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Check everyhing really | |
| // @namespace https://docs.scriptcat.org/ | |
| // @version 1.0.1 | |
| // @description A real check-all | |
| // @author TypeA2 | |
| // @downloadURL https://gist.github.com/TypeA2/d8df8b02f59281d6f8e145b59d6cdf8b/raw/el-check-all.js | |
| // @updateURL https://gist.github.com/TypeA2/d8df8b02f59281d6f8e145b59d6cdf8b/raw/el-check-all.js | |
| // @match *://*.donmai.us/* | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| /* global JSPLib $ */ | |
| let initialized = false; | |
| const BUTTON = `<div class="el-check-all-real el-section-link" title="Check all"> | |
| <a class="el-link" style="color: mediumseagreen;">Check all</a> | |
| </div>`; | |
| (function() { | |
| 'use strict'; | |
| $("#main-menu").on("click", e => { | |
| if (e.target.id === "el-nav-events" && !initialized) { | |
| $(".el-home-section[data-type='controls'] > div > .el-check-all").after(BUTTON); | |
| $(".el-check-all-real").on("click", _ => { | |
| $(".el-home-section[data-type]:not([data-type='controls']) .el-check-all > .el-link").each((_, e) => e.click()); | |
| JSPLib.lib.EventListener.notice.notice("Checking all"); | |
| }); | |
| initialized = true; | |
| } | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment