„Szerkesztő:FBöbe/monobook.js” változatai közötti eltérés

A Wikipédiából, a szabad enciklopédiából
Tartalom törölve Tartalom hozzáadva
minden js ki, ha úgyse járok itt gyakran
Ladsgroup (vitalap | szerkesztései)
a Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
18. sor: 18. sor:
edit0.className += (edit0.className.length ? ' istalk' : 'istalk');
edit0.className += (edit0.className.length ? ' istalk' : 'istalk');
}
}
addOnloadHook(addEditSection0);
$(addEditSection0);
*/
*/
/* sablonmester */
/* sablonmester */

A lap 2021. február 7., 22:47-kori változata

/* meg egy ful a bevezeto szerkesztesehez <pre>
*/

/*
 * edit section 0 (text until the first section title)
 */
/*
function addEditSection0(){
    if(!document.getElementById) return;
    var edit = document.getElementById('ca-edit');
    if(!edit) return;
    var link = ((edit.children) ? edit.children : edit.childNodes)[0].href + '&section=0';
    var edit0 = addPortletLink('p-cactions', link, '0', 'ca-edit-0', 
        'Bevezető szerkesztése', '0', edit.nextSibling);
    if(/selected/.test(edit.className) && /section=0$/.test(window.location.href)) 
        edit0.className = 'selected';
    if(/istalk/.test(edit.className)) 
        edit0.className += (edit0.className.length ? ' istalk' : 'istalk');
}
$(addEditSection0);
*/
/* sablonmester */
/* document.write('<script type="text/javascript" src="http://hu.wikipedia.org/w/index.php?title=User:Dani/sablonmester.js&action=raw&ctype=text/javascript&dontcountme=s"> </script>'); */

/* </pre> */