Jump to content

MediaWiki:Gadget-vectorskin-thunks.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TheDJ (talk | contribs) at 21:50, 3 July 2009 (From http://zh.wikipedia.org/w/index.php?title=MediaWiki:Gadget-vectorskin-thunks.js&oldid=10495920). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
(function() {
    var GET = document.getElementById;
    document.getElementById = function(id) {
        var g = GET.call(document, id);
        if (g) {
            return g;
        } else {
            return GET.call(document, {
                'p-cactions': 'actions',
                'p-personal': 'personal',
                'p-search': 'p-navigation', // redirected to this for positioning, or to #search?
                'p-logo': 'logo',
                'column-one': 'panel',
                'column-content': 'content', // since #content exists, is this ok?
                'globalWrapper': 'content' // what should this be?
            }[id]);
        }
    };
})();