MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / whenDOMReady

Function whenDOMReady

scripts/backup/m38u_detector.js:810–813  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

808 }
809
810 function whenDOMReady(f) {
811 if (document.body) f();
812 else window.addEventListener("DOMContentLoaded", f);
813 }
814
815 function addStyle(s) {
816 let style = document.createElement("style");

Callers 1

m38u_detector.jsFile · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected