您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
An IMGUI inspired GUI Framework for javascript thats designed to be as simple to use as IMGUI.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/535798/1587962/ImmediateGUI.js
An IMGUI inspired GUI Framework for javascript thats designed to be as simple to use as IMGUI. Its actively developed, which means stuff might change and bugs (most definitely) will occur when using this
Supports most of the default controls one could need, can drag the gui around with the mouse, toggle between light/dark mode etc.
For how to use it, check the example code down below (and look at the code of the library)
Example Images (and pseudo code how they were made)
const gui = new ImmediateGUI({
theme: 'dark', /* or 'light' depending on what you want */
position: 'right', /* what side of the screen the form should display at by default */
width: 400,
draggable: true, /* true by default, so this can be omitted */
});
gui.AddHeader("Image Downloader", 5);
gui.AddSeparator();
gui.BeginSection("Filename Options");
const cbPreserveOriginalFilename = gui.AddCheckbox("Preserve original filename", false);
const txtNamePrefix = gui.AddTextbox("Filename Prefix");
const txtNameSuffix = gui.AddTextbox("Filename Suffix");
gui.EndSection();
gui.BeginSection("Advanced Options");
const cbHumanize = gui.AddCheckbox("Humanize Downloads", true);
const cbRequestlessDownload = gui.AddCheckbox("Attempt a requestless download for images", true);
gui.BeginIndentation();
const cbRequestLessParallel = gui.AddCheckbox("Use parallelism for requestless downloads", cbRequestlessDownload.checked);
gui.EndIndentation();
gui.BeginIndentation(2); // Custom indentation levels supported, this is 2 levels deep which is calculated as 2 * this.indentationSize (which defaults to 10 pixels)
const inputParallelChunkCount = gui.AddNumberInput("Parallel Chunk Count", 3, 1, (25 / 3) + 1);
gui.EndIndentation();
const cbRequestLessParallelModeCompability = gui.AddCheckbox("Parallel Compability Mode", true);
cbRequestLessParallelModeCompability.disabled = true;
gui.BeginIndentation();
const cbPreferWebpIfSupported = gui.AddCheckbox("Prefer WEBP images (if supported)", true);
gui.EndIndentation();
gui.EndSection();
gui.BeginSection();
const numFilenameIndexStart = gui.AddNumberInput("Start filename index at", -1, -1, 9999);
gui.AddSeparator();
const inpStart = gui.AddNumberInput("Download Start Range", 1, 1, 25);
const inpEnd = gui.AddNumberInput("Download End Range", 25, 1, 25);
const btnDownload = gui.AddButton(`Download 25 Images`, async () => {
// Your button click event here
});
const btnDownloadRange = gui.AddButton(`Download Range (25 Images)`, async () => {
// Your button click event here
});
gui.EndSection();
gui.BeginIndentation();
gui.AddCheckbox("Play sound when downloads are done", true);
gui.EndIndentation();
// This shows the GUI to the user
gui.Show();