Greasy Fork is available in English.

TetteLib

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

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/478390/1272563/TetteLib.js

ผู้เขียน
TetteDev
เวอร์ชัน
0.5
สร้างเมื่อ
27-10-2023
อัปเดตเมื่อ
30-10-2023
สัญญาอนุญาต
ไม่มี
  • 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)