一个好用的工具类
Це версії цього скрипту, де код був змінений. Показати всі версії.
fix: 🐛 httpx response redefine failed
chore: 📦 update ajaxhooker 1.4.1
fix: 🐛 GM_Menu data not success init and format code
chore: 🎨 waitPropertyInterval can reject
Merge branch 'dev'
✨ feat(更新ajaxHooker版本1.4.0):
✨ feat(修改部分描述):
✨ feat(新增:ColorConversion):
用于颜色处理,获取某个颜色的亮色或者暗色,可对hex/rgb进行转换
update
更新 Utils.js
新增Api
修复GM_Menu无法获取到菜单的值的问题
更新Utils.GM_Menu
argumentt => args
修复setClip复制失败的问题
重构Utils.Log
重构Utils.GM_Menu;Utils.Dictionary新增接口.forEach;
只保留Object.defineProperty,删除其它的原型
新增Utils.setClip对webview的兼容性判断
重命名GM_addStyle为addStyle
更新库
修复setTimou、clearTimeout、setInterval、clearInterval在套壳浏览器上错误的引用问题
isSameChars新增参数coefficient
统一管理OriginPrototype
Httpx新增检测url格式为//开头
新增api:deepClone 修复Httpx的headers、context、fetchInit浅拷贝的问题 替换delete为ReflectDeleteProperty
修复Httpx的对配置的headers和fetchInit的处理出错的问题
抽离部分公共的Object属性,防止被二次劫持
调整GM_Menu的菜单项的配置的兼容性
Dictionary新增Symbol.toStringTag和Symbol.iterator属性 Dictionary新增length属性 新增api:getNonNullValue
Httpx新增hook:beforeRequestCallBack Httpx新增接口:setXMLHttpRequest
新增api:isThemeDark
新增防抖函数debounce
registerTrustClickEvent 新增参数filter
Utils.Log添加参数console可指定
Httpx新增url补全
调整waitVueByInterval的异步返回boolean
新增Api:cloneFormData
Utils.Httpx新增配置fetchInit
跳转Utils.Httpx在Stay插件上的兼容问题
fix bug
转移注释到.d.ts中
重命名部分函数名; 新增:Utils.reverseNumber;
修改注释
Utils.Dictionary新增函数startsWith和getStartsWith
Utils.downloadBase64新增第三个参数isIFrame;新增api:Utils.getThunderUrl
新增Utils.exitFullScreen 修改Utils.enterFullScreen参数element默认值document.documentElement
新增Utils.selectElementText额外参数
新增多个函数
Utils.findElementsWithText Utils.findVisibleElement Utils.selectElementText
新增getTransitionEndNameList 和getAnimationEndNameList
新增函数重装实现Utils.createOverload
Utils.Log新增warn,新增参数ohterStyle
替换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
新增uniqueArray
修复mutationObserver的参数判断
新增getMaxZIndex修复其它问题
修正asyncArrayForEach的参数判断
重写sortListByProperty
新增 getRandomAndroidUA新增 getRandomPCUA
新增 lockFunction新增 waitForDOM新增 setClip新增 mutationObserver
新增api isNull新增Dictionary的set方法的判空
移除函数 discuzEnvIsMobile
新增 assignJSON修复 getFormatTime
更新findWindowPageString
更新findWindowPageString循环查找
新增方法Utils.Dictionary