MediaWiki:Gadget-move-edit-links.js

Wikipedia'as/is

Fuomáš: Maŋŋel go almmuhat, soaitá leat dárbbašlaš sihkkut neahttalohkkii gaskaráju vai oainnat rievdadusaid. 

  • Firefox / Safari: Doala Shift dan botta go deattát Reload, dahje deaddil Ctrl-F5 dahje Ctrl-R (⌘-R Mac'as)
  • Google Chrome: Deaddil Ctrl-Shift-R (⌘-Shift-R Mac'as)
  • Internet Explorer / Edge: Doala Ctrl dan botta go deattát Álggat ođđasit, dahje deaddil Ctrl-F5
  • Opera: deaddil Ctrl-F5.
/**
 * Description: Reorder the position of edit links
 * The function looks for <span class="editsection">, and move them
 * at the end of their parent and display them inline in small font.
 * Maintainer: [[Bruker:Jeblad]]
 */
(function(undefined) {
    if (!mw.config.get('wgArticleId')) return;
    if (!/^(view|purge|submit)$/.test(mw.config.get('wgAction'))) return;
    $(function() {
        mw.util.$content
        .find('h2,h3,h4,h5,h6')
        .children('.editsection:first-child')
        .addClass('reordered')
        .each(function(i, el){
            el.parentNode.appendChild(document.createTextNode(" "));
            el.parentNode.appendChild(el);
        });
    });
})();