MCPcopy Index your code
hub / github.com/hoothin/UserScripts / init

Function init

Pagetual/pagetual.user.js:13622–13636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13620 }
13621
13622 function init() {
13623 if (document.readyState === 'loading' || document.readyState === 'uninitialized') {
13624 let domReady = e => {
13625 initRules(() => {
13626 initPage();
13627 });
13628 document.removeEventListener("DOMContentLoaded", domReady, false);
13629 };
13630 document.addEventListener("DOMContentLoaded", domReady, false);
13631 } else {
13632 initRules(() => {
13633 initPage();
13634 });
13635 }
13636 }
13637
13638 function visibilitychangeHandler() {
13639 document.removeEventListener('visibilitychange', visibilitychangeHandler);

Callers 2

visibilitychangeHandlerFunction · 0.70
pagetual.user.jsFile · 0.70

Calls 2

initRulesFunction · 0.85
initPageFunction · 0.85

Tested by

no test coverage detected