Skip to content

Instantly share code, notes, and snippets.

View d0x7's full-sized avatar
🍣
uwu

Dorian Heinrichs d0x7

🍣
uwu
View GitHub Profile
@d0x7
d0x7 / on-element-ready.js
Last active January 30, 2020 00:43 — forked from sidneys/library.on-element-ready.js
UserScript | Library | onElementReady ES6
// ==UserScript==
// @name Library | onElementReady ES6
// @namespace de.sidneys.userscripts
// @homepage https://gist.githubusercontent.com/sidneys/ee7a6b80315148ad1fb6847e72a22313/raw/
// @version 0.7.0
// @description Detect any new DOM Element by its CSS Selector, then trigger a function. Includes Promise- & Callback interface. Based on ES6 MutationObserver. Ships legacy waitForKeyElements interface, too.
// @author sidneys
// @icon https://i.imgur.com/nmbtzlX.png
// @include *://*/*
// ==/UserScript==