40 275
ediciones
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')
|