Community Central


monobookSpecialPageHandler - a small function for monobook users

So, after being linked to Special:WikiActivity one too many times, I wrote a small script in order for it to automatically redirect it. I also added functionality to use some of the Special pages that don't work on monobook - by adding a ?useskin to the URL.

// Handles special pages in monobook that that are "available only in Wikia skin"
var monobookSpecialPageHandler = function() {
    if (skin === "monobook") {
        if ((window.location.href.endsWith("Special:Chat")) ||
             (window.location.href.endsWith("Special:CSS")) ||
             (window.location.href.endsWith("Special:WikiFeatures"))) {
            window.location.href = window.location.href + "?useskin=Wikia";
        if (window.location.href.endsWith("Special:WikiActivity")) {
            window.location.href = "/wiki/Special:RecentChanges";

Feel free to add it to your global.js. If I missed a page that should be here, let me know, or edit this post yourself if you feel confident.

Also on Fandom

Random Wiki