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

Function loadIframe

DownloadAllContent/DownloadAllContent.user.js:1252–1258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250 let iframe = getIframe(), inited = false, failedTimes = 0;
1251 let loadtimeout;
1252 let loadIframe = src => {
1253 iframe.src = src;
1254 clearTimeout(loadtimeout);
1255 loadtimeout = setTimeout(() => {
1256 iframe.src = src;
1257 }, 20000);
1258 };
1259 iframe.sandbox = iframeSandbox || "allow-same-origin allow-scripts allow-popups allow-forms";
1260 iframe.addEventListener('load', e => {
1261 if (e.data != 'pagetual-iframe:DOMLoaded' && e.type != 'load') return;

Callers 2

checkIframeFunction · 0.85
requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected