TetteLib

A library containing several functions I use often in my other scripts

目前为 2023-10-28 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/478390/1271574/TetteLib.js

作者
TetteDev
版本
0.3
创建于
2023-10-27
更新于
2023-10-28
大小
6.0 KB
许可证
暂无
  • simulateNotification: shows a floating messagebox
  • waitForElement: spins indefinitely until an element is present on the page
  • waitForElementWithTimeout: spins indefinitely (or for a certain time) until an element is present on the page
  • traverseParentsUntil: loops all parents of an element until a provided function taking the parent returns true
  • traverseChildrenUntil: same as traverseParentsUntil but for all children of an element
  • __visible: how jquery checks if an element is visible to the eye in the current document
  • removeAllEventListeners: removes all registered eventlisteners for an element (and its children if preserveChildrenEvents is set to false)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址