מייבאים כמותיים, בדוקי עריכות אוטומטית, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, מייבאים, מעדכנים, אספקלריה רעדאקטארן
3,955
רעדאגירונגען
אין תקציר עריכה צייכן: צוריקגעשטעלט |
אין תקציר עריכה |
||
| (6 צווישנדיגע ווערסיעס פונעם זעלבן באַניצער נישט געוויזן) | |||
| שורה 10: | שורה 10: | ||
*/ | */ | ||
if ((mw.config.get('wgAction') === 'delete') && ((($("#firstHeading").text().indexOf("הפעולה בוצעה")>-1))||($("#firstHeading").text().indexOf("די אקציע איז אויסגעפירט געווארן")>-1))){ | if ((mw.config.get('wgAction') === 'delete') && ((($("#firstHeading").text().indexOf("הפעולה בוצעה")>-1))||($("#firstHeading").text().indexOf("די אקציע איז אויסגעפירט געווארן")>-1))){ | ||
document.querySelectorAll('.mw-parser-output').forEach(container => { | |||
const refs = container.querySelectorAll('sup.reference'); | |||
for (let i = 1; i < refs.length; i++) { | |||
const prev = refs[i - 1]; | |||
const cur = refs[i]; | |||
// Collect text between prev and cur | |||
let betweenText = ''; | |||
let node = prev.nextSibling; | |||
while (node && node !== cur) { | |||
if (node.nodeType === Node.TEXT_NODE) betweenText += node.textContent; | |||
if (node.nodeType === Node.ELEMENT_NODE) betweenText += node.textContent; | |||
node = node.nextSibling; | |||
} | |||
// Only insert comma if nothing visible between | |||
if (betweenText.trim() === '') { | |||
cur.insertAdjacentText('beforebegin', ', '); | |||
} | |||
} | |||
}); | |||
var page = mw.config.get('wgPageName'); | var page = mw.config.get('wgPageName'); | ||
| שורה 134: | שורה 158: | ||
// [[m:User:Jon Harald Søby/diffedit.js]] | // [[m:User:Jon Harald Søby/diffedit.js]] | ||
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript' ); | mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Jon_Harald_Søby/diffedit.js&action=raw&ctype=text/javascript' ); | ||
רעדאגירונגען