Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* get all personal code files in chat */
/* Important: you must click the chat button in the rail for this to work. */
/* Very important: Chat is still a beta feature. Chat hacks may break as the feature is changed and updated, as it is a work in progress. */
$(setTimeout('ChatCheck()', 200));
function ChatCheck() {
if($('.chat-join button').length != 0) {
$('.chat-join button').replaceWith('<a class="wikia-button" onclick="OpenChatWindow()"><img src="http://images.wikia.com/common/__cb36140/extensions/wikia/Chat/images/chat_icon.png" style="margin-right:3px;">Join the Chat</a>');
} else {
setTimeout('ChatCheck()', 200);
}
}
function OpenChatWindow() {
window.chatwindow = window.open('/index.php?title=Special:Chat&useskin=wikia');
window.chatwindow.onload = function () {
//addOnloadHook, importScript, and importStylesheet
window.chatwindow.$('body').prepend('<script>\nfunction importScript(b){var a=wgScript+"?title="+encodeURIComponent(b.replace(/ /g,"_")).replace(/%2F/ig,"/").replace(/%3A/ig,":")+"&action=raw&ctype=text/javascript";return importScriptURI(a)}\nfunction importScriptURI(a){var b=document.createElement("script");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(b);return b}\nfunction importScriptPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/javascript";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importScriptURI(a)}\nfunction importStylesheet(a){return importStylesheetURI(wgScript+"?action=raw&ctype=text/css&title="+encodeURIComponent(a.replace(/ /g,"_")))}\nfunction importStylesheetURI(b,d){var a=document.createElement("link");a.type="text/css";a.rel="stylesheet";a.href=b;if(d){a.media=d}document.getElementsByTagName("head")[0].appendChild(a);return a}\nfunction importStylesheetPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/css";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importStylesheetURI(a)}\n//This isn\'t the same as the regular addOnloadHook, because the regular one runs from a script tag in the body that I don\'t feel like appending. It\'s easier to just make it $(function), which is essentially equivalent\nfunction addOnloadHook(func) {$(func);}\n</script>');
//global.js
window.chatwindow.importScriptURI('http://community.wikia.com/index.php?title=User:' + wgUserName + '/global.js&action=raw&ctype=text/javascript');
//wikia.js
window.chatwindow.importScriptURI(wgServer + '/index.php?title=User:' + wgUserName + '/wikia.js&action=raw&ctype=text/javascript');
//global.css
window.chatwindow.importStylesheetURI('http://community.wikia.com/index.php?title=User:' + wgUserName + '/global.css&action=raw&ctype=text/css');
//wikia.css
window.chatwindow.importStylesheetURI(wgServer + '/index.php?title=User:' + wgUserName + '/wikia.css&action=raw&ctype=text/css');
//These are my chat hacks. If you don't want them, you can delete this line.
window.chatwindow.importScriptURI('http://community.wikia.com/index.php?title=User:Monchoman45/ChatHacks.js&action=raw&ctype=text/javascript');
}
}
// Refresh Ajax
importScriptPage('MediaWiki:Common.js/ajaxRefresh.js', 'admintools');
//END Refresh Ajax
importScriptPage('FastDelete/code.js', 'dev');
var fdButtons = [];
fdButtons[fdButtons.length] = {
'summary': 'spam',
'label': 'spam'};
fdButtons[fdButtons.length] = {
'summary': 'vandalism',
'label': 'vandal'};
importScriptPage('DupImageList/code.js', 'dev');
// ============================================================
// displayTimer
// ============================================================
// Add a clock to the WikiHeader
// Modified from work by Patrick Westerhoff [poke]:
// http://bulbapedia.bulbagarden.net/wiki/MediaWiki:Monobook.js
hookEvent( 'load', displayTimer );
function displayTimer() {
if ( typeof( timerDisplay ) !== 'undefined' && timerDisplay === false )
return;
var date;
if (skin == 'oasis') {
var timerParent = document.getElementById( 'WikiHeader' ).getElementsByTagName( 'div' )[0];
}
if (skin == 'monobook') {
var timerParent = document.getElementById( 'p-personal' ).getElementsByTagName( 'ul' )[0];
}
var timerLink = document.createElement( 'a' );
var timerObj = document.createElement( 'li' );
timerLink.href = '/wiki/' + wgPageName + '?action=purge';
timerLink.title = 'Purge the server cache and update the contents of this page.'
timerObj.id = 'displayTimer';
timerObj.style.textTransform = 'none';
timerObj.style.fontWeight = 'bold';
timerObj.style.fontSize = '100%';
timerObj.appendChild( timerLink );
timerParent.insertBefore( timerObj, timerParent.firstChild );
if (skin == 'oasis') {
$('#displayTimer').css({'position': "inherit", 'right': "0px", 'top': "-28px"});
}
var month = new Array(12);
month[0] = "Jan";
month[1] = "Feb";
month[2] = "Mar";
month[3] = "Apr";
month[4] = "May";
month[5] = "Jun";
month[6] = "Jul";
month[7] = "Aug";
month[8] = "Sep";
month[9] = "Oct";
month[10] = "Nov";
month[11] = "Dec";
function actualizeUTC() {
timerDate = new Date();
timerLink.innerHTML = ( timerDate.getUTCDate() < 10 ? '0' : '' ) + timerDate.getUTCDate() + ' '
+ ( timerDate.getUTCMonth() < 10 ? '' : '' ) + month[timerDate.getUTCMonth()] + ' '
+ ( timerDate.getUTCFullYear() < 10 ? '0' : '' ) + timerDate.getUTCFullYear() + ' '
+ ( timerDate.getUTCHours() < 10 ? '0' : '' ) + timerDate.getUTCHours() + ':'
+ ( timerDate.getUTCMinutes() < 10 ? '0' : '' ) + timerDate.getUTCMinutes() + ' (UTC)';
}
function actualizeCustom() {
timerDate = new Date();
timerDate.setMinutes( timerDate.getMinutes() + timerDate.getTimezoneOffset() + timerTimezone * 60 );
timerLink.innerHTML = ( timerDate.getDate() < 10 ? '0' : '' ) + timerDate.getDate() + ' '
+ ( timerDate.getMonth() < 10 ? '' : '' ) + month[timerDate.getMonth()] + ' '
+ ( timerDate.getFullYear() < 10 ? '0' : '' ) + timerDate.getFullYear() + ' '
+ ( timerDate.getHours() < 10 ? '0' : '' ) + timerDate.getHours() + ':'
+ ( timerDate.getMinutes() < 10 ? '0' : '' ) + timerDate.getMinutes()
+ ' (UTC' + ( timerTimezone < 0 ? '' : '+' ) + timerTimezone + ')';
}
// start
if ( typeof( timerTimezone ) !== 'number' ) {
actualizeUTC();
setInterval( actualizeUTC, 60000 );
}
else {
actualizeCustom();
setInterval( actualizeCustom, 60000 );
}
}
//test
$('ul.tools li:first-child').after('<li><a href="http://ben10planet.answers.wikia.com/wiki/Ben 10 Answers">Ask a question about Ben 10</a></li>');
/* Adds "purge" option to page controls
* See w:c:dev:PurgeButton for info & attribution
*/
importScriptPage('PurgeButton/code.js', 'dev');
importScriptPage('EditIntroButton/code.js', 'dev');
/* skin change buttons */
function CreateSkinChangeButtons() {
//Oasis buttons
$('div.buttons a:first-child').before('<a style="margin:0 3px 3px 0" href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=monobook" title="Change to Monobook" accesskey="b" class="wikia-button secondary" id="skinChangeButton" data-id="monobookbutton">Monobook</a><a style="margin:0 42px 3px 0" href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=vector" title="Change to Vector" accesskey="v" class="wikia-button secondary" id="skinChangeButton" data-id="vectorbutton">Vector</a>');
//Monobook buttons
$('#p-cactions .pBody ul li:nth-last-child(1)').after('<li id="ca-nstab-main" class="skinChangeTab" style="margin:0 3px 0 36px"><a href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=wikia" title="Change to Oasis [o]" id="skinChangeButton" accesskey="o">Oasis</a></li><li id="ca-nstab-main" class="skinChangeTab"><a href="/index.php?title='+ encodeURIComponent(wgPageName) +'&useskin=vector" title="Change to Vector [v]" id="skinChangeButton" accesskey="o">Vector</a></li>');
}
addOnloadHook(CreateSkinChangeButtons);
importScriptPage('ArchiveTool/code.js', 'dev');
/* Change "A Wikia contributor" to IP address- fandyllic (I believe) */
importScriptPage('MediaWiki:Common.js/ipAnon.js', 'admintools');
/*Custom Edit buttons- (The help page) */
importScriptPage('User:Kangaroopower/global.js/editbuttons.js', 'c');
/* Wham-Joeyaa */
//importScriptPage('User:Kangaroopower/global.js/wham.js', 'c');
/* Moncho's wham */
importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:WhamAPI.js&action=raw&ctype=text/javascript');
/*Custom Rollbacks-Moncho and Grunny */
importScriptPage('User:Kangaroopower/global.js/customrollbacks.js', 'c');
importScriptPage('ShowHide/code.js', 'dev');
importScriptPage('AdvancedOasisUI/code.js', 'dev');
importScriptPage('User:ZamorakO_o/snow.js','runescape');
<script language="javascript">
var sym = " ' ";
var speed = 35;
var angle = 12;
var movex = -speed/angle;
var movey = speed;
var lightning_image = "lightning.gif";
var lightning_width = 128;
var lightning_height = 192;
var num_drops = to_int(screen.width / 60);
var width_indent = 0;
var left_indent = screen.height / 10;
var top_indent = 0;
var doc_left = screen.width * .15;
var doc_top = screen.height * .15;
var doc_width = screen.width * .7;
var doc_height = screen.height * .7;
var doc_clientleft = doc_left + width_indent;
var doc_clienttop = doc_top + top_indent;
var doc_clientwidth = doc_width - (width_indent * 2);
var doc_clientheight = doc_height * .925;
var moverain_timeout = 25;
var movelightning_timeout = 5000;
var increment = (doc_clientwidth - left_indent) / num_drops;
var rainposx = new Array();
function moverain()
{
for(move = 0; move < num_drops; move++)
{
xx[move]+=movex;
yy[move]+=mv[move];
if(xx[move] <= doc_clientleft)
{
yy[move] = 0;
xx[move] = rainposx[move];
}
if(yy[move]+doc_clienttop >= doc_clienttop+doc_clientheight)
{
yy[move] = 0;
xx[move] = rainposx[move];
}
drop[move].left = xx[move];
drop[move].top = yy[move] + doc_clienttop;
}
setTimeout("moverain()", moverain_timeout);
}
function resettext()
{
window.document.searchform.searchvalue.value = 'Search the Web';
window.document.searchform.searchvalue.select();
}
function to_int(n)
{
for(i=0; i<10000; i++)
{
if(n>i && n<i+1)
{
n = i;
i = 10000;
}
else if(n == i)
{
i = 10000;
}
}
return n;
}
function movelightning()
{
var minleft = doc_clientleft;
var maxleft = doc_clientleft + doc_clientwidth - lightning_width;
var totalwidth = maxleft - minleft;
document.all["lightning"].style.left = Math.random() * totalwidth + minleft;
setTimeout("movelightning()", movelightning_timeout);
}
</script>
<!--
This script downloaded from w w w.JavaScriptBank. com
Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
-->