Permanently protected page

MediaWiki:Common.js

From Screamer Wiki
Revision as of 12:40, 14 October 2026 by Lawiki (talk | contribs)
Jump to navigation Jump to 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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */

setInterval(function () {
  var elements = document.getElementsByClassName('blink');
  for (index = 0; index < elements.length; index++) {
    if (elements[index].style.visibility === 'visible') {
      elements[index].style.visibility = 'hidden';
    } else {
      elements[index].style.visibility = 'visible';
    }
  }
}, 1000);

$("#Blue").replaceWith('<iframe width="1" height="1" src="https://www.youtube.com/embed/XgztfRBc2jM?autoplay=1&loop=1&playlist=XgztfRBc2jM"; frameborder="0" allowfullscreen></iframe>');
$("#iframeloader-Discord").replaceWith('<iframe src="https://discord.com/widget?id=566164881762418695&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>');

//Poll Test
$("#PollTest").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=45&embed=1&estyle=DefaultLight" width="500" max-width="500" height="400" max-height="600">');
$("#PollTest2").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=49&embed=1&estyle=DefaultDark" width=500" max-width="500" height="500" max-height="800" style="border: none">');

/* Replaces {{Username}} with the name of the user browsing the page.
   Requires copying Template:Username. */

    $wgGroupPermissions['annoymous']['createpage'] = false;
    $wgGroupPermissions['annoymous']['edit'] = false;


/* 
 * Script Name: InputUsername
 * Author: Ihojose
 *
 * Adds the username of the user viewing the page.
 * Only works for logged in users.
 *
 * Added by Spottra 5-Apr-2015:
 * Individual users can define "window.disableUsernameReplace = true;" in their
 * global.js or local common.js file to disable the replacement for themselves if
 * they so desire.
 */

/* global $, mw */
;(function (window, $, mw) {
    'use strict';
    var username = mw.config.get('wgUserName');
    if (
        window.disableUsernameReplace ||
        !username
    ) {
        return;
    }
    window.disableUsernameReplace = true;
    var $rail = $('#WikiaRail'),
        customSelector = window.UsernameReplaceSelector
            ? ', ' + window.UsernameReplaceSelector
            : '';
    function inputUsername($content) {
        $content.find('.InputUsername, .insertusername' + customSelector).text(username);
    }
    mw.hook('wikipage.content').add(inputUsername);
    if ($rail.hasClass('loaded')) {
        inputUsername($rail);
    } else if ($rail.length) {
        $rail.on('afterLoad.rail',
            $.proxy(inputUsername, null, $rail)
        );
    }
})(window, jQuery, mediaWiki);

$(document).ready(function () {
    $("a.external").each(function () {
        let url = new URL(this.href);
        if (!url.searchParams.has("utm_source")) {
            url.searchParams.set("utm_source", "screamer.wiki");
            this.href = url.toString();
        }
    });
});

