Skip to content

Instantly share code, notes, and snippets.

@TypeA2
Last active November 23, 2025 12:57
Show Gist options
  • Select an option

  • Save TypeA2/d8df8b02f59281d6f8e145b59d6cdf8b to your computer and use it in GitHub Desktop.

Select an option

Save TypeA2/d8df8b02f59281d6f8e145b59d6cdf8b to your computer and use it in GitHub Desktop.
// ==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