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

MediaWiki:Wikia.js: Difference between revisions

From Screamer Wiki
Jump to: navigation, search
imported>UncoveredAgent200
No edit summary
m (Protected "MediaWiki:Wikia.js" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/* We are to warn our viewers about any possible shocks that may come from this Wiki. */
$("#iframeloader-CoinsCP").replaceWith('<iframe src=https://www.bitchute.com/embed/nhMsbfwBolBA/ WIDTH=480 HEIGHT=360>');
function getCookie(c_name) {
$("#iframeloader-GoodIntentions").replaceWith('<iframe src=https://www.bitchute.com/embed/UNBNbGMM1B1q/ WIDTH=480 HEIGHT=360>');
    var c_value = " " + document.cookie;
$("#iframeloader-ABabyToy").replaceWith('<iframe src=https://www.bitchute.com/embed/7ONLxUCacy4c/ WIDTH=480 HEIGHT=360>');
    var c_start = c_value.indexOf(" " + c_name + "=");
$("#iframeloader-JingleBellsReversed").replaceWith('<iframe src=https://www.bitchute.com/embed/gyxTQDvlDDay/ WIDTH=480 HEIGHT=360>');
     if (c_start == -1) {
$("#iframeloader-ChrisTheJackOLantern").replaceWith('<iframe src=https://www.bitchute.com/embed/BzK2JS21Ng5l/ WIDTH=480 HEIGHT=360>');
         c_value = null;
 
    } else {
/* BitChute Player (adapted from YouTube player .js) */
        c_start = c_value.indexOf("=", c_start) + 1;
mw.hook('wikipage.content').add(function($content) {
        var c_end = c_value.indexOf(";", c_start);
     $content.find('.bitchuteplayer:not(.loaded)').each(function() {
         if (c_end == -1) {
         var $this = $(this),
             c_end = c_value.length;
            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;
         }
         }
         c_value = unescape(c_value.substring(c_start, c_end));
    }
         uri.path += id;
    return c_value;
}
        $this.html(
 
            $('<iframe>', {
function setCookie(cname, cvalue, exdays) {
                width: String(data.width || '').trim(),
    var d = new Date();
                height: String(data.height || '').trim(),
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
                src: uri.toString(),
    var expires = "expires="+d.toUTCString();
            })
    document.cookie = cname + "=" + cvalue + "; " + expires;
        ).addClass('loaded');
}
     });
/* In no way are we using this to steal accounts. We are using this for per-PC verification. */
});
 
var msg = "This Wiki may contain grotesque/horrifying images, screamers, and epilepsy-inducing flashing lights. By clicking \"Agree\", you agree that you are alright with this. If you feel uncomfortable with this, clicking \"Disagree\" will direct you to Wikia's homepage.";
var cookiename = 'DiscretionVerification';
 
if (getCookie(cookiename) != 'true') {
    var WikiaPage = document.GetElementById('WikiaPage');
     WikiaPage.innerHTML = '';
   
}

Latest revision as of 07:47, 12 January 2022

$("#iframeloader-CoinsCP").replaceWith('<iframe src=https://www.bitchute.com/embed/nhMsbfwBolBA/ WIDTH=480 HEIGHT=360>');
$("#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>');

/* 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');
    });
});