MediaWiki:Common.js: Difference between revisions
m Fix Tag: Reverted |
m Another try to fix Tag: Reverted |
||
| Line 50: | Line 50: | ||
}); | }); | ||
// | // WidgetBot: Discord Crate widget | ||
$.getScript('https://cdn.jsdelivr.net/npm/@widgetbot/crate@3', function () { | $.getScript('https://cdn.jsdelivr.net/npm/@widgetbot/crate@3', function () { | ||
new Crate({ | new Crate({ | ||
| Line 60: | Line 60: | ||
}); | }); | ||
// | // Safari polyfill for custom elements with built-in extends | ||
(function () { | (function () { | ||
var ceScript = document.createElement('script'); | |||
ceScript.src = 'https://unpkg.com/@ungap/custom-elements-builtin'; | |||
ceScript.async = false; | |||
document.head.appendChild( | 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); | |||
})(); | |||