🏳️‍🌈Happy pride month to all ppl.🏳️‍⚧️ --Screamer1234 (talk) 17:03, 31 May 2024 (MST)

MediaWiki:Common.js: Difference between revisions

Jump to: navigation, search
Doesn't work here; just use the iframe loader since it is easier
No edit summary
(Doesn't work here; just use the iframe loader since it is easier)
Line 11: Line 11:
$("#iframeloader-HitTheDot").replaceWith('<iframe src=https://www.bitchute.com/embed/AeyDEgrX8oAV/ WIDTH=480 HEIGHT=360>');
$("#iframeloader-HitTheDot").replaceWith('<iframe src=https://www.bitchute.com/embed/AeyDEgrX8oAV/ WIDTH=480 HEIGHT=360>');


/* 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(
            $('<iframe>', {
                width: String(data.width || '').trim(),
                height: String(data.height || '').trim(),
                src: uri.toString(),
            })
        ).addClass('loaded');
    });
});


/* Replaces {{Username}} with the name of the user browsing the page.
/* Replaces {{Username}} with the name of the user browsing the page.

Navigation menu