User:JPxG/refill-menu.js

// Adds context menu to fill in references with ReFill. addOnloadHook(function {		// var title = window.location.href.replaceAll("https://en.wikipedia.org/wiki/","").replaceAll("https://en.wikipedia.org/w/index.php?title=","");		var title = document.title.replaceAll(" - Wikipedia","");		// var linkstring = "https://refill.toolforge.org/?page=" + title + "&wiki=en";		var linkstring = "https://refill.toolforge.org/ng/result.php?page=" + title + "&wiki=en&method-wiki=Fix%20page&addblankmetadata=on&noaccessdate=on"		mw.util.addPortletLink("p-cactions", linkstring, "ReFill", "ca-ReFill", "Fill references with ReFill", ""); }); // onloadhook //