User:NinetyUnderScore/common.js

const remove = (sel) => document.querySelectorAll(sel).forEach(el => el.remove);

// Use like: remove(".global-navigation");