MediaWiki:Embed.js: Difference between revisions
From TwogPedia
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 15: | Line 15: | ||
} | } | ||
}); | }); | ||
Revision as of 16:12, 12 May 2023
$(document).ready(function(){
if ( document.querySelector("blockquote.reddit-embed-bq") || mw.config.get('wgAction') === 'formedit' || mw.config.get('wgAction') === 'edit' ) {
mw.loader.load( 'reddit' );
}
if ( document.querySelector("blockquote.tiktok-embed") || mw.config.get('wgAction') === 'formedit' || mw.config.get('wgAction') === 'edit' ) {
mw.loader.load( 'tiktok' );
}
if ( document.querySelector("blockquote.twitter-tweet") || mw.config.get('wgAction') === 'formedit' || mw.config.get('wgAction') === 'edit' ) {
mw.loader.load( 'twitter' );
}
if ( document.querySelector("blockquote.instagram-media") || mw.config.get('wgAction') === 'formedit' || mw.config.get('wgAction') === 'edit' ) {
mw.loader.load( 'instagram' );
}
});
No categories