מדיה ויקי:Gadget-purple.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
מ 27 גרסאות של הדף wikipedia:he:מדיה_ויקי:Gadget-purple.js יובאו |
||
| (4 גרסאות ביניים של משתמש אחר אחד אינן מוצגות) | |||
| שורה 20: | שורה 20: | ||
$('.purple') | $('.purple') | ||
.css({color: 'violet'}); | .css({color: 'violet'}); | ||
if ($('#blue').length > 0) { | |||
($('#blue')) | |||
.append($('.notpurple')); | |||
$('.notpurple') | |||
.wrap($('<li>')); | |||
} | |||
nodes = document.querySelectorAll('.mw-parser-output br'); | |||
nodes.forEach(function(node) { | |||
if (node.nextSibling && | |||
node.nextSibling.nodeType === 1 && | |||
node.nextSibling.tagName === 'BR') { | |||
node.remove(); | |||
} | |||
}); | |||
}); | }); | ||
} | } | ||