Jump to content

MediaWiki:Common.js: Difference between revisions

From International Treaty Law Wiki
No edit summary
No edit summary
Line 2: Line 2:
/* Optimized Vector-2022 Utilities + Search Extensions + InfinityFree Failover */
/* Optimized Vector-2022 Utilities + Search Extensions + InfinityFree Failover */


$(function () {
(function () {


     'use strict';
     'use strict';


     /* =========================================================
     mw.loader.using(['mediawiki.util', 'jquery']).then(function () {
      1. CLEAN PRINT CSS
    ========================================================= */


    var globalCss = `
        $(function () {
    @media print {


        #mw-page-base,
            /* =========================================================
        #mw-head-base,
              GLOBAL MEDIAWIKI VARIABLES
        #mw-navigation,
             ========================================================= */
        #mw-panel,
        #footer,
        .vector-header,
        .vector-page-toolbar,
        .vector-toc,
        .vector-sticky-header,
        .vector-page-tools,
        .vector-menu,
        .mw-indicators,
        .vector-user-links,
        .vector-search-box,
        .vector-pinned-container {
             display: none !important;
        }


        #content,
            var ns      = mw.config.get('wgCanonicalNamespace');
        .mw-body,
            var special  = mw.config.get('wgCanonicalSpecialPageName');
        .mw-content-container,
             var page    = mw.config.get('wgPageName');
        .mw-body-content {
             var groups  = mw.config.get('wgUserGroups') || [];
             margin: 0 !important;
             var userName = mw.config.get('wgUserName');
             padding: 0 !important;
             var wikiTitle = mw.config.get('wgTitle') || document.title;
             width: 100% !important;
             max-width: none !important;
        }


        body,
            var isAdmin =
        #content {
                groups.includes('sysop') ||
            background: white !important;
                groups.includes('bureaucrat');
        }


        .mw-body-content {
             var isAnon = (userName === null);
             font-size: 14pt !important;
            line-height: 1.5 !important;
        }
    }


    /* =========================================================
            /* =========================================================
      SEARCH COLLAPSE UI
              GLOBAL CSS
    ========================================================= */
            ========================================================= */


    #extra-search-results {
            if (!document.getElementById('mw-global-custom-css')) {
        margin-top: 2em;
        border-top: 1px solid #ddd;
        padding-top: 1em;
    }


    .search-collapse-section {
                var globalCss = `
        margin-bottom: 1.5em;
                @media print {
        border: 1px solid #d8dee8;
        border-radius: 6px;
        overflow: hidden;
        background: #ffffff;
    }


    .search-collapse-header {
                    #mw-page-base,
        background: #f3f6fb;
                    #mw-head-base,
        padding: 12px 15px;
                    #mw-navigation,
        cursor: pointer;
                    #mw-panel,
        font-weight: 600;
                    #footer,
        transition: background .15s ease;
                    .vector-header,
        user-select: none;
                    .vector-page-toolbar,
    }
                    .vector-toc,
                    .vector-sticky-header,
                    .vector-page-tools,
                    .vector-menu,
                    .mw-indicators,
                    .vector-user-links,
                    .vector-search-box,
                    .vector-pinned-container {
                        display: none !important;
                    }
 
                    #content,
                    .mw-body,
                    .mw-content-container,
                    .mw-body-content {
                        margin: 0 !important;
                        padding: 0 !important;
                        width: 100% !important;
                        max-width: none !important;
                    }
 
                    body,
                    #content {
                        background: white !important;
                    }
 
                    .mw-body-content {
                        font-size: 14pt !important;
                        line-height: 1.5 !important;
                    }
                }
 
                #extra-search-results {
                    margin-top: 2em;
                    border-top: 1px solid #ddd;
                    padding-top: 1em;
                }
 
                .search-collapse-section {
                    margin-bottom: 1.5em;
                    border: 1px solid #d8dee8;
                    border-radius: 6px;
                    overflow: hidden;
                    background: #ffffff;
                }
 
                .search-collapse-header {
                    background: #f3f6fb;
                    padding: 12px 15px;
                    cursor: pointer;
                    font-weight: 600;
                    transition: background .15s ease;
                    user-select: none;
                }
 
                .search-collapse-header:hover {
                    background: #e9eef7;
                }
 
                .search-collapse-header::before {
                    content: "▼ ";
                    display: inline-block;
                    transition: transform .2s ease;
                }
 
                .search-collapse-header.collapsed::before {
                    transform: rotate(-90deg);
                }
 
                .search-collapse-content {
                    padding: 15px;
                    display: block;
                    background: #fff;
                }
 
                .search-collapse-content.collapsed {
                    display: none;
                }
 
                .gcse-searchresults-only {
                    min-height: 200px;
                }
 
                .search-engine-link {
                    display: block;
                    padding: 8px 0;
                    font-size: 15px;
                    border-bottom: 1px solid #f0f0f0;
                }
 
                .search-engine-link:last-child {
                    border-bottom: none;
                }
 
                .search-engine-link a {
                    text-decoration: none;
                    color: #0645ad;
                }
 
                .search-engine-link a:hover {
                    text-decoration: underline;
                }
 
                .pse-direct-link {
                    margin-bottom: 15px;
                    padding: 10px;
                    background: #eef5ff;
                    border-radius: 5px;
                }


    .search-collapse-header:hover {
                .pse-direct-link a {
        background: #e9eef7;
                    color: #005fcc;
    }
                    text-decoration: none;
                    font-weight: 500;
                }


    .search-collapse-header::before {
                .pse-direct-link a:hover {
        content: "▼ ";
                    text-decoration: underline;
        display: inline-block;
                }
        transition: transform .2s ease;
    }


    .search-collapse-header.collapsed::before {
                .mw-recommended-footer {
        transform: rotate(-90deg);
                    margin-top: 30px;
    }
                    padding: 15px;
                    border: 2px solid #3a6ea5;
                    background: #eef4fb;
                    border-radius: 6px;
                    color: #1a1a1a;
                    font-size: 14px;
                    line-height: 1.5;
                }


    .search-collapse-content {
                .mw-recommended-footer-title {
        padding: 15px;
                    font-size: 18px;
        display: block;
                    font-weight: bold;
        background: #fff;
                    color: #2a4d7a;
    }
                    margin-bottom: 10px;
                }


    .search-collapse-content.collapsed {
                .mw-recommended-footer-subtitle {
        display: none;
                    font-size: 18px;
    }
                    font-weight: bold;
                    color: #2a4d7a;
                    margin: 20px 0 10px;
                }


    .gcse-searchresults-only {
                .mw-recommended-footer ul {
        min-height: 200px;
                    margin-left: 15px;
    }
                }


    .search-engine-link {
                .mw-recommended-footer a {
        display: block;
                    word-break: break-word;
        padding: 8px 0;
                }
        font-size: 15px;
                `;
        border-bottom: 1px solid #f0f0f0;
    }


    .search-engine-link:last-child {
                var styleEl = document.createElement('style');
        border-bottom: none;
    }


    .search-engine-link a {
                styleEl.id = 'mw-global-custom-css';
        text-decoration: none;
                styleEl.type = 'text/css';
        color: #0645ad;
    }


    .search-engine-link a:hover {
                styleEl.appendChild(
        text-decoration: underline;
                    document.createTextNode(globalCss)
    }
                );


    .pse-direct-link {
                document.head.appendChild(styleEl);
        margin-bottom: 15px;
            }
        padding: 10px;
        background: #eef5ff;
        border-radius: 5px;
    }


    .pse-direct-link a {
            /* =========================================================
        color: #005fcc;
              VECTOR-2022 ACTION TOOLBAR
        text-decoration: none;
            ========================================================= */
        font-weight: 500;
    }


    .pse-direct-link a:hover {
            if (mw.config.get('wgNamespaceNumber') === 0) {
        text-decoration: underline;
    }


    /* =========================================================
                var toolbar =
      FOOTER BLOCK
                    document.querySelector(
    ========================================================= */
                        '#p-views .vector-menu-content-list'
                    );


    .mw-recommended-footer {
                if (toolbar) {
        margin-top: 30px;
        padding: 15px;
        border: 2px solid #3a6ea5;
        background: #eef4fb;
        border-radius: 6px;
        color: #1a1a1a;
        font-size: 14px;
        line-height: 1.5;
    }


    .mw-recommended-footer-title {
                    if (
        font-size: 18px;
                        !document.getElementById(
        font-weight: bold;
                            'mw-custom-toolbar-buttons'
        color: #2a4d7a;
                        )
        margin-bottom: 10px;
                    ) {
    }


    .mw-recommended-footer-subtitle {
                        var currentTitle =
        font-size: 18px;
                            encodeURIComponent(wikiTitle);
        font-weight: bold;
        color: #2a4d7a;
        margin: 20px 0 10px;
    }


    .mw-recommended-footer ul {
                        var toolbarHtml = `
        margin-left: 15px;
                        <div id="mw-custom-toolbar-buttons">
    }


    .mw-recommended-footer a {
                            <li class="vector-menu-content-list-item">
        word-break: break-word;
                                <a href="#"
    }
                                  class="mw-share-trigger"
    `;
                                  title="Share this page">
                                  Share
                                </a>
                            </li>


    var styleEl = document.createElement('style');
                            <li class="vector-menu-content-list-item">
    styleEl.type = 'text/css';
                                <a href="#"
    styleEl.appendChild(document.createTextNode(globalCss));
                                  class="mw-print-trigger"
    document.head.appendChild(styleEl);
                                  title="Download clean PDF">
                                  PDF
                                </a>
                            </li>


    /* =========================================================
                            <li class="vector-menu-content-list-item">
      2. VECTOR-2022 TOOLBAR
                                <a href="https://cse.google.com/cse?cx=86021a982e3a14848&q=${currentTitle}"
    ========================================================= */
                                  target="_blank"
                                  rel="noopener noreferrer"
                                  title="Special Search">
                                  Special Search
                                </a>
                            </li>


    if (mw.config.get('wgNamespaceNumber') === 0) {
                            <li class="vector-menu-content-list-item">
                                <a href="https://github.com/MrAnonymousNWO/One_World/wiki/search?q=${currentTitle}"
                                  target="_blank"
                                  rel="noopener noreferrer"
                                  title="One World Wiki">
                                  One World Wiki
                                </a>
                            </li>


        var $actions = $('.vector-page-toolbar .vector-page-tools .vector-menu-content-list');
                            <li class="vector-menu-content-list-item">
                                <a href="https://github.com/ET-Pioneer/Electric-Technocracy-Pioneers-Community/wiki/search?q=${currentTitle}"
                                  target="_blank"
                                  rel="noopener noreferrer"
                                  title="E.Tech. Wiki">
                                  E.Tech. Wiki
                                </a>
                            </li>


        if ($actions.length) {
                        </div>
                        `;


             /* Remove old PDF buttons */
                        toolbar.insertAdjacentHTML(
                            'afterbegin',
                            toolbarHtml
                        );
                    }
                }
             }


             $actions.find('li').filter(function () {
             /* =========================================================
              GLOBAL EVENT DELEGATION
            ========================================================= */


                var txt = ($(this).text() || '').toLowerCase();
            document.addEventListener('click', function (e) {
                return txt.indexOf('pdf') !== -1;


            }).remove();
                /* PDF */


            /* Build toolbar in ONE prepend */
                var printTrigger =
                    e.target.closest('.mw-print-trigger');


            var currentTitle = encodeURIComponent(document.title);
                if (printTrigger) {


            var toolbarHtml = `
                     e.preventDefault();
            <li class="vector-menu-content-list-item">
                <a href="#" class="mw-share-trigger" title="Share this page">
                     Share
                </a>
            </li>


            <li class="vector-menu-content-list-item">
                    window.print();
                <a href="#" class="mw-print-trigger" title="Download clean PDF">
                    PDF
                </a>
            </li>


            <li class="vector-menu-content-list-item">
                    return;
                 <a href="https://cse.google.com/cse?cx=86021a982e3a14848&q=${currentTitle}"
                 }
                  target="_blank"
                  rel="noopener noreferrer"
                  title="Special Search">
                    Special Search
                </a>
            </li>


            <li class="vector-menu-content-list-item">
                 /* SHARE */
                 <a href="https://github.com/MrAnonymousNWO/One_World/wiki/search?q=${currentTitle}"
                  target="_blank"
                  rel="noopener noreferrer"
                  title="One World Wiki">
                    One World Wiki
                </a>
            </li>


            <li class="vector-menu-content-list-item">
                var shareTrigger =
                <a href="https://github.com/ET-Pioneer/Electric-Technocracy-Pioneers-Community/wiki/search?q=${currentTitle}"
                    e.target.closest('.mw-share-trigger');
                  target="_blank"
                  rel="noopener noreferrer"
                  title="E.Tech. Wiki">
                    E.Tech. Wiki
                </a>
            </li>
            `;


            $actions.prepend(toolbarHtml);
                if (shareTrigger) {
        }
    }


    /* =========================================================
                    e.preventDefault();
      3. GLOBAL EVENT DELEGATION
    ========================================================= */


    document.addEventListener('click', function (e) {
                    if (navigator.share) {


        /* PDF */
                        navigator.share({
                            title: document.title,
                            url: location.href
                        });


        if (e.target.matches('.mw-print-trigger')) {
                    } else {


            e.preventDefault();
                        prompt('Copy link:', location.href);
            window.print();
                    }
        }


        /* Share */
                    return;
                }


        if (e.target.matches('.mw-share-trigger')) {
                /* COLLAPSE TOGGLE */


            e.preventDefault();
                var header =
                    e.target.closest('.search-collapse-header');


            if (navigator.share) {
                if (header) {


                navigator.share({
                     var targetId =
                     title: document.title,
                        header.getAttribute('data-target');
                    url: location.href
                });


            } else {
                    var content =
                        document.getElementById(targetId);


                prompt('Copy link:', location.href);
                    header.classList.toggle('collapsed');
            }
        }


        /* Collapse Toggle */
                    if (content) {


        if (e.target.matches('.search-collapse-header')) {
                        content.classList.toggle('collapsed');
                    }


            var targetId = e.target.getAttribute('data-target');
                    return;
             var content = document.getElementById(targetId);
                }
             });


             e.target.classList.toggle('collapsed');
             /* =========================================================
              SEARCH PAGE EXTENSIONS
            ========================================================= */


             if (content) {
             if (special === 'Search') {
                 content.classList.toggle('collapsed');
 
            }
                 var query =
        }
                    mw.util.getParamValue('search');
    });


    /* =========================================================
                if (query) {
      4. SEARCH PAGE EXTENSIONS
    ========================================================= */


    mw.loader.using('mediawiki.util', function () {
                    var encodedQuery =
                        encodeURIComponent(query);


        if (mw.config.get('wgCanonicalSpecialPageName') !== 'Search') {
                    var pagination =
            return;
                        $('.mw-search-pager-bottom, .results-info').last();
        }


        var query = mw.util.getParamValue('search');
                    var insertPoint =
                        pagination.length
                            ? pagination
                            : $('#mw-search-results');


        if (!query) {
                    if (insertPoint.length) {
            return;
        }


        var encodedQuery = encodeURIComponent(query);
                        var container =
                            document.createElement('div');


        /* Insert position */
                        container.id =
                            'extra-search-results';


        var pagination = $('.mw-search-pager-bottom, .results-info').last();
                        /* =============================================
        var insertPoint = pagination.length ? pagination : $('#mw-search-results');
                          PSE SECTION
                        ============================================= */


        if (!insertPoint.length) {
                        var pseSection =
            return;
                            document.createElement('div');
        }


        /* Main container */
                        pseSection.className =
                            'search-collapse-section';


        var container = document.createElement('div');
                        var pseDirectUrl =
        container.id = 'extra-search-results';
                            'https://cse.google.com/cse?cx=86021a982e3a14848&q=' +
                            encodedQuery;


        /* =====================================================
                        pseSection.innerHTML = `
          PSE SECTION
                        <div class="search-collapse-header"
        ===================================================== */
                            data-target="pse-content">
                            Programmable Search Engine
                        </div>


        var pseSection = document.createElement('div');
                        <div class="search-collapse-content"
                            id="pse-content">


        pseSection.className = 'search-collapse-section';
                            <div class="pse-direct-link">
                                <a href="${pseDirectUrl}"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                    🔗 Open in Programmable Search Engine
                                </a>
                            </div>


        var pseDirectUrl =
                            <div class="gcse-searchresults-only"
            'https://cse.google.com/cse?cx=86021a982e3a14848&q=' + encodedQuery;
                                data-queryParameterName="gq">
                            </div>


        pseSection.innerHTML = `
                        </div>
        <div class="search-collapse-header"
                        `;
            data-target="pse-content">
            Programmable Search Engine
        </div>


        <div class="search-collapse-content"
                        container.appendChild(pseSection);
            id="pse-content">


            <div class="pse-direct-link">
                        /* =============================================
                <a href="${pseDirectUrl}"
                          GITHUB WIKIS
                  target="_blank"
                        ============================================= */
                  rel="noopener noreferrer">
                    🔗 Open in Programmable Search Engine
                </a>
            </div>


            <div class="gcse-searchresults-only"
                        var githubSection =
                data-queryParameterName="gq">
                            document.createElement('div');
            </div>


        </div>
                        githubSection.className =
        `;
                            'search-collapse-section';


        container.appendChild(pseSection);
                        githubSection.innerHTML = `
                        <div class="search-collapse-header"
                            data-target="github-wikis-content">
                            GitHub Wikis
                        </div>


        /* =====================================================
                        <div class="search-collapse-content"
          GITHUB WIKIS
                            id="github-wikis-content">
        ===================================================== */


        var githubSection = document.createElement('div');
                            <div class="search-engine-link">
                                <a href="https://github.com/ET-Pioneer/Electric-Technocracy-Pioneers-Community/wiki/search?q=${encodedQuery}"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                    📘 Search in Electric Technocracy Pioneers GitHub Wiki
                                </a>
                            </div>


        githubSection.className = 'search-collapse-section';
                            <div class="search-engine-link">
                                <a href="https://github.com/MrAnonymousNWO/One_World/wiki/search?q=${encodedQuery}"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                    📗 Search in One World GitHub Wiki
                                </a>
                            </div>


        githubSection.innerHTML = `
                        </div>
        <div class="search-collapse-header"
                        `;
            data-target="github-wikis-content">
            GitHub Wikis
        </div>


        <div class="search-collapse-content"
                        container.appendChild(githubSection);
            id="github-wikis-content">


            <div class="search-engine-link">
                        /* =============================================
                <a href="https://github.com/ET-Pioneer/Electric-Technocracy-Pioneers-Community/wiki/search?q=${encodedQuery}"
                          SEARCH ENGINES
                  target="_blank"
                        ============================================= */
                  rel="noopener noreferrer">
                    📘 Search in Electric Technocracy Pioneers GitHub Wiki
                </a>
            </div>


            <div class="search-engine-link">
                        var searchEngines = [
                <a href="https://github.com/MrAnonymousNWO/One_World/wiki/search?q=${encodedQuery}"
                            {
                  target="_blank"
                                name: 'Google',
                  rel="noopener noreferrer">
                                icon: '🔍',
                    📗 Search in One World GitHub Wiki
                                url: 'https://www.google.com/search?q=' + encodedQuery
                </a>
                            },
            </div>
                            {
                                name: 'Bing',
                                icon: '🔎',
                                url: 'https://www.bing.com/search?q=' + encodedQuery
                            },
                            {
                                name: 'DuckDuckGo',
                                icon: '🦆',
                                url: 'https://duckduckgo.com/?q=' + encodedQuery
                            },
                            {
                                name: 'Yandex',
                                icon: '🔍',
                                url: 'https://yandex.com/search/?text=' + encodedQuery
                            },
                            {
                                name: 'Brave Search',
                                icon: '🦁',
                                url: 'https://search.brave.com/search?q=' + encodedQuery
                            },
                            {
                                name: 'Ecosia',
                                icon: '🌳',
                                url: 'https://www.ecosia.org/search?q=' + encodedQuery
                            }
                        ];


        </div>
                        var searchLinksHtml = '';
        `;


        container.appendChild(githubSection);
                        searchEngines.forEach(function (engine) {


        /* =====================================================
                            searchLinksHtml += `
          ALTERNATIVE SEARCH ENGINES
                            <div class="search-engine-link">
        ===================================================== */
                                <a href="${engine.url}"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                    ${engine.icon} Search on ${engine.name}
                                </a>
                            </div>
                            `;
                        });


        var searchEngines = [
                        var searchSection =
            {
                            document.createElement('div');
                name: 'Google',
                icon: '🔍',
                url: 'https://www.google.com/search?q=' + encodedQuery
            },
            {
                name: 'Bing',
                icon: '🔎',
                url: 'https://www.bing.com/search?q=' + encodedQuery
            },
            {
                name: 'DuckDuckGo',
                icon: '🦆',
                url: 'https://duckduckgo.com/?q=' + encodedQuery
            },
            {
                name: 'Yandex',
                icon: '🔍',
                url: 'https://yandex.com/search/?text=' + encodedQuery
            },
            {
                name: 'Brave Search',
                icon: '🦁',
                url: 'https://search.brave.com/search?q=' + encodedQuery
            },
            {
                name: 'Ecosia',
                icon: '🌳',
                url: 'https://www.ecosia.org/search?q=' + encodedQuery
            }
        ];


        var searchLinksHtml = '';
                        searchSection.className =
                            'search-collapse-section';


        searchEngines.forEach(function (engine) {
                        searchSection.innerHTML = `
                        <div class="search-collapse-header"
                            data-target="search-engines-content">
                            Alternative Search Engines
                        </div>


            searchLinksHtml += `
                        <div class="search-collapse-content"
            <div class="search-engine-link">
                            id="search-engines-content">
                <a href="${engine.url}"
                            ${searchLinksHtml}
                  target="_blank"
                        </div>
                  rel="noopener noreferrer">
                        `;
                    ${engine.icon} Search on ${engine.name}
                </a>
            </div>
            `;
        });


        var searchSection = document.createElement('div');
                        container.appendChild(searchSection);


        searchSection.className = 'search-collapse-section';
                        /* =============================================
                          FOOTER BLOCK
                        ============================================= */


        searchSection.innerHTML = `
                        var footerBlock =
        <div class="search-collapse-header"
                            document.createElement('div');
            data-target="search-engines-content">
            Alternative Search Engines
        </div>


        <div class="search-collapse-content"
                        footerBlock.className =
            id="search-engines-content">
                            'mw-recommended-footer';
            ${searchLinksHtml}
        </div>
        `;


        container.appendChild(searchSection);
                        footerBlock.innerHTML = `
                        <div class="mw-recommended-footer-title">
                            Recommended GPT Tools by ChatGPT
                        </div>


        /* =====================================================
                        <ul>
          FOOTER BLOCK
        ===================================================== */


        var footerBlock = document.createElement('div');
                            <li>
                                <b>World Succession Deed GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d82340e27081918e08803ce62e46e1-new-international-law-world-succession-deed-1400"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://chatgpt.com/...world-succession-deed-1400
                                </a>
                            </li>


        footerBlock.className = 'mw-recommended-footer';
                            <li>
                                <b>Juridical Singularity GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d95a89896081918fcb207e1665bf26-juridical-singularity-domestic-international-law"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://chatgpt.com/...juridical-singularity
                                </a>
                            </li>


        footerBlock.innerHTML = `
                            <li>
        <div class="mw-recommended-footer-title">
                                <b>Electric Technocracy GPT</b><br>
            Recommended GPT Tools by ChatGPT
                                <a href="https://chatgpt.com/g/g-69d8635591d48191adc315b8f2b8be32-electric-technocracy-a-new-form-of-government"
        </div>
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://chatgpt.com/...electric-technocracy
                                </a>
                            </li>


        <ul>
                            <li>
                                <b>AGE OF TRANSITION & THE MENTAL SINGULARITY GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d99f78d6a081919cd29d8d33531852-age-of-transition-the-mental-singularity"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://chatgpt.com/...mental-singularity
                                </a>
                            </li>


            <li>
                        </ul>
                <b>World Succession Deed GPT</b> –
                unified global succession framework
                <br>


                <a href="https://chatgpt.com/g/g-69d82340e27081918e08803ce62e46e1-new-international-law-world-succession-deed-1400"
                        <div class="mw-recommended-footer-subtitle">
                  target="_blank"
                            Recommended External Resources
                  rel="noopener noreferrer">
                        </div>
                  https://chatgpt.com/...world-succession-deed-1400
                </a>
            </li>


            <li>
                        <ul>
                <b>Juridical Singularity GPT</b> –
                convergence of domestic & international law
                <br>


                <a href="https://chatgpt.com/g/g-69d95a89896081918fcb207e1665bf26-juridical-singularity-domestic-international-law"
                            <li>
                  target="_blank"
                                🌐 <b>WSD – World Succession Deed 1400/98</b><br>
                  rel="noopener noreferrer">
                                <a href="https://worldsold.wixsite.com/world-sold/en"
                  https://chatgpt.com/...juridical-singularity
                                  target="_blank"
                </a>
                                  rel="noopener noreferrer">
            </li>
                                  https://worldsold.wixsite.com/world-sold/en
                                </a>
                            </li>


            <li>
                            <li>
                <b>Electric Technocracy GPT</b>
                                🌐 <b>WSD – Global Legal Succession Archive</b><br>
                governance through infrastructure & automation
                                <a href="https://worldsold.wixsite.com/global-archive"
                <br>
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://worldsold.wixsite.com/global-archive
                                </a>
                            </li>


                <a href="https://chatgpt.com/g/g-69d8635591d48191adc315b8f2b8be32-electric-technocracy-a-new-form-of-government"
                            <li>
                  target="_blank"
                                🌐 <b>Electric Technocracy</b><br>
                  rel="noopener noreferrer">
                                <a href="https://worldsold.wixsite.com/electric-technocracy"
                  https://chatgpt.com/...electric-technocracy
                                  target="_blank"
                </a>
                                  rel="noopener noreferrer">
            </li>
                                  https://worldsold.wixsite.com/electric-technocracy
                                </a>
                            </li>


            <li>
                            <li>
                <b>AGE OF TRANSITION & THE MENTAL SINGULARITY GPT</b>
                                📘 <b>Read the eBooks & Download free PDF</b><br>
                <br>
                                <a href="https://4u.free.nf"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://4u.free.nf
                                </a>
                            </li>


                <a href="https://chatgpt.com/g/g-69d99f78d6a081919cd29d8d33531852-age-of-transition-the-mental-singularity"
                            <li>
                  target="_blank"
                                🎥 <b>YouTube Channel</b><br>
                  rel="noopener noreferrer">
                                <a href="https://www.youtube.com/@Staatensukzessionsurkunde-1400"
                  https://chatgpt.com/...mental-singularity
                                  target="_blank"
                </a>
                                  rel="noopener noreferrer">
            </li>
                                  https://youtube.com/@Staatensukzessionsurkunde-1400
                                </a>
                            </li>


        </ul>
                            <li>
                                🎙️ <b>Podcast Show</b><br>
                                <a href="https://creators.spotify.com/pod/show/world-succession-deed"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://spotify.com/...world-succession-deed
                                </a>
                            </li>


        <div class="mw-recommended-footer-subtitle">
                            <li>
            Recommended External Resources
                                🚀 <b>Start-Page WSD & Electric Paradise</b><br>
        </div>
                                <a href="https://electric-paradise.start.page"
                                  target="_blank"
                                  rel="noopener noreferrer">
                                  https://electric-paradise.start.page
                                </a>
                            </li>


        <ul>
                        </ul>
                        `;


            <li>
                        container.appendChild(footerBlock);
                🌐 <b>WSD – World Succession Deed 1400/98</b>
                <br>


                <a href="https://worldsold.wixsite.com/world-sold/en"
                        /* =============================================
                  target="_blank"
                          INSERT SEARCH BLOCK
                  rel="noopener noreferrer">
                        ============================================= */
                  https://worldsold.wixsite.com/world-sold/en
                </a>
            </li>


            <li>
                        if (pagination.length) {
                🌐 <b>WSD – Global Legal Succession Archive</b>
                <br>


                <a href="https://worldsold.wixsite.com/global-archive"
                            pagination.after(container);
                  target="_blank"
                  rel="noopener noreferrer">
                  https://worldsold.wixsite.com/global-archive
                </a>
            </li>


            <li>
                        } else {
                🌐 <b>Electric Technocracy</b>
                <br>


                <a href="https://worldsold.wixsite.com/electric-technocracy"
                            insertPoint.after(container);
                  target="_blank"
                        }
                  rel="noopener noreferrer">
                  https://worldsold.wixsite.com/electric-technocracy
                </a>
            </li>


            <li>
                        /* =============================================
                📘 <b>Read the eBooks & Download free PDF</b>
                          GOOGLE CSE LAZY LOAD
                <br>
                        ============================================= */


                <a href="https://4u.free.nf"
                        function loadGoogleCSE() {
                  target="_blank"
                  rel="noopener noreferrer">
                  https://4u.free.nf
                </a>
            </li>


            <li>
                            if (window.googleCSELoaded) {
                🎥 <b>YouTube Channel</b>
                                return;
                <br>
                            }


                <a href="https://www.youtube.com/@Staatensukzessionsurkunde-1400"
                            window.googleCSELoaded = true;
                  target="_blank"
                  rel="noopener noreferrer">
                  https://youtube.com/@Staatensukzessionsurkunde-1400
                </a>
            </li>


            <li>
                            window.__gcse = {
                🎙️ <b>Podcast Show</b>
                <br>


                <a href="https://creators.spotify.com/pod/show/world-succession-deed"
                                parsetags: 'explicit',
                  target="_blank"
                  rel="noopener noreferrer">
                  https://spotify.com/...world-succession-deed
                </a>
            </li>


            <li>
                                callback: function () {
                🚀 <b>Start-Page WSD & Electric Paradise</b>
                <br>


                <a href="https://electric-paradise.start.page"
                                    if (
                  target="_blank"
                                        !window.google ||
                  rel="noopener noreferrer">
                                        !google.search ||
                  https://electric-paradise.start.page
                                        !google.search.cse
                </a>
                                    ) {
            </li>
                                        return;
                                    }


        </ul>
                                    var element =
        `;
                                        document.querySelector(
                                            '.gcse-searchresults-only'
                                        );


        container.appendChild(footerBlock);
                                    if (!element) {
                                        return;
                                    }


        /* Insert container */
                                    google.search.cse.element.render({
                                        div: element,
                                        tag: 'searchresults-only',
                                        gname: 'pse_search'
                                    });


        if (pagination.length) {
                                    var searchControl =
                                        google.search.cse.element.getElement(
                                            'pse_search'
                                        );


            pagination.after(container);
                                    if (searchControl) {


        } else {
                                        searchControl.execute(query);
                                    }
                                }
                            };


            insertPoint.after(container);
                            var s =
        }
                                document.createElement('script');


        /* =====================================================
                            s.async = true;
          GOOGLE CSE LAZY LOAD
        ===================================================== */


        function loadGoogleCSE() {
                            s.src =
                                'https://cse.google.com/cse.js?cx=86021a982e3a14848';


            if (window.googleCSELoaded) {
                            document.head.appendChild(s);
                return;
                        }
            }


            window.googleCSELoaded = true;
                        if ('IntersectionObserver' in window) {


            window.__gcse = {
                            var observer =
                                new IntersectionObserver(
                                    function (entries) {


                parsetags: 'explicit',
                                        if (
                                            entries[0].isIntersecting
                                        ) {


                callback: function () {
                                            loadGoogleCSE();


                    var element =
                                            observer.disconnect();
                        document.querySelector('.gcse-searchresults-only');
                                        }


                    if (!element) {
                                    },
                        return;
                                    {
                    }
                                        rootMargin: '300px'
                                    }
                                );


                    google.search.cse.element.render({
                            observer.observe(container);
                        div: element,
                        tag: 'searchresults-only',
                        gname: 'pse_search'
                    });


                    var searchControl =
                         } else {
                         google.search.cse.element.getElement('pse_search');


                    if (searchControl) {
                            setTimeout(loadGoogleCSE, 1000);
                         searchControl.execute(query);
                         }
                     }
                     }
                 }
                 }
             };
             }


             var s = document.createElement('script');
             /* =========================================================
              INFINITYFREE FAILOVER
            ========================================================= */


             s.async = true;
             if (isAdmin) return;
            s.src =
                'https://cse.google.com/cse.js?cx=86021a982e3a14848';


             document.head.appendChild(s);
             if (page === 'MediaWiki:Common.js') return;
        }


        /* Lazy load when visible */
            var isArticle = (ns === '');
            var isSearch  = (special === 'Search');


        if ('IntersectionObserver' in window) {
            if (!isArticle && !isSearch) return;


             var observer = new IntersectionObserver(function (entries) {
             setTimeout(function () {


                 if (entries[0].isIntersecting) {
                 if (!document.body) return;


                     loadGoogleCSE();
                var html =
                     observer.disconnect();
                     document.body.innerHTML || '';
                 }
 
                var text =
                     document.body.innerText || '';
 
                 var injectedHTML =


            }, {
                    html.includes('infinityfree.net/errors/') ||
                rootMargin: '300px'
            });


            observer.observe(container);
                    html.includes('free hosting limits') ||


        } else {
                    html.includes(
                        'This site is suspended due to exceeding'
                    ) ||


            /* Fallback */
                    (
                        html.includes('InfinityFree') &&
                        html.includes('suspended')
                    );


            setTimeout(loadGoogleCSE, 1000);
                if (injectedHTML && isAnon) {
        }
    });


    /* =========================================================
                    window.location.href =
      5. INFINITYFREE FAILOVER DETECTION
                        'https://singularity-news.github.io/wiki/';
    ========================================================= */
                }


    var bodyText = (
            }, 1000);
        document.body.innerText || ''
    ).toLowerCase();


    if (
         });
         bodyText.includes('suspended') ||
        bodyText.includes('exceeding the free hosting limits')
    ) {


        window.location.href =
     });
            'https://singularity-news.github.io/wiki/';
     }


});
})();

Revision as of 21:32, 13 May 2026

/* Any JavaScript here will be loaded for all users on every page load. */
/* Optimized Vector-2022 Utilities + Search Extensions + InfinityFree Failover */

(function () {

    'use strict';

    mw.loader.using(['mediawiki.util', 'jquery']).then(function () {

        $(function () {

            /* =========================================================
               GLOBAL MEDIAWIKI VARIABLES
            ========================================================= */

            var ns       = mw.config.get('wgCanonicalNamespace');
            var special  = mw.config.get('wgCanonicalSpecialPageName');
            var page     = mw.config.get('wgPageName');
            var groups   = mw.config.get('wgUserGroups') || [];
            var userName = mw.config.get('wgUserName');
            var wikiTitle = mw.config.get('wgTitle') || document.title;

            var isAdmin =
                groups.includes('sysop') ||
                groups.includes('bureaucrat');

            var isAnon = (userName === null);

            /* =========================================================
               GLOBAL CSS
            ========================================================= */

            if (!document.getElementById('mw-global-custom-css')) {

                var globalCss = `
                @media print {

                    #mw-page-base,
                    #mw-head-base,
                    #mw-navigation,
                    #mw-panel,
                    #footer,
                    .vector-header,
                    .vector-page-toolbar,
                    .vector-toc,
                    .vector-sticky-header,
                    .vector-page-tools,
                    .vector-menu,
                    .mw-indicators,
                    .vector-user-links,
                    .vector-search-box,
                    .vector-pinned-container {
                        display: none !important;
                    }

                    #content,
                    .mw-body,
                    .mw-content-container,
                    .mw-body-content {
                        margin: 0 !important;
                        padding: 0 !important;
                        width: 100% !important;
                        max-width: none !important;
                    }

                    body,
                    #content {
                        background: white !important;
                    }

                    .mw-body-content {
                        font-size: 14pt !important;
                        line-height: 1.5 !important;
                    }
                }

                #extra-search-results {
                    margin-top: 2em;
                    border-top: 1px solid #ddd;
                    padding-top: 1em;
                }

                .search-collapse-section {
                    margin-bottom: 1.5em;
                    border: 1px solid #d8dee8;
                    border-radius: 6px;
                    overflow: hidden;
                    background: #ffffff;
                }

                .search-collapse-header {
                    background: #f3f6fb;
                    padding: 12px 15px;
                    cursor: pointer;
                    font-weight: 600;
                    transition: background .15s ease;
                    user-select: none;
                }

                .search-collapse-header:hover {
                    background: #e9eef7;
                }

                .search-collapse-header::before {
                    content: "▼ ";
                    display: inline-block;
                    transition: transform .2s ease;
                }

                .search-collapse-header.collapsed::before {
                    transform: rotate(-90deg);
                }

                .search-collapse-content {
                    padding: 15px;
                    display: block;
                    background: #fff;
                }

                .search-collapse-content.collapsed {
                    display: none;
                }

                .gcse-searchresults-only {
                    min-height: 200px;
                }

                .search-engine-link {
                    display: block;
                    padding: 8px 0;
                    font-size: 15px;
                    border-bottom: 1px solid #f0f0f0;
                }

                .search-engine-link:last-child {
                    border-bottom: none;
                }

                .search-engine-link a {
                    text-decoration: none;
                    color: #0645ad;
                }

                .search-engine-link a:hover {
                    text-decoration: underline;
                }

                .pse-direct-link {
                    margin-bottom: 15px;
                    padding: 10px;
                    background: #eef5ff;
                    border-radius: 5px;
                }

                .pse-direct-link a {
                    color: #005fcc;
                    text-decoration: none;
                    font-weight: 500;
                }

                .pse-direct-link a:hover {
                    text-decoration: underline;
                }

                .mw-recommended-footer {
                    margin-top: 30px;
                    padding: 15px;
                    border: 2px solid #3a6ea5;
                    background: #eef4fb;
                    border-radius: 6px;
                    color: #1a1a1a;
                    font-size: 14px;
                    line-height: 1.5;
                }

                .mw-recommended-footer-title {
                    font-size: 18px;
                    font-weight: bold;
                    color: #2a4d7a;
                    margin-bottom: 10px;
                }

                .mw-recommended-footer-subtitle {
                    font-size: 18px;
                    font-weight: bold;
                    color: #2a4d7a;
                    margin: 20px 0 10px;
                }

                .mw-recommended-footer ul {
                    margin-left: 15px;
                }

                .mw-recommended-footer a {
                    word-break: break-word;
                }
                `;

                var styleEl = document.createElement('style');

                styleEl.id = 'mw-global-custom-css';
                styleEl.type = 'text/css';

                styleEl.appendChild(
                    document.createTextNode(globalCss)
                );

                document.head.appendChild(styleEl);
            }

            /* =========================================================
               VECTOR-2022 ACTION TOOLBAR
            ========================================================= */

            if (mw.config.get('wgNamespaceNumber') === 0) {

                var toolbar =
                    document.querySelector(
                        '#p-views .vector-menu-content-list'
                    );

                if (toolbar) {

                    if (
                        !document.getElementById(
                            'mw-custom-toolbar-buttons'
                        )
                    ) {

                        var currentTitle =
                            encodeURIComponent(wikiTitle);

                        var toolbarHtml = `
                        <div id="mw-custom-toolbar-buttons">

                            <li class="vector-menu-content-list-item">
                                <a href="#"
                                   class="mw-share-trigger"
                                   title="Share this page">
                                   Share
                                </a>
                            </li>

                            <li class="vector-menu-content-list-item">
                                <a href="#"
                                   class="mw-print-trigger"
                                   title="Download clean PDF">
                                   PDF
                                </a>
                            </li>

                            <li class="vector-menu-content-list-item">
                                <a href="https://cse.google.com/cse?cx=86021a982e3a14848&q=${currentTitle}"
                                   target="_blank"
                                   rel="noopener noreferrer"
                                   title="Special Search">
                                   Special Search
                                </a>
                            </li>

                            <li class="vector-menu-content-list-item">
                                <a href="https://github.com/MrAnonymousNWO/One_World/wiki/search?q=${currentTitle}"
                                   target="_blank"
                                   rel="noopener noreferrer"
                                   title="One World Wiki">
                                   One World Wiki
                                </a>
                            </li>

                            <li class="vector-menu-content-list-item">
                                <a href="https://github.com/ET-Pioneer/Electric-Technocracy-Pioneers-Community/wiki/search?q=${currentTitle}"
                                   target="_blank"
                                   rel="noopener noreferrer"
                                   title="E.Tech. Wiki">
                                   E.Tech. Wiki
                                </a>
                            </li>

                        </div>
                        `;

                        toolbar.insertAdjacentHTML(
                            'afterbegin',
                            toolbarHtml
                        );
                    }
                }
            }

            /* =========================================================
               GLOBAL EVENT DELEGATION
            ========================================================= */

            document.addEventListener('click', function (e) {

                /* PDF */

                var printTrigger =
                    e.target.closest('.mw-print-trigger');

                if (printTrigger) {

                    e.preventDefault();

                    window.print();

                    return;
                }

                /* SHARE */

                var shareTrigger =
                    e.target.closest('.mw-share-trigger');

                if (shareTrigger) {

                    e.preventDefault();

                    if (navigator.share) {

                        navigator.share({
                            title: document.title,
                            url: location.href
                        });

                    } else {

                        prompt('Copy link:', location.href);
                    }

                    return;
                }

                /* COLLAPSE TOGGLE */

                var header =
                    e.target.closest('.search-collapse-header');

                if (header) {

                    var targetId =
                        header.getAttribute('data-target');

                    var content =
                        document.getElementById(targetId);

                    header.classList.toggle('collapsed');

                    if (content) {

                        content.classList.toggle('collapsed');
                    }

                    return;
                }
            });

            /* =========================================================
               SEARCH PAGE EXTENSIONS
            ========================================================= */

            if (special === 'Search') {

                var query =
                    mw.util.getParamValue('search');

                if (query) {

                    var encodedQuery =
                        encodeURIComponent(query);

                    var pagination =
                        $('.mw-search-pager-bottom, .results-info').last();

                    var insertPoint =
                        pagination.length
                            ? pagination
                            : $('#mw-search-results');

                    if (insertPoint.length) {

                        var container =
                            document.createElement('div');

                        container.id =
                            'extra-search-results';

                        /* =============================================
                           PSE SECTION
                        ============================================= */

                        var pseSection =
                            document.createElement('div');

                        pseSection.className =
                            'search-collapse-section';

                        var pseDirectUrl =
                            'https://cse.google.com/cse?cx=86021a982e3a14848&q=' +
                            encodedQuery;

                        pseSection.innerHTML = `
                        <div class="search-collapse-header"
                             data-target="pse-content">
                             Programmable Search Engine
                        </div>

                        <div class="search-collapse-content"
                             id="pse-content">

                            <div class="pse-direct-link">
                                <a href="${pseDirectUrl}"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                    🔗 Open in Programmable Search Engine
                                </a>
                            </div>

                            <div class="gcse-searchresults-only"
                                 data-queryParameterName="gq">
                            </div>

                        </div>
                        `;

                        container.appendChild(pseSection);

                        /* =============================================
                           GITHUB WIKIS
                        ============================================= */

                        var githubSection =
                            document.createElement('div');

                        githubSection.className =
                            'search-collapse-section';

                        githubSection.innerHTML = `
                        <div class="search-collapse-header"
                             data-target="github-wikis-content">
                             GitHub Wikis
                        </div>

                        <div class="search-collapse-content"
                             id="github-wikis-content">

                            <div class="search-engine-link">
                                <a href="https://github.com/ET-Pioneer/Electric-Technocracy-Pioneers-Community/wiki/search?q=${encodedQuery}"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                    📘 Search in Electric Technocracy Pioneers GitHub Wiki
                                </a>
                            </div>

                            <div class="search-engine-link">
                                <a href="https://github.com/MrAnonymousNWO/One_World/wiki/search?q=${encodedQuery}"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                    📗 Search in One World GitHub Wiki
                                </a>
                            </div>

                        </div>
                        `;

                        container.appendChild(githubSection);

                        /* =============================================
                           SEARCH ENGINES
                        ============================================= */

                        var searchEngines = [
                            {
                                name: 'Google',
                                icon: '🔍',
                                url: 'https://www.google.com/search?q=' + encodedQuery
                            },
                            {
                                name: 'Bing',
                                icon: '🔎',
                                url: 'https://www.bing.com/search?q=' + encodedQuery
                            },
                            {
                                name: 'DuckDuckGo',
                                icon: '🦆',
                                url: 'https://duckduckgo.com/?q=' + encodedQuery
                            },
                            {
                                name: 'Yandex',
                                icon: '🔍',
                                url: 'https://yandex.com/search/?text=' + encodedQuery
                            },
                            {
                                name: 'Brave Search',
                                icon: '🦁',
                                url: 'https://search.brave.com/search?q=' + encodedQuery
                            },
                            {
                                name: 'Ecosia',
                                icon: '🌳',
                                url: 'https://www.ecosia.org/search?q=' + encodedQuery
                            }
                        ];

                        var searchLinksHtml = '';

                        searchEngines.forEach(function (engine) {

                            searchLinksHtml += `
                            <div class="search-engine-link">
                                <a href="${engine.url}"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                    ${engine.icon} Search on ${engine.name}
                                </a>
                            </div>
                            `;
                        });

                        var searchSection =
                            document.createElement('div');

                        searchSection.className =
                            'search-collapse-section';

                        searchSection.innerHTML = `
                        <div class="search-collapse-header"
                             data-target="search-engines-content">
                             Alternative Search Engines
                        </div>

                        <div class="search-collapse-content"
                             id="search-engines-content">
                             ${searchLinksHtml}
                        </div>
                        `;

                        container.appendChild(searchSection);

                        /* =============================================
                           FOOTER BLOCK
                        ============================================= */

                        var footerBlock =
                            document.createElement('div');

                        footerBlock.className =
                            'mw-recommended-footer';

                        footerBlock.innerHTML = `
                        <div class="mw-recommended-footer-title">
                            Recommended GPT Tools by ChatGPT
                        </div>

                        <ul>

                            <li>
                                <b>World Succession Deed GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d82340e27081918e08803ce62e46e1-new-international-law-world-succession-deed-1400"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://chatgpt.com/...world-succession-deed-1400
                                </a>
                            </li>

                            <li>
                                <b>Juridical Singularity GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d95a89896081918fcb207e1665bf26-juridical-singularity-domestic-international-law"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://chatgpt.com/...juridical-singularity
                                </a>
                            </li>

                            <li>
                                <b>Electric Technocracy GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d8635591d48191adc315b8f2b8be32-electric-technocracy-a-new-form-of-government"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://chatgpt.com/...electric-technocracy
                                </a>
                            </li>

                            <li>
                                <b>AGE OF TRANSITION & THE MENTAL SINGULARITY GPT</b><br>
                                <a href="https://chatgpt.com/g/g-69d99f78d6a081919cd29d8d33531852-age-of-transition-the-mental-singularity"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://chatgpt.com/...mental-singularity
                                </a>
                            </li>

                        </ul>

                        <div class="mw-recommended-footer-subtitle">
                            Recommended External Resources
                        </div>

                        <ul>

                            <li>
                                🌐 <b>WSD – World Succession Deed 1400/98</b><br>
                                <a href="https://worldsold.wixsite.com/world-sold/en"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://worldsold.wixsite.com/world-sold/en
                                </a>
                            </li>

                            <li>
                                🌐 <b>WSD – Global Legal Succession Archive</b><br>
                                <a href="https://worldsold.wixsite.com/global-archive"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://worldsold.wixsite.com/global-archive
                                </a>
                            </li>

                            <li>
                                🌐 <b>Electric Technocracy</b><br>
                                <a href="https://worldsold.wixsite.com/electric-technocracy"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://worldsold.wixsite.com/electric-technocracy
                                </a>
                            </li>

                            <li>
                                📘 <b>Read the eBooks & Download free PDF</b><br>
                                <a href="https://4u.free.nf"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://4u.free.nf
                                </a>
                            </li>

                            <li>
                                🎥 <b>YouTube Channel</b><br>
                                <a href="https://www.youtube.com/@Staatensukzessionsurkunde-1400"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://youtube.com/@Staatensukzessionsurkunde-1400
                                </a>
                            </li>

                            <li>
                                🎙️ <b>Podcast Show</b><br>
                                <a href="https://creators.spotify.com/pod/show/world-succession-deed"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://spotify.com/...world-succession-deed
                                </a>
                            </li>

                            <li>
                                🚀 <b>Start-Page WSD & Electric Paradise</b><br>
                                <a href="https://electric-paradise.start.page"
                                   target="_blank"
                                   rel="noopener noreferrer">
                                   https://electric-paradise.start.page
                                </a>
                            </li>

                        </ul>
                        `;

                        container.appendChild(footerBlock);

                        /* =============================================
                           INSERT SEARCH BLOCK
                        ============================================= */

                        if (pagination.length) {

                            pagination.after(container);

                        } else {

                            insertPoint.after(container);
                        }

                        /* =============================================
                           GOOGLE CSE LAZY LOAD
                        ============================================= */

                        function loadGoogleCSE() {

                            if (window.googleCSELoaded) {
                                return;
                            }

                            window.googleCSELoaded = true;

                            window.__gcse = {

                                parsetags: 'explicit',

                                callback: function () {

                                    if (
                                        !window.google ||
                                        !google.search ||
                                        !google.search.cse
                                    ) {
                                        return;
                                    }

                                    var element =
                                        document.querySelector(
                                            '.gcse-searchresults-only'
                                        );

                                    if (!element) {
                                        return;
                                    }

                                    google.search.cse.element.render({
                                        div: element,
                                        tag: 'searchresults-only',
                                        gname: 'pse_search'
                                    });

                                    var searchControl =
                                        google.search.cse.element.getElement(
                                            'pse_search'
                                        );

                                    if (searchControl) {

                                        searchControl.execute(query);
                                    }
                                }
                            };

                            var s =
                                document.createElement('script');

                            s.async = true;

                            s.src =
                                'https://cse.google.com/cse.js?cx=86021a982e3a14848';

                            document.head.appendChild(s);
                        }

                        if ('IntersectionObserver' in window) {

                            var observer =
                                new IntersectionObserver(
                                    function (entries) {

                                        if (
                                            entries[0].isIntersecting
                                        ) {

                                            loadGoogleCSE();

                                            observer.disconnect();
                                        }

                                    },
                                    {
                                        rootMargin: '300px'
                                    }
                                );

                            observer.observe(container);

                        } else {

                            setTimeout(loadGoogleCSE, 1000);
                        }
                    }
                }
            }

            /* =========================================================
               INFINITYFREE FAILOVER
            ========================================================= */

            if (isAdmin) return;

            if (page === 'MediaWiki:Common.js') return;

            var isArticle = (ns === '');
            var isSearch  = (special === 'Search');

            if (!isArticle && !isSearch) return;

            setTimeout(function () {

                if (!document.body) return;

                var html =
                    document.body.innerHTML || '';

                var text =
                    document.body.innerText || '';

                var injectedHTML =

                    html.includes('infinityfree.net/errors/') ||

                    html.includes('free hosting limits') ||

                    html.includes(
                        'This site is suspended due to exceeding'
                    ) ||

                    (
                        html.includes('InfinityFree') &&
                        html.includes('suspended')
                    );

                if (injectedHTML && isAnon) {

                    window.location.href =
                        'https://singularity-news.github.io/wiki/';
                }

            }, 1000);

        });

    });

})();