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

Jump to navigation Jump to search
m (no need to continue on edit apges)
m (only move notices on proper viewings, not on diffs or other weird queries)
const edit_box = document.querySelector('.editButtons')
if (!!edit_box) break
if (location.search != '') break
var el = document.querySelector('.infobox+.notice')
if (!el) { // check first child of #mw-content-text is a notice