TetteLib

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

2023-10-28 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

بۇ قوليازمىنى بىۋاسىتە قاچىلاشقا بولمايدۇ. بۇ باشقا قوليازمىلارنىڭ ئىشلىتىشى ئۈچۈن تەمىنلەنگەن ئامبار بولۇپ، ئىشلىتىش ئۈچۈن مېتا كۆرسەتمىسىگە قىستۇرىدىغان كود: // @require https://update.greasyfork.org/scripts/478390/1271751/TetteLib.js

ئاپتورى
TetteDev
نەشرى
0.4
قۇرۇلغان ۋاقتى
2023-10-27
يېڭىلانغان ۋاقتى
2023-10-28
Size
8.1 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)