Jump to content

User:Haza-w.debug/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Haza-w.debug (talk | contribs) at 16:52, 22 June 2009 (Testing lefteditlinks gadget). 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.
/*importScript('User:Haza-w.debug/cactions.js');
var cactions = {
    itabs: true,
    svars: Array(
        ['New pages',              wgScript+'?title=Special:NewPages&action=view'],
        ['User talk templates',    wgScript+'?title=Wikipedia:Template_messages/User_talk_namespace&action=view'],
        ['AIV reports',            wgScript+'?title=Wikipedia:Administrator_intervention_against_vandalism&action=view'],
        ['Speedy deletion',        wgScript+'?title=Wikipedia:Criteria_for_speedy_deletion&action=view']
    )

}*/

addOnloadHook(function() {
    if (typeof oldEditsectionLinks != 'undefined' && oldEditsectionLinks)   return;
    var spans = document.getElementsByTagName("span");
    for (var i=0; i<spans.length; i++) {
        var span = spans[i];
        if (span.className != "editsection")    continue;
        span.style.fontSize = "small";
        span.style.marginLeft = "3px";
        span.style.fontWeight = "normal";
        span.style.styleFloat = "none"; // IE-Fix für die folgende Zeile
        span.style.cssFloat = "none";
        span.parentNode.appendChild(document.createTextNode(" "));
        span.parentNode.appendChild(span);
    }
});