Jump to content

MediaWiki:Common.js

From Transight Wiki
Revision as of 06:51, 13 August 2025 by Editor (talk | contribs)

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.
$(document).ready(function() {
  $('input#searchInput').attr('placeholder', 'Search for Transight Wiki');
});

// Open all external links in a new tab
$(document).ready(function () {
    $("a.external").attr("target", "_blank");
});

$(document).ready(function() {
    // Hide appearance landmark
    $('nav.vector-appearance-landmark').remove();

    // Force small text + wide layout
    $('body')
        .removeClass('vector-feature-limited-width-enabled')
        .addClass('vector-feature-limited-width-disabled vector-font-size-small');
});