yoohoo! hot sauce please

10:27, 7 September 2026 (UTC)

MediaWiki:Common.js

From 2swagg wiki
Revision as of 03:17, 1 September 2026 by Admin (talk | contribs) (Remove forced Monobook redirect that breaks previews)
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");
  });
});