Difference between revisions of "User:Fbstj/gadget/history-test.js"

m
try again
m (unfix)
m (try again)
// hide old button and show new one
old.replaceWith(btn)
 
});
 
// 2019-07-22 make "new" links better
$(function () {
 
for (const row = document.querySelectorAll('.mw-changeslist-src-mw-new')) {
const link = document.createElement('a')
link.innerText = 'new'
link.href = ''
row.firstChild.replaceWith('(', link, ' | ')
}
 
});
40,275

edits