🏠 返回首頁 

Greasy Fork is available in English.

GM_config 8+

A library to help you set up configure in greasemonkey script.

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/11562/66657/GM_config%208%2B.js

作者
Fred Eric
版本
2.1.1
创建于
2015-08-08
更新于
2015-08-08
大小
26.1 KB
许可证
LGPL version 3 or any later version

Based on height version. It adds Section insertion such as:


SectionOptions: {
label: "Options",
type: "section"
}

Insert the code before a new section of options.

And you can easily add your own CSS style to your config such as:


var settings = {
PlayerType: {
label: "Player Type",
type: "radio",     // 'checkbox', 'number', 'text', 'textarea', 'radio', 'section', 'select'
default: "html",
options: {
html: "HTML (force)",
flash: "FLASH (or auto)"
}
}
}
var configStyle = 'fieldset>.radio{display:inline-block !important;padding-left:15px !important}\
.radio+.radio{margin-left:20px !important}';
GM_config.init('Dailymotion Custom Player',settings,configStyle);