User:Guycn2/EditUsingSandbox.js

(function {	"use strict";	if ( mw.config.get("wgAction") !== "edit" || mw.config.get("wgPageContentModel") !== "wikitext" || !$("#wpTextbox1").length || $("#wpSaveWidget").length ) {		return;	}	mw.loader.using("mediawiki.util", function { $(" ").append(			$("", { title: "Edit this page using a personal sandbox", text: "Edit using sandbox", href: mw.util.getUrl("User:" + mw.config.get("wgUserName") + "/Sandbox for tests", {					action: "edit",					preload: mw.config.get("wgPageName")				}) })		).insertBefore("#wpTextbox1"); }); });