GM_config
This commit is contained in:
parent
0a7e011166
commit
6362b3187d
19
user.js
19
user.js
|
@ -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();
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue