MediaWiki:Common.js

Revision as of 07:27, 28 August 2024 by MarkWD (talk | contribs)

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

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
(function() {
    // Check if jQuery is loaded
    if (typeof jQuery == 'undefined') {
        // If not, dynamically load jQuery
        var script = document.createElement('script');
        script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js';
        script.type = 'text/javascript';
        document.getElementsByTagName('head')[0].appendChild(script);

        // Wait for jQuery to load before executing the rest of the code
        script.onload = function() {
            runCustomScript();
        };
    } else {
        // jQuery is already loaded, run the custom script immediately
        runCustomScript();
    }

    function runCustomScript() {
        $(document).ready(function() {
            $('body').append(`
                <div class="flowing-numbers">
                    <span>001101010</span>
                    <span>110100110</span>
                    <span>011010101</span>
                    <span>101001101</span>
                    <span>010110110</span>
                </div>
            `);
        });
    }
})();

jQuery.getScript('//cmp.osano.com/Azyw1RRk4ZCOx2wli/04c9aa84-7b4a-45a8-bb7e-3b3767dd3378/osano.js');
('#free_text').wikiEditor;