User:AttemptToCallNil/common.js

$(function {		var title_parts = $("#firstHeading").text.match(/^(.*?)([0-9]+)$/);		var old_title = title_parts[1] + title_parts[2];		var new_title = title_parts[1] + (parseInt(title_parts[2], 10) + 1).toString;		$("#firstHeading").append( $('Move!').on("mousedown.atcn-test", function(e) {				new mw.Api.postWithEditToken({ "action": "move", "from": old_title, "to": new_title, "noredirect": true });				window.location = "https://wikisandbox.gamepedia.com/" + new_title;			}) ); });