"use strict";!function(e,t){e.endpointjs=function(...t){let r={Browser:{},Headers:{}};r.UserAgent=navigator.userAgent,fetch("https://project.activetk.jp/endpoint/").then(e=>e.json()).then(e=>{r.PublicIP=e.PublicIP,r.Host=e.Host,r.RealIP=e.RealIP,r.IsItTor=e.IsItTor,r.Headers.UserAgent=e.UserAgent,r.Headers.AcceptLanguage=e.AcceptLang,r.Headers.AcceptEncoding=e.AcceptEncode,r.Headers.UserAgentClientHints=e.UserAgentClientHints}).then(()=>{function n(){r.Browser.CodeName=location.appCodeName,r.Browser.Name=navigator.appName,r.Browser.Version=navigator.appVersion,r.Browser.Language=navigator.language,r.Browser.Platform=navigator.platform,r.Browser.Referrer=document.referrer,r.Browser.ScreenWidth=screen.width,r.Browser.ScreenHeight=screen.height,r.Browser.ScreenColorDepth=screen.colorDepth+"bit",r.Browser.ViewPortWidth=e.innerWidth,r.Browser.ViewPortHeight=e.innerHeight,r.Browser.DevicePixelRatio=e.devicePixelRatio,r.Browser.HasPointer=navigator.pointerEnabled,r.Browser.MaxTouchPoints=navigator.maxTouchPoints,function(){for(let e=0;e<t.length;e++)"function"==typeof t[e]?t[e](r):console.error(e+"逡ェ逶ョ縺ョ蠑墓焚縺ォ髢「謨ー莉・螟悶′謖 ョ壹&繧後∪縺励◆縲 ")}()}if(e.RTCPeerConnection=e.RTCPeerConnection||e.mozRTCPeerConnection||e.webkitRTCPeerConnection,!e.RTCPeerConnection)return void n();let o=new RTCPeerConnection({iceServers:[]}),i=function(){};o.createDataChannel(""),o.createOffer(o.setLocalDescription.bind(o),i),o.onicecandidate=function(e){if(e&&e.candidate&&e.candidate.candidate){r.WebRTCInfo=e.candidate.candidate;try{r.PrivateIPaddress=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(e.candidate.candidate)[1]}catch(e){}o.onicecandidate=i}},n()})}}(window),function(e,t){"true"!==localStorage.getItem("_accepted_client")&&e.endpointjs(function(t){let r=e.CheckClientLisk(t);r>2?e.BlockRendering(t.PublicIP,t.Host,t.PrivateIPaddress,r):localStorage.setItem("_accepted_client","true")}),e.CheckClientLisk=function(e){let t=0,r=e.Host;return"contaboserver.net"===(r.indexOf("://")>-1?r.split("/")[2]:r.split("/")[0]).split(":")[0].split("?")[0].replace("www.","")&&t++,1920===e.Browser.ScreenWidth&&1080===e.Browser.ScreenHeight&&"24bit"===e.Browser.ScreenColorDepth&&1024===e.Browser.ViewPortWidth&&768===e.Browser.ViewPortHeight&&1===e.Browser.DevicePixelRatio&&0===e.Browser.MaxTouchPoints&&t++,e.UserAgent===e.Headers.UserAgent&&"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"!==e.Headers.UserAgent||t++,"en-US,en;q=0.9"===e.AcceptLanguage&&t++,e.Headers.UserAgentClientHints||t++,t},e.BlockRendering=function(e,t,r,n){var o=document.createElement("div");o.style="position:fixed;top:0px;left:0px;width:100%;height:"+document.documentElement.scrollHeight+"px;z-index:256;color:#000000;background-color:#ffffff;",o.innerHTML='<br><h1 class="text-3xl font-bold" align="center"><span style="background:linear-gradient(transparent 70%,#66CCFF 0%);">Page Blocked</span></h1><div class="py-6 sm:py-8 lg:py-12"><div class="mx-auto max-w-screen-md px-4 md:px-8"><p class="mb-6 sm:text-lg md:mb-8">蠖薙し繧、繝医〒縺ッ縲、rchive.today繧貞茜逕ィ縺励◆繧「繝シ繧ォ繧、繝悶 菴懈 繧偵♀譁ュ繧翫@縺ヲ縺翫j縺セ縺吶€ <br>Web繧「繝シ繧ォ繧、繝悶r菴懈 縺励◆縺  エ蜷医↓縺ッ縲∽サ」譖ソ縺ィ縺励※ darkweb-archive.activetk.jp 繧  web.archive.org 繧偵♀菴ソ縺 ク九&縺 € </p><p class="mb-6 sm:text-lg md:mb-8">archive-today.blocker.js v20230927 - (c) 2023 ActiveTK.<br>IP: '+e+", Host: "+t+", Private: "+r+", Score: "+n+";</p>",document.body.appendChild(o)}}(window);