< User:The Earwig
Browse history interactively ← Previous edit Next edit → Content deleted Content addedInline
Revision as of 03:43, 23 November 2020
// ------------------------------ Script imports ------------------------------
importScript("User:The Earwig/copyvios.js"); // ]
importScript("User:The Earwig/permalink.js"); // ]
importScript("User:The Earwig/tfdclerk.js"); // ]
importScript("User:The Earwig/orfurrev.js"); // ]
importScript('User:Shubinator/DYKcheck.js');
importScript('User:Dr_pda/prosesize.js');
importScript("User:PleaseStand/userinfo.js");
importScript('User:Ale_jrb/Scripts/csdhelper.js'); // ]
importScript('User:Anomie/linkclassifier.js'); // ]
// ----------------------------- Interface tweaks -----------------------------
// <nowiki>
// Fix sandbox link
$.when(mw.loader.using(), $.ready).then(function() {
var uname = mw.util.wikiUrlencode(mw.config.get("wgUserName"));
var url = "/User:" + uname + "/Sandbox";
$("#pt-sandbox a").attr("href", url).toggleClass("new");
});
// Add a ] portlet link for subpages
$.when(mw.loader.using(), $.ready).then(function() {
var title = mw.util.wikiUrlencode(mw.config.get("wgPageName"));
var url = mw.util.getUrl("Special:PrefixIndex/" + title);
mw.util.addPortletLink(
"p-tb",
url,
"Prefix index",
"t-prefixindex",
"List subpages of the current page"
);
});
// Move "Upload file" and "Special pages" from tools portlet to interaction portlet
$.when($.ready).then(function() {
$("#t-upload,#t-specialpages").appendTo($("#p-interaction ul"));
});
// Modifications to edit links
$.when(mw.loader.using(), $.ready).then(function() {
if ($("#ca-edit a").text().indexOf("Create") >= 0)
$("#ca-edit a").text("Create"); // "create this page / create source" -> "create"
else
$("#ca-edit a").text("Edit"); // "edit this page / edit source" -> "edit"
$("#ca-addsection a").text("+"); // "new section" -> "+"
$("#ca-ve-edit a").text("VE"); // "edit this page" -> "ve"
$(".mw-editsection a:first-of-type").text("edit"); // "edit source" -> "edit"
$(".mw-editsection-visualeditor").text("ve"); // "edit" -> "ve"
});
// Add a SUL info link to userpages
$.when(mw.loader.using(), $.ready).then(function() {
if (mw.config.get("wgNamespaceNumber") & ~1 != 2)
return;
var parts = mw.config.get("wgPageName").split("/", 1).split(":");
parts.shift();
var user = mw.util.wikiUrlencode(parts.join(":"));
var url = mw.util.getUrl("Special:CentralAuth/" + user);
mw.util.addPortletLink(
"p-tb",
url,
"SUL info",
"t-sulinfo",
"Show global user account info"
);
});
// Nav popups
window.popupFixDabs = true;
// </nowiki>
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.
**DISCLAIMER** We are not affiliated with Wikipedia, and Cloudflare.
The information presented on this site is for general informational purposes only and does not constitute medical advice.
You should always have a personal consultation with a healthcare professional before making changes to your diet, medication, or exercise routine.
AI helps with the correspondence in our chat.
We participate in an affiliate program. If you buy something through a link, we may earn a commission 💕
↑