Skip to content

[BUG] 错误的UserConfig会导致脚本无法加载 #483

@CodFrm

Description

@CodFrm

问题描述

错误的UserConfig会导致所有脚本无法正常加载

重现步骤

示例:

// ==UserScript==
// @name         New Userscript
// @namespace    https://bbs.tampermonkey.net.cn/
// @version      0.1.0
// @description  try to take over the world!
// @author       You
// @match        https://*
// ==/UserScript==

/* ==UserConfig==
// group1:
//   configA:                                # 键值为group.config,例如本键为:group1.configA
//     title: 配置A                          # 配置的标题
//     description: 这是一个文本类型的配置     # 配置的描述内容
//     type: text                            # 选项类型,如果不填写会根据数据自动识别
//     default: 默认值                       # 配置的默认值
//     min: 2                                # 文本最短2个字符
//     max: 18                               # 文本最长18个字符
//     password: true                        # 设置为密码
 ==/UserConfig== */

(function() {
    'use strict';

    // Your code here...
})();

脚本猫版本

v0.18.1

操作系统以及浏览器信息

Any

补充信息 (选填)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions