
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 35: | Line 35: | ||
$(“#xtools”).css(“justify-content”, “flex-end”); |
$(“#xtools”).css(“justify-content”, “flex-end”); |
||
$(“#xtools”).css(“flex-wrap”, “wrap”); |
$(“#xtools”).css(“flex-wrap”, “wrap”); |
||
|
$(“#”).($(“#”)); |
Latest revision as of 00:11, 29 January 2025
// Citations menu
mw.util.addPortlet("p-cite", "Citations", "#p-tb");
// Adds link to fill in references with ReFill.
var link = "https://refill.toolforge.org/ng/result.php?page=" +
mw.config.get("wgPageName") +
"&wiki=en&method-wiki=Fix%20page&addblankmetadata=on&noaccessdate=on";
mw.util.addPortletLink("p-cite", link, "ReFill", "t-refill", "Fill references with ReFill");
// Move citation tools to portlet
$("#t-refrenamer").insertAfter("#t-refill");
//$("#ca-RefCon").insertAfter("#t-refill"); doesn't work :/
// move special pages link
$("#t-specialpages").insertAfter("#n-recentchanges");
// not useful
$("#wbc-editpage").hide();
$("#t-urlshortener-qrcode").hide();
$("#t-urlshortener").hide();
$("#t-cite").hide(); // hide button to cite the article I'm on
// subtitle
$("#siteSub").contents().filter(function(){return this.nodeType==3;}).remove(); // Remove "from Wikipedia" subtitle
$("#p-lang-btn").insertBefore($("#vector-user-links-dropdown"));
const topicons =
$("#bodyContent > div.vector-body-before-content > div.mw-indicators");
topicons.prepend($("#mw-indicator-user-info-popup-indicator"));
topicons.insertAfter($("#firstHeading")); // Move topicons
$("#p-pbar").append(topicons);
const pbar = document.getElementById("#p-pbar");
$("#siteSub").css("display", "flex");
$("#siteSub").css("justify-content", "space-between");
$("#siteSub").append($("#xtools"));
$("#xtools").css("justify-content", "flex-end");
$("#xtools").css("flex-wrap", "wrap");
$("#sdh").insertAfter($("#xtools"));