你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/7212-gm-config-eight-s-version,源站連結 點此以跳轉。
A library to help you set up configure in greasemonkey script.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.org.cn/scripts/7212/57358/GM_config%20%28eight%27s%20version%29.js
A library to help you set up configure in greasemonkey script.
This project is a rewrite of sizzlemctwizzle/GM_config and use the interface similar to GM_config (JoeSimmons).
Checkout the demo page.
GM_config.init(
"Title",
{
"optionName": {
"label": "An option",
"type": "checkbox", // 'checkbox', 'number', 'text', 'textarea'
"default": true
},
"option2Name": {
"label": "Another option",
"type": "number",
"default": 100
}
}
);
GM_config.onclose = function(){
// callback function...
};
GM_config.open(); // Open config dialog
GM_config.get();
/*
->
{
optionName: true,
option2Name: 100
}
*/
Using NodeJS, Bower, Grunt:
npm install
bower install
grunt
Nothing to do here!
LGPL version 3 or any later version; http://www.gnu.org/copyleft/lgpl.html
document.open, document.close.GM_config.get().