MediaWiki:Common.js: Difference between revisions

m Fix
Tag: Reverted
Test
Tag: Reverted
Line 63: Line 63:
     });
     });
});
});
// Safari polyfill for custom elements with built-in extends
(function () {
    var ceScript = document.createElement('script');
    ceScript.src = 'https://unpkg.com/@ungap/custom-elements-builtin';
    ceScript.async = false;
    ceScript.onload = () => console.log('[Polyfill] custom-elements-builtin loaded');
    document.head.appendChild(ceScript);
})();
// X-Frame-Bypass module script (type=module) — MUST be loaded as type="module"
(function () {
    var bypassScript = document.createElement('script');
    bypassScript.type = 'module';
    bypassScript.src = 'https://unpkg.com/x-frame-bypass';
    bypassScript.onload = () => console.log('[XFB] x-frame-bypass module loaded');
    document.head.appendChild(bypassScript);
})();