MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
Content deleted Content added
Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: //Display Discord widget $( '#discord-widget' ).html( '<iframe class="responsive-iframe" src="https://discord.com/widget?id=647535591818395662&theme=dark" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>' );" Tags: Replaced Manual revert |
m Fix widget ID |
||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ |
/* Any JavaScript here will be loaded for all users on every page load. */ |
||
//Display Discord widget |
// Display Discord widget only when the container exists |
||
if ( document.getElementById( 'discord-widget' ) ) { |
|||
| ⚫ | |||
$( '#discord-widget' ).html( |
|||
| ⚫ | |||
); |
|||
} |
|||
Latest revision as of 12:11, 3 April 2026
/* Any JavaScript here will be loaded for all users on every page load. */
// Display Discord widget only when the container exists
if ( document.getElementById( 'discord-widget' ) ) {
$( '#discord-widget' ).html(
'<iframe class="responsive-iframe" src="https://discord.com/widget?id=1451368634705510546&theme=dark" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>'
);
}