一个好用的工具类
这些是此脚本的所有版本。 只显示代码变更过的版本。
Utils.Log新增warn,新增参数ohterStyle
更新 Utils.js
替换for loop为for of 迁移注释 顶部添加注释引用
更新函数Utils.getRandomPCUA 更新函数Utils.getRandomAndroidUA Utils.isPhone新增参数userAgent 修复Utils.listenKeyboard注释callback 的参数描述缺失问题 新增Utils.stringTitleToUpperCase 新增Utils.stringTitleToLowerCase
新增Utils.waitVueByInterval
Utils.registerTrustClickEvent新增参数自己决定true|false,默认true
Utils.listenKeyPress修改为Utils.listenKeyboard 参数新增keyValue
修改部分jsdoc
Utils.Menu内的配置新增属性isStoreValue callback的参数data新增函数属性storeValue
函数Utils.waitPropertyByInterval新增参数maxTime 函数Utils.watchObject修改内部实现要求getCallBack/setCallBack必须要有一个
新增Utils.GM_Menu函数 getMenuId updateOptionsWithId
新增Utils.GM_Menu的内部函数 getLocalStorageKeyName setLocalStorageKeyName 可修改本地存储的键名
新增Utils.GM_Menu的函数 getEnable getEnableTrueEmoji getEnableFalseEmoji setValue setEnable setEnableTrueEmoji setEnableFalseEmoji 重构部分函数集中到update内
修改部分注释
新增函数API Utils.stringToRegular
Update Utils.js
新增函数 Utils.isFullscreenEnabled Utils.enterFullscreen Utils.waitNodeWithInterval
显示所有脚本版本