wait-for-element

Provides utility functions to get and wait for elements asyncronously that are not yet loaded or available on the page.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/488161/1335321/wait-for-element.js

Author
owowed
Version
0.1.1
Created
2024-02-24
Updated
2024-02-29
License
LGPL-3.0

Provides utility functions to query elements asyncronously that are not yet loaded or available on the page.

Available functions are waitForElement, waitForElementByParent, waitForElementOptions, which are all documented in the userscript JSDoc.

This will require make-mutation-observer as dependency. Make sure to @require'd it before requiring this library.