GM_config

This commit is contained in:
Egor Guslyancev 2024-04-10 14:29:18 -03:00
parent 0a7e011166
commit 6362b3187d
GPG Key ID: D7E709AA465A55F9
1 changed files with 10 additions and 9 deletions

19
user.js
View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name Sorryops
// @namespace sorryops
// @version 20240410.3
// @version 20240410.4
// @description Skip the half of the fun!
// @icon https://orioks.miet.ru/favicon.ico
// @author electromagneticcyclone & angelbeautifull
@ -12,25 +12,26 @@
// @grant GM_setValue
// @grant GM_addStyle
// @grant GM_registerMenuCommand
// @require https://openuserjs.org/src/libs/sizzle/GM_config.js
// @run-at document-start
// @require https://raw.github.com/odyniec/MonkeyConfig/master/monkeyconfig.js
// @downloadURL https://update.greasyfork.org/scripts/481036/Sorryops.user.js
// @updateURL https://update.greasyfork.org/scripts/481036/Sorryops.meta.js
// ==/UserScript==
const config = new MonkeyConfig({
title: 'Configure My Userscript!',
menuCommand: true,
params: {
var config = new GM_config({
id: 'config',
title: 'Script Settings',
fields: {
auto_answer: {
label: "Auto answer",
type: 'select',
choices: [ 'No', 'Click', 'Click + Display' ],
default: 'No'
options: [ 'No', 'Click', 'Click + Display' ],
default: 'No',
},
},
});
GM_registerMenuCommand('Configure My Userscript!', () => {
GM_registerMenuCommand('Script Settings', () => {
config.open();
})