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

Permanently protected page

MediaWiki:Common.js

From Screamer Wiki
Revision as of 00:50, 1 October 2019 by Angeleno (talk | contribs)
Jump to: navigation, search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */
$("#iframeloader-GoodIntentions").replaceWith('<iframe src=https://www.bitchute.com/embed/UNBNbGMM1B1q/ WIDTH=480 HEIGHT=360>');
$("#iframeloader-ABabyToy").replaceWith('<iframe src=https://www.bitchute.com/embed/7ONLxUCacy4c/ WIDTH=480 HEIGHT=360>');
$("#iframeloader-JingleBellsReversed").replaceWith('<iframe src=https://www.bitchute.com/embed/gyxTQDvlDDay/ WIDTH=480 HEIGHT=360>');
$("#iframeloader-ChrisTheJackOLantern").replaceWith('<iframe src=https://www.bitchute.com/embed/BzK2JS21Ng5l/ WIDTH=480 HEIGHT=360>');
$("#iframeloader-ChrisTheJackOLantern2").replaceWith('<iframe src=https://www.bitchute.com/embed/gK7fMHZ1socY/ WIDTH=480 HEIGHT=360>');
$("#iframeloader-DolphinSwim").replaceWith('<iframe src=https://www.bitchute.com/embed/8M3bHLhVsRGE/ WIDTH=480 HEIGHT=360>');

$("#Attributions").replaceWith('<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.');
$("#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.
   Requires copying Template:Username. */
 
function UserNameReplace() {
    if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;
    $("span.insertusername").html(wgUserName);
 }
 addOnloadHook(UserNameReplace);
 
 importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:YoutubePlayer/code.js'
    ]
});