User:SuperDragonXD1/common.js

importScriptPage("User:SuperDragonXD1/common.js", "dev")

(function { if (mw.config.get("wgTitle") !== mw.config.get("wgUserName")) return;  var ui;

function init(lib) { ui = lib;

const moveItem = ui.li({     child: ui.a({ href: "/wiki/Special:MovePage/" + mw.config.get("wgPageName"), text: "Move" })   });    const deleteItem = ui.li({      child: ui.a({ href: "/wiki/" + mw.config.get("wgPageName") + "?action=delete", text: "Delete" })   });    const actions = $("#p-cactions .wds-list"); actions.append(moveItem); if (/sysop|staff|helper|wiki-representative|wiki-specialist|content-moderator|soap/.test(mw.config.get("wgUserGroups"))) { actions.append(deleteItem); }

}

importArticle({   type: 'script',    article: 'u:dev:MediaWiki:Dorui.js'  });

mw.hook('doru.ui').add(init); });