Block_Obj

屏蔽内容对象库

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/407543/963893/Block_Obj.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
pana
Version
3.0.3
Created
2020-07-22
Updated
2021-08-25
Size
36.5 KB
License
GPL-3.0+

Block_Obj

屏蔽内容对象库

Class

Block_Obj

constructor(configKey: String, regConversion: Objcet[])

构造函数。

  • configKey: 配置在存储中的键名
  • regConversion: 可选,可填入正则表达式的数组的键名

init(initialization: Object)

初始化方法。

initialization = {
  id: String,  // ID 值
  menu: String,  // 菜单名称
  style: String,  // 自定义的额外样式内容
  field: Object[],  // 控制面板上的字段内容
  events: {
    save: (config: Object):Void,  // 保存事件回调函数
    change: (config: Object):Void,  // 变动事件回调函数
  }
}

getConfig():Objcet

获取配置内容对象。