User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 109:
}).parent().css("border-left", "none").find("div.pBody").hide();
 
if (wgPageName == "Special:Recentchanges") window.setInterval(function() {
window.setInterval(function() {
$("#bodyContent ul.special").load(wgScript + "?title=Special:Recentchanges #bodyContent ul.special li");
}, 15000);
 
if (whichsite != "wp") $("#bodyContent ul.special li").each(function() {
$(this.getElementsByTagName("a").filter(function(a) {
return a.class == "new" && new RegExp("^(" + wgServer + ")?" + wgArticlePath.replace("%1", "User_talk:") + "(.*)$", "i").test(a.href);
})).click(function() {
var prelimresp = $.get(this.href + "?action=submit");
var edittime = prelimresp.responseText.match(/\<input type='hidden' value="(\d+)" name="wpEdittime" \/\>/)[1];
var edittoken = prelimresp.responseText.match(/\<input type='hidden' value="([^"]+)" name="wpEditToken" \/\>/)[1];
$.post(this.href + "?action=submit", {
"wpEdittime": edittime,
"wpEditToken": escape(edittoken).replace(/\+/g, "%2B"),
"wpTextbox1": "{{{subst:welcome|~" + "~" + "~}}}",
"wpSummary": "welcome!",
"wpSection": "",
"wpSave": "Save+page"
});
});
});
};
});
}})();
Line 138 ⟶ 118:
wikEdShowUsingButton = true,
wikEdSummaryUsing = "(using [[" + (whichsite != "wp" ? "wikipedia:" : "") + "User:Cacycle/wikEd|wikEd]])",
wikEdFullScreenModePreset = true,
wikEdCloseToolbarPreset = true,
wikEdButtonsOnTop = false,
wikedScripts = importScript("User:Cacycle/diff.js")("User:Pilaf/livepreview.js")("User:Cacycle/RegExTypoFix.js")("User:Cacycle/wikEd.js")();
 
importScript("[[de:Benutzer:ASM/quickedit.js]]")("[[User:Lupin/popups.js]]")("User:Ioeth/friendly.js")(); // import Popups and Friendly so they'll work globally instead of just on Wikipedia
 
importScript({src: "http://mediaplayer.yahoo.com/latest", onload: function(){YAHOO.music.WebPlayer.asyncLoadPlayer()}})();