Jump to content

User:Quest for Truth/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quest for Truth (talk | contribs) at 13:22, 23 December 2010. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
// [[User:Haza-w/Drop-down menus]]
var cactions = {
    itabs: false,
    svars: [],
    tbusr: false,
    xmlhr: true
};

// Nav Popup
// Normally features are enabled
var toFix = true;

// In special pages, histories and previews disable them
if (wgCanonicalNamespace == "Special" || /*
*/ location.href.indexOf('&action=history') != -1 || /*
*/ location.href.indexOf('&action=submit') != -1)
toFix = false;

// 
popupRedlinkRemoval = toFix;
popupFixRedirs = toFix;
popupFixDabs = toFix;

// replace <ul> with <ol> in page histories
var oldNode
if (document.getElementById(pagehistory)) {
    var newNode = document.createElement("ol")
    newNode.id = "pagehistoryol"
    var innards = document.getElementById(pagehistory).children
    while (innards.length > 0) {
        newNode.insertBefore(innards[0])
    }
    oldNode = document.getElementById(pagehistory).replaceNode(newNode)
}