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

Function checkGuidePage

Pagetual/pagetual.user.js:9456–9476  ·  view source on GitHub ↗
(href)

Source from the content-addressed store, hash-verified

9454 }
9455
9456 function checkGuidePage(href) {
9457 if (guidePage.test(href)) {
9458 if (typeof _unsafeWindow.JSONEditor !== 'undefined') {
9459 createEdit();
9460 } else {
9461 let timeout = 30;
9462 let checkEditorReady = setInterval(() => {
9463 if (typeof _unsafeWindow.JSONEditor !== 'undefined') {
9464 createEdit();
9465 clearInterval(checkEditorReady);
9466 } else if (timeout-- <= 0) {
9467 editor = null;
9468 customRulesInput.style.display = "";
9469 clearInterval(checkEditorReady);
9470 }
9471 }, 100);
9472 }
9473 return true;
9474 }
9475 return false;
9476 }
9477
9478 function startAutoScroll() {
9479 clearInterval(autoScrollInterval);

Callers 1

initConfigFunction · 0.85

Calls 1

createEditFunction · 0.85

Tested by

no test coverage detected