Difference between revisions of "User:Fbstj/gadget/history-test.js"
Jump to navigation
Jump to search
m (retry by doing the combinator manually) |
m (oops) |
||
if (!el) { // check first child of #mw-content-text is a notice
const txt = document.querySelector('#mw-content-text')
if (txt.firstElementChild.classList.contains('notice'))
el = txt.firstElementChild
}
|