User:Year2000Prob/monobook.js: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 39:
// End importScript function. Copy below this line at your own risk.
 
var whichsite; = ({ // define whichsite (string: "wp" if on Wikipedia, "hrw" if on HRWiki; "hrfw" if on HRFWiki)
"http://en.wikipedia.org": "wp",
switch (wgServer) {
case "http://enwww.wikipediahrwiki.org":whichsite= "wphrw";break;,
case "http://wwwfanstuff.hrwiki.org":whichsite= "hrwhrfw";break;
switch (wgServer}) {[wgServer];
case "http://fanstuff.hrwiki.org":whichsite="hrfw";break;
};
 
importScript.namespaces = {"#default": "http://{{{lang|en}}}.wikipedia.org/w/index.php?title={{{src}}}&action=raw&ctype=text/{{{isCSS|css|javascript}}}"};
Line 50 ⟶ 49:
var Y2P = new Object();
importScript({src: "User:Year2000Prob/Y2P.MediaWiki.js", onload: function() {
window._onload = window.onload;
Y2P.AddPortletItem({
window.onload = function() {
text: "Chat channels",
if (typeof window._onload == "function") window._onload.apply(this, arguments);
url: "irc://irc.freenode.net/" + (whichsite == "wp" ? "wikipedia" : "hrwiki,hrwiki-fanstuff"),
Y2P.AddPortletItem({
id: "n-ircchannels",
text: "Chat channels",
overwrite: (whichsite == "wp" ? null : "n-wikilink3"),
addTo url: "irc://irc.freenode.net/" + (whichsite == "wp" ? "p-interactionwikipedia" : null"hrwiki,hrwiki-fanstuff"),
id: "n-ircchannels",
})({
overwrite: (whichsite == "wp" ? null : "n-wikilink3"),
text: "Is this page valid XHTML?",
addTo: (whichsite == "wp" ? "p-interaction" : null)
url: "http://validator.w3.org/check?uri=" + encodeURIComponent(___location),
id: "f-valid",})({
text: "Is this page valid XHTML?",
addTo: "footer"
url: "http://validator.w3.org/check?uri=" + encodeURIComponent(___location),
})();
id: "caf-purgevalid",
if (wgNamespaceNumber != -1) Y2P.AddPortletItem({
text addTo: "purgefooter",
})({);
url: wgScript + "?title=" + wgPageName + "&action=purge",
if (wgNamespaceNumber != -1) Y2P.AddPortletItem({
id: "ca-purge",
addTo text: "p-cactionspurge",
url: wgScript + "?title=" + wgPageName + "&action=purge",
})();
id: "nca-alertbuttonpurge",
if (whichsite == "hrfw") Y2P.AddPortletItem({
addTo: "footerp-cactions"
text: "Sysop Alert Button",
})();
url: "http://alert.clamburger.org/",
if (whichsite == "hrfw") Y2P.AddPortletItem({
id: "n-alertbutton",
before text: "n-usersguideSysop Alert Button",
url: "http://alert.clamburger.org/",
})();
id: "n-wikilink1.5alertbutton",
if (whichsite != "wp") Y2P.AddPortletItem({
before: "n-usersguide"
text: "Wiki User Wiki",
})();
url: "http://www.clamburger.org/wuw/",
if (whichsite != "wp") Y2P.AddPortletItem({
id: "n-wikilink1.5",
before text: "n-wikilink2Wiki User Wiki",
url: "http://www.clamburger.org/wuw/",
})();
id: "n-wikilink1.5",
before: "n-wikilink2"
})();
 
Y2P.ChangeActions({
"nstab-main": "boring fanstuff",
"nstab-user": "stupid parson",
"nstab-project": "don't leave without reading this",
"nstab-template": "it's just a skeleton, crapface",
"nstab-reviews": "be an infamous critic",
"talk": "yap yap yap",
"edit": "vandalise this page",
"viewsource": "can't touch this",
"history": "in 1788, australia was born...",
"move": "got a better commando name?",
"watch": "stalk",
"watching": "adding to list of stalked people...",
"unwatch": "stop stalking",
"unwatching": "removing from list of stalked people...",
"purge": "do not press this"
});
};
}})({src: "http://code.jquery.com/jquery-latest.pack.js", onload: function() {
$(function() {