Jump to content

MediaWiki:Gadget-vectorskin-thunks.js: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
several IDs were changed back. This gadget is mostly pointless now.
 
m 1 revision
 
(No difference)

Latest revision as of 04:20, 17 December 2013

if (typeof(skin)!="undefined" && skin=="vector")
  (function() {
      var GET = document.getElementById;
      document.getElementById = function(id) {
          var g = GET.call(document, id);
          if (g) {
              return g;
          } else {
              return GET.call(document, {
                  'column-one': 'panel',
                  'column-content': 'content', // since #content exists, is this ok?
                  'globalWrapper': 'content', // what should this be?
                  'lastmod': 'foot-info-lastmod'
              }[id]);
          }
      };
  })();