Jump to content

User:PC78/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PC78 (talk | contribs) at 14:50, 2 September 2010 (copy/paste from User:PC78/monobook.js). 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.
//Add a 'null edit' tab
if(wgNamespaceNumber != -1 && wgArticleId != 0) { 
    addOnloadHook( function() {
        addPortletLink('p-cactions', 
                       wgScript + '?title=' + encodeURIComponent(wgPageName) + '&action=edit&nulledit=true',
                       'null',
                       'p-null',
                       'Null edit this page');
    }
)}
if( wgAction == 'edit' && inurl('nulledit') == 'true') {
    addOnloadHook( function() {
        document.getElementById('wpSave').click();
    }
)}
 
function inurl(p) {
    var re = RegExp('[&?]' + p + '=([^&]*)');
    var matches;
    if (matches = re.exec(document.location)) {
        try { 
            return decodeURI(matches[1]);
        } catch (e) { }
    }
    return null;
}

importScript('User:Ais523/bracketmatch.js'); // [[Ais523/bracketmatch.js]]

importScript('User:Dr pda/persondata.js'); // [[User:Dr pda/persondata.js]]

importScript('User:Splarka/dabfinder.js'); // [[User:Splarka/dabfinder.js]]

importScript('User:Superm401/catscan.js'); // [[User:Superm401/catscan.js]]

importScript('User:Alex Smotrov/wlunwatch.js'); // [[User:Alex Smotrov/wlunwatch.js]]

importScript('User:Anomie/ajaxpreview.js'); // [[User:Anomie/ajaxpreview.js]]

importScript('User:Dr pda/prosesize.js'); //[[User:Dr pda/prosesize.js]]