yoohoo! hot sauce please

10:27, 7 September 2026 (UTC)

MediaWiki:Common.js

From 2swagg wiki
Revision as of 03:01, 1 September 2026 by Admin (talk | contribs) (Make MonoBook the global default and remove navigation borders)
Jump to navigationJump 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.


/* Multiquote cycle controls */
$(function(){
  $(".cyclesequence").find(".cyclesequencelinknext").on("click", function(){
    var box=$(this).closest(".cyclesequence"), current=box.find(".cyclesequenceitem:visible");
    (current.next(".cyclesequenceitem").length ? current.next(".cyclesequenceitem") : box.find(".cyclesequenceitem:first")).removeClass("hiddentext").siblings(".cyclesequenceitem").addClass("hiddentext");
  });
  $(".cyclesequence").find(".cyclesequencelinkprev").on("click", function(){
    var box=$(this).closest(".cyclesequence"), current=box.find(".cyclesequenceitem:visible");
    (current.prev(".cyclesequenceitem").length ? current.prev(".cyclesequenceitem") : box.find(".cyclesequenceitem:last")).removeClass("hiddentext").siblings(".cyclesequenceitem").addClass("hiddentext");
  });
});

/* Use MonoBook site-wide unless a visitor explicitly requests another skin. */
(function () {
  if (typeof mw === 'undefined' || typeof URL === 'undefined') return;
  if (mw.config.get('skin') !== 'monobook' && !/[?&]useskin=/.test(window.location.search)) {
    var url = new URL(window.location.href);
    url.searchParams.set('useskin', 'monobook');
    window.location.replace(url.toString());
  }
})();