User:Joeytje50/wikia.js

var Konami = function { var konami= { addEvent:function ( obj, type, fn, ref_obj ) {				if (obj.addEventListener) obj.addEventListener( type, fn, false ); else if (obj.attachEvent) {					// IE					obj["e"+type+fn] = fn; obj[type+fn] = function { obj["e"+type+fn]( window.event,ref_obj ); } obj.attachEvent( "on"+type, obj[type+fn] ); }			},	       input:"", pattern:"707313", load: function(link) { this.addEvent(document,"keydown", function(e,ref_obj) {																if (ref_obj) konami = ref_obj; // IE					konami.input+= e ? e.keyCode : event.keyCode;					if (konami.input.length > konami.pattern.length) konami.input = konami.input.substr((konami.input.length - konami.pattern.length));					if (konami.input == konami.pattern) {                   konami.code(link);					konami.input="";                   	return;                    }            	},this); this.iphone.load(link) },	       code: function(link) { window.location=link}, iphone:{ start_x:0, start_y:0, stop_x:0, stop_y:0, tap:false, capture:false, orig_keys:"", keys:["F","I"], code: function(link) { konami.code(link);}, load: function(link){ orig_keys = this.keys; konami.addEvent(document,"touchmove",function(e){	                         if(e.touches.length == 1 && konami.iphone.capture==true){ 	                            var touch = e.touches[0]; 	                                konami.iphone.stop_x = touch.pageX;	                                konami.iphone.stop_y = touch.pageY;	                                konami.iphone.tap = false; 	                                konami.iphone.capture=false;	                                konami.iphone.check_direction;	                                }	                                }); konami.addEvent(document,"touchend",function(evt){	                               if (konami.iphone.tap==true) konami.iphone.check_direction(link);           	                                },false); konami.addEvent(document,"touchstart", function(evt){	                               konami.iphone.start_x = evt.changedTouches[0].pageX	                                konami.iphone.start_y = evt.changedTouches[0].pageY	                                konami.iphone.tap = true	                                konami.iphone.capture = true	                                }); },	               check_direction: function(link){ x_magnitude = Math.abs(this.start_x-this.stop_x) y_magnitude = Math.abs(this.start_y-this.stop_y) x = ((this.start_x-this.stop_x) < 0) ? "RIGHT" : "LEFT"; y = ((this.start_y-this.stop_y) < 0) ? "DOWN" : "UP"; result = (x_magnitude > y_magnitude) ? x : y; result = (this.tap==true) ? "TAP" : result; if (result==this.keys[0]) this.keys = this.keys.slice(1,this.keys.length) if (this.keys.length==0) { this.keys=this.orig_keys; this.code(link) }	                       }	                }	}	return konami; }       konami = new Konami konami.load("http://runescape.wikia.com/wiki/RuneScape:Featured_images");

var Konami = function { var konami= { addEvent:function ( obj, type, fn, ref_obj ) {				if (obj.addEventListener) obj.addEventListener( type, fn, false ); else if (obj.attachEvent) {					// IE					obj["e"+type+fn] = fn; obj[type+fn] = function { obj["e"+type+fn]( window.event,ref_obj ); } obj.attachEvent( "on"+type, obj[type+fn] ); }			},	       input:"", pattern:"80777013", load: function(link) { this.addEvent(document,"keydown", function(e,ref_obj) {																if (ref_obj) konami = ref_obj; // IE					konami.input+= e ? e.keyCode : event.keyCode;					if (konami.input.length > konami.pattern.length) konami.input = konami.input.substr((konami.input.length - konami.pattern.length));					if (konami.input == konami.pattern) {                   konami.code(link);					konami.input="";                   	return;                    }            	},this); this.iphone.load(link) },	       code: function(link) { window.location=link}, iphone:{ start_x:0, start_y:0, stop_x:0, stop_y:0, tap:false, capture:false, orig_keys:"", keys:["P","M","F"], code: function(link) { konami.code(link);}, load: function(link){ orig_keys = this.keys; konami.addEvent(document,"touchmove",function(e){	                         if(e.touches.length == 1 && konami.iphone.capture==true){ 	                            var touch = e.touches[0]; 	                                konami.iphone.stop_x = touch.pageX;	                                konami.iphone.stop_y = touch.pageY;	                                konami.iphone.tap = false; 	                                konami.iphone.capture=false;	                                konami.iphone.check_direction;	                                }	                                }); konami.addEvent(document,"touchend",function(evt){	                               if (konami.iphone.tap==true) konami.iphone.check_direction(link);           	                                },false); konami.addEvent(document,"touchstart", function(evt){	                               konami.iphone.start_x = evt.changedTouches[0].pageX	                                konami.iphone.start_y = evt.changedTouches[0].pageY	                                konami.iphone.tap = true	                                konami.iphone.capture = true	                                }); },	               check_direction: function(link){ x_magnitude = Math.abs(this.start_x-this.stop_x) y_magnitude = Math.abs(this.start_y-this.stop_y) x = ((this.start_x-this.stop_x) < 0) ? "RIGHT" : "LEFT"; y = ((this.start_y-this.stop_y) < 0) ? "DOWN" : "UP"; result = (x_magnitude > y_magnitude) ? x : y; result = (this.tap==true) ? "TAP" : result; if (result==this.keys[0]) this.keys = this.keys.slice(1,this.keys.length) if (this.keys.length==0) { this.keys=this.orig_keys; this.code(link) }	                       }	                }	}	return konami; }       konami = new Konami konami.load("http://runescape.wikia.com/wiki/User:Parsonsda/Project_Myface");

/*** BEGIN TEMPLATES SCRIPT ***/ //

/* For help with this script, visit http://runescape.wikia.com/wiki/User:Quarenon/Scripts/Templates */

var toolbarTemplates = []; var toolbarFillSummary = 1; var toolbarFillHeader = 1;

// Add custom templates here

toolbarTemplates.push({ name: 'Vandalism', ns: 'User talk', open: ' ~', sample: '' }); toolbarTemplates.push({ name: 'Welcome', ns: 'User talk', open: , sample:  });

/* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/templates.js');

// /*** END TEMPLATES SCRIPT ***/

/*** BEGIN AUTO CVU SCRIPT ***/

// Enables automatic submission of edits. Change to 0 to disable. var autoCvuSubmit = 1;

/* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/autocvu.js');

/*** END AUTO CVU SCRIPT ***/

/*** BEGIN QUICK PREVIEW SCRIPT ***/

/* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/quickpreview.js');

/*** END QUICK PREVIEW SCRIPT ***/

/*** BEGIN EDIT REPORT SCRIPT ***/

/* DO NOT EDIT THIS LINE! */ importScript('User:Quarenon/editreport.js');

/*** END EDIT REPORT SCRIPT ***/