m (+) Tag: sourceedit |
m (fixes) Tag: sourceedit |
||
Line 3: | Line 3: | ||
type: "script", |
type: "script", |
||
articles: [ |
articles: [ |
||
− | "w:dev:AjaxRC/code.js", |
+ | "w:dev:MediaWiki:AjaxRC/code.js", |
"w:vstf:User:Joeyaa/wham.js" |
"w:vstf:User:Joeyaa/wham.js" |
||
] |
] |
||
}); |
}); |
||
− | importScriptPage('ReplyBottom/code.js', 'dev'); |
+ | importScriptPage('MediaWiki:ReplyBottom/code.js', 'dev'); |
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript'); |
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript'); |
||
Line 47: | Line 47: | ||
// WARNING NSFW language |
// WARNING NSFW language |
||
− | var torusPings = '{"#global":{"enabled":true,"alert":"Activity!","interval":500,"beep":true,"sound":"http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg","regex":[],"literal":["ransomtime","fuck","dick","shit","cunt","wanker","vstf","shut up","fag","!awooga","gay","homo"]},"community":{"enabled":true,"alert":"Activity!","interval":500,"beep":true,"sound":"http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg","regex":[],"literal":[]}}' |
+ | var torusPings = '{"#global":{"enabled":true,"alert":"Activity!","interval":500,"beep":true,"sound":"http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg","regex":["[A-Z]{10,}"],"literal":["ransomtime","fuck","dick","shit","cunt","wanker","vstf","shut up","fag","!awooga","gay","homo"]},"community":{"enabled":true,"alert":"Activity!","interval":500,"beep":true,"sound":"http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg","regex":[],"literal":[]}}' |
window.localStorage.setItem('torus-pings', torusPings); |
window.localStorage.setItem('torus-pings', torusPings); |
Revision as of 18:36, 12 January 2016
importScriptURI('http://janitor.wikia.com/index.php?title=User:RansomTime/scripts.js&action=raw&ctype=text/javascript');
importArticles({
type: "script",
articles: [
"w:dev:MediaWiki:AjaxRC/code.js",
"w:vstf:User:Joeyaa/wham.js"
]
});
importScriptPage('MediaWiki:ReplyBottom/code.js', 'dev');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript');
var changeLogoLink = function() {
$('#p-logo a').attr('href', '/wiki/Special:RecentChanges');
};
addOnloadHook(changeLogoLink);
addPortletLink( 'p-navigation', 'http://community.wikia.com/wiki/Special:PhalanxStats/wiki/' + wgCityId, 'Wiki Phalanx Stats' );
addPortletLink( 'p-navigation', '/wiki/Special:MultiDelete/', 'MultiDelete' );
if (typeof wgWikiaChatWindowFeatures !== "undefined") {
addPortletLink( 'p-navigation', '/wiki/Special:Chat?useskin', 'Chat' );
}
// Changes WikiaContributer to IP in Article Comments
// @Author Rappy
$('#WikiaArticleComments .edited-by a[href*="/wiki' + '/Special:Contributions"]').each(function() { $(this).html(this.href.substring(this.href.lastIndexOf('/') + 1)); });
// Handles special pages in monobook that that are "available only in Wikia skin"
var monobookSpecialPageHandler = function() {
if (skin === "monobook") {
if ((window.location.href.endsWith("Special:Chat")) ||
(window.location.href.endsWith("Special:CSS")) ||
(window.location.href.endsWith("Special:WikiFeatures"))) {
window.location.href = window.location.href + "?useskin=Wikia";
}
if (window.location.href.endsWith("Special:WikiActivity")) {
window.location.href = "/wiki/Special:RecentChanges";
}
}
};
addOnloadHook(monobookSpecialPageHandler);
// I use a lot of browsers - porting around Torus pings are a pain
// WARNING NSFW language
var torusPings = '{"#global":{"enabled":true,"alert":"Activity!","interval":500,"beep":true,"sound":"http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg","regex":["[A-Z]{10,}"],"literal":["ransomtime","fuck","dick","shit","cunt","wanker","vstf","shut up","fag","!awooga","gay","homo"]},"community":{"enabled":true,"alert":"Activity!","interval":500,"beep":true,"sound":"http://images.wikia.com/monchbox/images/0/01/Beep-sound.ogg","regex":[],"literal":[]}}'
window.localStorage.setItem('torus-pings', torusPings);