UNPKG

fastchar-dom-plugin

Version:

Chrome插件,用于操作HTML的DOM

128 lines (127 loc) 3.06 kB
export declare namespace FastConstant { /** * 工具类 * @author 沈建(Janesen) */ class FastHelper { /** * 构建唯一标识符 * @author Janesen * @private */ static buildUDID(): string; } /** * FastDOM对象 * @author 沈建(Janesen) */ class FastDOM { /** * 是否进入调试模式 */ static debug: boolean; /** * 插件当前版本号 */ static PLUGIN_VERSION: string; /** * 插件下载地址 */ static PLUGIN_DOWNLOAD_URL: string; /** * 是否采用长链接方式 */ static readonly USE_RUNTIME_CONNECT: boolean; /** * 执行请求的标签名称 */ static DOM_TAG_NAME: string; /** * 之前请求携带的数据 */ static DOM_DATA_NAME: string; /** * 数据是否已接收 */ static DOM_DATA_RECEIVE: string; /** * 执行操作统计 */ static DOM_DATA_INVOKE_COUNT: string; /** * 预计回调总数 */ static DOM_DATA_CALLBACK_TOTAL: string; /** * 回调不限次数 */ static DOM_DATA_CALLBACK_ALWAYS: string; /** * 回调数据的标签名 */ static DOM_DATA_CALLBACK_TAG_NAME: string; /** * 错误消息 */ static DOME_DATA_ERROR: string; /** * 是否已加载插件 */ static DOM_PLUGIN: string; /** * 加载插件版本 */ static DOM_PLUGIN_VERSION: string; /** * 执行方法超时时间,单位:毫秒 */ static DOM_INVOKE_TIMEOUT: number; /** * 内容页面保活心跳间隔,单位:毫秒 */ static DOM_CONTENT_IDLE_DURATION: number; /** * 内容页面失效时间,单位:毫秒 */ static DOM_CONTENT_TIMEOUT: number; /** * 背景页心跳器,单位:毫秒 */ static DOM_BACKGROUND_IDLE_DURATION: number; } /** * 执行DOM相关的事件 * @author 沈建(Janesen) */ class FastDOMEvents { /** * 事件注册链接 */ static ON_REGISTER_CONNECT: string; /** * 事件:执行方法 */ static ON_INVOKE_METHOD: string; /** * 事件:回调方法 */ static ON_RETURN_METHOD: string; /** * 事件:检查消息 */ static ON_WATCH_MESSAGE: string; /** * 事件:心跳 */ static ON_IDLE: string; } /** * window.postMessage事件类型 */ class WindowMessageEvents { /** * 网络请求响应事件 */ static HTTP_RESPONSE_LISTENER: string; } }