Difference between revisions of "MediaWiki:Common.js"

Jump to navigation Jump to search
m (move Arcanum stuff to Gadgets)
m (move to gadget)
/* replace "Coppermind:Welcome" with "Welcome to the Coppermind" */
$('h1:contains("Coppermind:Welcome")').text("Welcome to the Coppermind");
 
/* 2014-05
add title attributes to all ref tags, containing the text shown in the ref
*/
$('[id*="cite_ref"]').each(function (i, el) {
var el = $(el)
var a = $('[href="#'+el.attr('id')+'"]')
el.attr('title', a.next('.reference-text').text() || a.parent().nextAll('.reference-text').text())
})
 
/* 2017-11 - protect roll back links */