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

m
fgf;ajsd;flkja
m (oops)
m (fgf;ajsd;flkja)
$(function () {
 
// 2019-07-22 make "new" links better
for (const row of document.querySelectorAll('.mw-changeslist-src-mw-new')) {
const link = document.createElement('a')
link.innerText = 'new'
link.href = ''
row.firstChild.replaceWith('(', link, ' | ')
 
})
 
/* Add edit link to templates */
$(function () {
first_edit_link.appendChild(patrols[0])
patrols[0].style['font-size'] = 'inherit'
 
// 2019-07-22 make "new" links better
for (const row of document.querySelectorAll('.mw-changeslist-src-mw-new')) {
const link = document.createElement('a')
link.innerText = 'new'
link.href = ''
row.firstChild.replaceWith('(', link, ' | ')
}