GM_config (eight's version)

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

目前為 2014-12-29 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/7212/29823/GM_config%20%28eight%27s%20version%29.js

作者
eight
版本
0.2.0
建立日期
2014-12-29
更新日期
2014-12-29
尺寸
11.9 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.0 (Dec 29, 2014)
    • Return config object after init.
  • 0.1.0 (Dec 29, 2014)
    • First release.