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

Jump to navigation Jump to search
m (can't get the info for it :|)
m (try this)
document.querySelectorAll('.mw-changeslist-src-mw-new').forEach(function (row) {
const link = document.createElement('a')
link.innerText = 'newdiff'
link.href = row.querySelector('.mw-changeslist-title').href
row.firstChild.replaceWith('(', link, ' | ')
});