User:Fij30jigh110/global.js

/* Imports */ importArticles({   type: 'script',    articles: [        'u:dev:NoImageLightbox/code.js',        'u:dev:View_Source/code.js',        'u:dev:WHAM/code.js',        'u:dev:OldFilePages/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:NullEditButton/code.js',        'u:dev:VisualSpellCheck/code.js',        'u:dev:ListFiles/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:FastOldImageDelete/code.js',        'u:dev:HideRail/code.js',        'u:dev:Thread Inspection/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:AjaxEmoticons/code.js',        'u:dev:UserRightsRecord/code.js',        'u:dev:QQX/code.js',        'u:dev:SearchSuggest/code.js',        'u:dev:PersistentParameters/code.js',        'u:dev:FileUsageAuto-update/code.js',        'u:dev:RedirectManagement/code.js',        'u:rhythmheaven:MediaWiki:Wikia.js/editCount.js',        'u:c:User:Monchoman45/ChatHacks.js', 'u:c:User:Killian_Jones/SpecialCSS.js' ] });

/* 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//