User:Fij30jigh110/global.js

/* Imports */ importArticles({   type: 'script',    articles: [        'u:rhythmheaven:MediaWiki:Wikia.js/editCount.js',        'u:c:User:Monchoman45/ChatHacks.js',        'u:c:User:Killian_Jones/SpecialCSS.js'    ] });

importScriptPage('Message/code.js', 'dev'); importScriptPage('ChatReload/code.js', 'dev'); importScriptPage('NoImageLightbox/code.js', 'dev'); importScriptPage('View_Source/code.js', 'dev'); importScriptPage('WHAM/code.js', 'dev'); importScriptPage('OldFilePages/code.js', 'dev'); importScriptPage('AutoEditDropdown/code.js', 'dev'); importScriptPage('NullEditButton/code.js', 'dev'); importScriptPage('VisualSpellCheck/code.js', 'dev'); importScriptPage('ListFiles/code.js', 'dev'); importScriptPage('PortableCSSPad/code.js', 'dev'); importScriptPage('FastOldImageDelete/code.js', 'dev'); importScriptPage('HideRail/code.js', 'dev'); importScriptPage('Thread Inspection/code.js', 'dev'); importScriptPage('CacheCheck/code.js', 'dev'); importScriptPage('AjaxEmoticons/code.js', 'dev'); importScriptPage('UserRightsRecord/code.js', 'dev'); importScriptPage('QQX/code.js', 'dev'); importScriptPage('SearchSuggest/code.js', 'dev'); importScriptPage('PersistentParameters/code.js', 'dev'); importScriptPage('FileUsageAuto-update/code.js', 'dev'); importScriptPage('RedirectManagement/code.js', 'dev'); importScriptPage('AjaxDiff/code.js', 'dev'); importScriptPage('CleanWantedFiles/code.js', 'dev'); importScriptPage('CategoryRenameAuto-update/code.js', 'dev'); importScriptPage('MessageBlocker/code.js', 'dev'); importScriptPage('ChatBlockButton/code.js', 'dev'); importScriptPage('QuickComments/code.js', 'dev');

/* AWB link */ $( '.wordmark a' ).attr( 'href', 'http://www.onceuponatime.wikia.com/wiki/Project:AutoWikiBrowser/Script?useskin=monobook#AWBload' );

/* Advanced Oasis */ window.AdvancedOasisUI = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, lightbox: true, activity2RC: false, userLang: true, }; importScriptPage('AdvancedOasisUI/code.js', 'dev'); /* Auto Wiki Browser */ importScriptURI('//en.wikipedia.org/w/index.php?title=User:Joeytje50/AWB.js/load.js&action=raw&ctype=text/javascript');

/* AjaxUndo */ /** * Ajax Undo links * * Adds an Ajax undo link next to the normal undo link on page histories * and on diff pages * * @author Grunny * @version 0.2 * */ jQuery(document).ready( function ( $ ) {	"use strict";	function createUndoLink( diffUndoUrl ) {		var $ajaxUndoLink = $( '' ).text( 'revert' ).attr( 'href', '#' ).click( function { var	$ajaxUndoLinkob = $( this ), undoIdRegex = /&undo=([^&]*)/, undoId = undoIdRegex.exec( diffUndoUrl )[1], editToken, etUrl = wgServer + wgScriptPath + '/api.php?action=query&prop=info|revisions&intoken=edit&titles=' + encodeURIComponent( wgPageName ) + '&format=json'; $ajaxUndoLinkob.html( ' ' ); $.getJSON( etUrl, function ( data ) {				editToken = data.query.pages[wgArticleId].edittoken;				$.ajax( { url: wgScriptPath + '/api.php?', data: 'action=edit&format=json&title=' + encodeURIComponent( wgPageName ) + '&undo=' + encodeURIComponent( undoId ) + '&bot=1&token=' + encodeURIComponent( editToken ), dataType: 'json', type: 'POST', success: function ( data ) { if ( data.edit && data.edit.result === 'Success' ) { $ajaxUndoLinkob.text( '(undone)' ); } else if ( data.error && data.error.code === 'undofailure' ) { $ajaxUndoLinkob.text( '(error)' ); alert( data.error.info ); } else { $ajaxUndoLinkob.text( '(error)' ); alert( 'Error: Unknown result from API.' ); }					},					error: function { $ajaxUndoLinkob.text( '(error)' ); }				} );			} );		} );		return $ajaxUndoLink;	}	if ( $( '.mw-history-undo > a' ).length && wgAction === 'history' ) {		$( '.mw-history-undo > a' ).each( function { var	diffUndoUrl = $( this ).attr( 'href' ), $ajaxUndoLink = createUndoLink( diffUndoUrl ); $( this ).parent.after( ' | ', $ajaxUndoLink ); } );	} else if ( $( 'table.diff' ).length && typeof $.getUrlVar( 'diff' ) !== 'undefined' ) {		var	$diffUndoLink = $( 'table.diff' ).find( '.diff-ntitle > #mw-diff-ntitle1 a:last' ),			diffUndoUrl = $diffUndoLink.attr( 'href' ),			$ajaxDiffUndoLink = createUndoLink( diffUndoUrl );		$diffUndoLink.parent.append( ' (', $ajaxDiffUndoLink, ')' );	} } ); //

//http://community.wikia.com/index.php?title=User:2Actimv/ChocolateChatSkin.css//