GM_config (eight's version)

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

目前为 2014-12-29 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.cn-greasyfork.org/scripts/7212/29833/GM_config%20%28eight%27s%20version%29.js

作者
eight
版本
0.2.2
创建于
2014-12-29
更新于
2014-12-29
大小
12.4 KB
许可证
MIT

GM_config

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

Features

  • Simple API to init config.
  • Can save boolean(checkbox), integer(number), and text.

Test page

https://rawgit.com/eight04/GM_config/master/demo.html

Todos

  • It may conflict with some CSS rule of original webpage. Use iframe instead?
  • Remove localStorage compatibility?

Changelog

  • 0.2.2 (Dec 29, 2014)
    • Fix bugs in setValue.
  • 0.2.1 (Dec 29, 2014)
    • Add z-index to config-dialog.
  • 0.2.0 (Dec 29, 2014)
    • Return config object after init.
  • 0.1.0 (Dec 29, 2014)
    • First release.