FANDOM


/*
 */
/**
 * Name:        Global navbar modifications
 * Author:      KockaAdmiralac <1405223@gmail.com>
 * Version:     v1.1
 * Description: Modifies the global navbar to add useful buttons
 */
$(function() {
    var linksContent = "",
        wiki = window.location.host.split("."),
        page = mw.config.get('wgPageName'),
        user = mw.config.get('wgUserName'),
        links = window.globalLinks || {};
    wiki = wiki.slice(0, wiki.length - 2).join("."),
    links = $.extend(links.global, links[wiki]);
    for(var prop in links) {
        if(links.hasOwnProperty(prop)) {
            var link = links[prop]
                .replace(/%page%/g, page)
                .replace(/%user%/g, user);
            linksContent += mw.html.element("a", {
                class: "cell-link global-nav-link",
                href: "/wiki/" + link
            }, prop);
        }
    }
    $(".account-navigation-container").first().before(linksContent);
});
 
var autoFormatWikimediaLinks = false;
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
 
// Quick Deletion
var fdButtons = [];
window.fdButtons.push(
    {
        summary: 'Housekeeping',
        label: 'HK'
    },
    {
        summary: 'Not enough information',
        label: 'NI'
    }
);
 
window.AjaxBlock = {
    check: {
        talk: true,
        override: true
    }
};
 
$("a.global-shortcuts-help-entry-point").parents('li').css("display", "none");
 
var elm = $(".wds-global-footer__bottom-bar");
$('.wds-global-footer').prepend(elm);
 
mw.loader.using('mediawiki.api').then(function() {
    config = mw.config.get(["wgSitename"]),
    $('.tools').append( '<li><a>' + config.wgSitename + '</a></li>' );
});
 
/* Stalkers gonna stalk */
$(function() {
    if($("#UserProfileMasthead").length === 0) {
        return;
    }
    mw.loader.using('mediawiki.api').then(function() {
        new mw.Api().get({
            action: 'parse',
            text: '{{gender:' + $('.masthead-info h1').text() + '|male|female|thisisjustsomethingstupid}}'
        }).done(function(d) {
            if(d.parse.text['*'].indexOf('thisisjustsomethingstupid') === -1) {
                $('.masthead-info hgroup').append('<span class="tag">' + d.parse.text['*'] + '</span>');
            }
        });
    });
});
/*
*/

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.