User:PhantomCaleb/common.js

// Disable syntax highlighting on data pages, enable everywhere else // mw.loader.using("mediawiki.api", function { // 	var api = new mw.Api; // 	if (mw.config.get('wgPageName').startsWith("Data:Translations")) { // 		api.saveOption("usecodemirror", 0); // 	} else { // 		api.saveOption("usecodemirror", 1); // 	} // });

(function { const dashboardLink = $("", { href: "/wiki/User:PhantomCaleb/Dashboard", text: "Dashboard", }); const sandboxLink = $("", { href: "/wiki/User:PhantomCaleb/Sandbox", text: "Sandbox", }); $("")   .attr("id", "pt-dashboard")    .addClass("mw-list-item")    .append(dashboardLink)    .insertAfter("#pt-mytalk"); $("")    .attr("id", "pt-sandbox")    .addClass("mw-list-item")    .append(sandboxLink)    .insertAfter("#pt-dashboard"); });