ExEv

(Ex)tended (Ev)ents - provides an API for some missing on-x events

Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @require https://update.greasyfork.org/scripts/403996/808391/ExEv.js

Skapare
akuankka128
Version
0.1.1
Skapad
2020-05-23
Uppdaterad
2020-05-23
Licens
N/A

Extended Events

This is an API which covers some of the missing document.on-x events.
Currently supported events are headloaded and bodyloaded.

Example usage:
document.events.on('headloaded', () => {
    let style = document.createElement('style');
    style.innerHTML = "* { outline:.75px solid red; }";
    document.head.appendChild(style);
});