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

m
try agian
m (try again)
m (try agian)
first_edit_link.appendChild(patrols[0])
patrols[0].style['font-size'] = 'inherit'
 
// 2019-07-22 make "new" links better
for (const row = document.querySelectorAll('.mw-changeslist-src-mw-new')) {
const link = document.createElement('a')
link.innerText = 'new'
link.href = ''
row.firstChild.replaceWith('(', link, ' | ')
}
 
// 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, ' | ')
 
});