User:©TriMoon™/global.js

/********** WikEd switch(wgDBname){ // Selective disable case "shopheroes": break; default: // install wikipedia:User:Cacycle/wikEd in-browser text editor importScriptURI("http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Cacycle/wikEd.js");

// Change the presets of the toggle buttons in the wikEd control bar: var wikEdConfig = { 'useWikEdPreset': true, 'highlightSyntaxPreset': false, 'closeToolbarPreset': false, // Display a button to automatically append "…using wikEd" (or another text) to the edit summaries: 'showUsingButton': true, 'usingPreset': true, 'summaryUsing': '', // 'summaryUsing': 'Dropping A-Bom on Charitwo's head. come fucking change this!', 'refHidePreset': false, 'diffPreset': false, 'fullScreenModePreset': false, // Change the history lengths: 'historyLength': { 'find': 15, 'replace': 15, 'summary': 20 } };

// Disable ctrl-clickable followable links in edit text: //var wikEdFollowLinks = false;

// Add your own summary presets: wikEdConfig.comboPresetOptions = {}; wikEdConfig.comboPresetOptions.summary = [ 'Initial Setup', 'Moving into sub-tree', 'Layout editorial', 'Added Category', 'Changed Category', 'Linkified words', 'my reply', 'linkfix', 'fixing typos', 'removing linkspam', 'reverting test', 'reverting vandalism', 'Code-Cleanup', 'Code-Fixup', 'formatting source text', 'Copy-over from w:c:templates', 'Updated to latest version on w:c:templates', '{wikEdUsing}' ];

/* My addition to enable per-site config changes */ if( typeof(wikEdConfigSite) == 'undefined' ){ var wikEdConfigSite = {}; wikEdConfigSite["wikicities"] = true; } /* per site use: * if( typeof(wikEdConfigSite[wgDBname]) == 'undefined' ){ wikEdConfigSite[wgDBname] = true; wikEdConfig.comboPresetOptions.summary.push("--new text--"); }
 * per site use: */

/* My addition to enable per-site config changes */ } /********** /WikEd

/********** Wikipedia:Tools/Navigation popups switch(wgDBname){ // Selective disable case "shopheroes": break; default: // wikipedia:User:Lupin/popups importScriptURI("http://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Lupin/popups.js"); popupStructure='menus'; popupDelay=1.5; popupPreviewKillTemplates=false; } /********** /Wikipedia:Tools/Navigation popups

/********** Purgetab switch(wgDBname){ // Selective disable case "shopheroes": break; default: // w:c:dev:Purgetab if(!window.PurgeButtonsLoaded) importScriptPage('Purgetab/code.js', 'dev'); } /********** /Purgetab

/********** Skinswitch switch(wgDBname){ // Selective disable default: // w:c:dev:SkinSwitchButton importScriptPage('SkinSwitchButton/code.js', 'dev'); } /********** /Skinswitch

/********** TabView Edit Buttons See: http://deadisland.wikia.com/wiki/Thread:20621#8 // Preconfig window.JSExtensionConfig = window.JSExtensionConfig || {}; window.JSExtensionConfig.TabViewEditButtons = window.JSExtensionConfig.TabViewEditButtons || {}; window.JSExtensionConfig.TabViewEditButtons.defaultMode = 'vde'; // 'edit', 'vde', 'none'

// ************************************************** // Start Javascript Libraries // **************************************************

+function(t,e,o,n,i){ function r(t){ var e=t[b], o=typeof e;		if(o==w) try{ j.push(e) }catch(n){} try{ t[b]=i }catch(n){} try{ delete t[b], t[b]=i }catch(n){} return"boolean"==o }	function c{ $=m; for(var t,e=0;j.length>0&&100>e;){ e++,t=j[0],j[0]=i,j.splice(0,1); try{ t }catch(o){ n(o) }		}	}	function f(t){ try{ if(				t.displayName==g				||t.name==g				||h!=typeof t.$				&&h!=typeof t.$$				&&h!=typeof t.addStyle				&&h!=typeof t.addScript			) return m		}catch(e){} return!1 }	function a{ return $ }	function u(t){ var e=typeof t,			o=e==w, n=t===!0; if(o||"object"==e||n) if(n||f(t)) c; else if(o) if($) try{ t }catch(i){} else j.push(t) }	function l(o){ o=o||1, y=typeof wikiMod!==h?wikiMod:t[g]||e[g]; try{ if(				!$				&&!y				&&35>o			) return setTimeout(function(t){								l((t||o)+1)							},20,o) }catch(n){} c }	var y,		p, d, s, h="undefined", w="function", g="wikiMod", b="onWikiModReady", m=!0, v=!1, M=o.defineProperty, W=h!=typeof exportFunction?exportFunction:i, $=!1,		j=[], C={ allowCallbacks:m, allowCrossOriginArguments:m };	if(		r(t)		&&!d		&&(d=t),		r(e)		&&!d		&&(d=e),		d	) for(s=0;s<j.length;s++) try{ d[b]=j[s] }catch(S){} else{ p={ get:a, set:u, enumerable:m, configurable:v };		try{ M(t,b,p) }catch(S){ n(S) }		if(h==typeof e[b]) try{ M(e,b,p) }catch(S){ n(S) }		l } }(this,window,Object,console.log);

importScriptPage('User:Jgjake2/js/wikiMod.min.js', 'deadisland');

// Read a page's GET URL variables and return them as an associative array. - jgjake2 function getUrlVars { var vars = [], hash, hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'), i = 0; for (i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; }   return vars; }

window.JSExtensionConfig = window.JSExtensionConfig || {};

var diURLVars = getUrlVars; var tmpjsextcfg;

if(diURLVars.jsextcfg){ try { tmpjsextcfg = JSON.parse(unescape(diURLVars.jsextcfg)); } catch(e) { tmpjsextcfg = {}; }	$.extend(true, window.JSExtensionConfig, tmpjsextcfg); }

// ************************************************** // wikiMod Dependant Scripts // **************************************************

window.JSExtensionConfig.TabViewEditButtons = window.JSExtensionConfig.TabViewEditButtons || {}; window.JSExtensionConfig.TabViewEditButtons.version = 'beta'; // Forces beta script to load. Remove this line to use production version. // Tab View Edit Buttons Loader !(function(TabViewEditButtonsCfg){	var JS_Version,		TabViewEditButtons_JSEnabled = true;

// Do not load while debugging local code if(TabViewEditButtonsCfg){ try { if(TabViewEditButtonsCfg.disable) return;

JS_Version = TabViewEditButtonsCfg.jsVersion || TabViewEditButtonsCfg.version;

if(TabViewEditButtonsCfg.jsDisable) TabViewEditButtons_JSEnabled = false; } catch(e) {} }

if(TabViewEditButtons_JSEnabled){ importScriptPage('User:Jgjake2/js/TabView_Edit_Buttons' + (JS_Version ? '-' + escape(JS_Version) : '') + '.js', 'deadisland'); } })(window.JSExtensionConfig.TabViewEditButtons); /********** /TabView Edit Buttons