MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ $("#iframeloader-GoodIntentions").replaceWith(''); $("#iframeloader-ABabyToy").replaceWith(''); $("#iframeloader-JingleBellsReversed").replaceWith(''); $("#iframeloader-ChrisTheJackOLantern").replaceWith(''); /* BitChute Player (adapted from YouTube player .js) */ mw.hook('wikipage.content').add(function($content) {   $content.find('.bitchuteplayer:not(.loaded)').each(function { var $this = $(this), data = $this.data, uri = new mw.Uri('https://www.bitchute.com/embed/'), id = String(data.id || '').trim; if (id === '') { console.warn('[BitChute Player] Video ID is not defined.'); return; }       uri.path += id; $this.html(           $(' ', { width: String(data.width || '').trim, height: String(data.height || '').trim, src: uri.toString, })       ).addClass('loaded'); }); });