MediaWiki:Gadget-sidebar-ca-modern.js

$(function { var portlets = document.getElementById("mw_portlets");  var cactions = document.getElementById("p-cactions");  if(!portlets || !cactions) return;  portlets.insertBefore(cactions,portlets.firstChild); })