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

m
retry by doing the combinator manually
m (didn't work, back out)
m (retry by doing the combinator manually)
while (true) {
var el = document.querySelector('.infobox+.notice')
if (!el) { // check first child of #mw-content-text is a notice
const txt = document.querySelector('#mw-content-text')
if (txt.firstElementChild.contains('notice'))
el = txt.firstElementChild
}
if (!el) break
const ind = document.querySelector('.mw-indicators')