Diferencia entre revisiones de «MediaWiki:Gadget-artist-portal.js»

m
pass in content to jQuery things
m (tweak)
m (pass in content to jQuery things)
console.debug('artist-portal:', content)
 
documentArray.querySelectorAllfrom(jQuery('a[title^="Coppermind:Artists/"]',content)).forEach(function each_artist(el) {
// replace text with artist name
el.innerText = el.innerText.replace('Coppermind:Artists/','')
})
 
Array.from(jQuery('a[title^="Coppermind:Artists/"]',content).closest('ul')).forEach(function sort_list(ul) {
const kids = Array.from(ul.children)
console.debug('sorting:', kids.length, 'elements from', ul)
40 275

ediciones