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

m
fix early return agian
m (correct RCid)
m (fix early return agian)
// the old "button"
const old = document.querySelector('.patrollink')
if (!old) { return }
// fetch the current RC id for the later request
const rcid = mw.util.getParamValue('rcid', old.firstElementChild.href)
if (!old) { return }
// setup the new button
const btn = document.createElement('button')