TetteLib

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

目前為 2023-10-30 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/478390/1272563/TetteLib.js

作者
TetteDev
版本
0.5
建立日期
2023-10-27
更新日期
2023-10-30
尺寸
8.4 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
  • waitForElementWithTimeoutExtended: similar to waitForElementWithTimeout but offer ability to get multiple elements returned, see code for comment
  • 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或关注我们的公众号极客氢云获取最新地址