yoohoo! hot sauce please
10:27, 7 September 2026 (UTC)
MediaWiki:Common.js: Difference between revisions
From 2swagg wiki
Jump to navigationJump to search
Enable Multiquote previous/next controls |
Make MonoBook the global default and remove navigation borders Tag: Reverted |
||
| Line 12: | Line 12: | ||
}); | }); | ||
}); | }); | ||
/* 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()); | |||
} | |||
})(); | |||
Revision as of 03:01, 1 September 2026
/* 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());
}
})();