User:Zhuyifei1999/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
window.vFC_PortletText = 'Visual File Change';
window.VisualFileChangeDebug = true;

window.delReqGlobalUsage = 1;

( function () {
	var mw_loader_using = mw.loader.using;
	mw.loader.using = function ( /* ...args */ ) {
		var p = mw_loader_using.apply( this, arguments );
		p[ 'catch' ]( function ( e ) {
			console.error( e );
		} );
		return p;
	};
}() );

//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"nochange","minor":true,"editpages":true,"docleanup":false,"subcatcount":50};
////////////////////////////////////catALotEnd//
//</nowiki>
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"last executed (auto-saved)":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Physical images that should use vector graphics]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"|physical}}","mdReplaceText1":"|physics}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"|Physical}}","mdReplaceText2":"|Physics}}","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Physical images that should use vector graphics","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|444f55424c45204a554e4354494f4e204320574954482053494e474c45204c4541442e504e470a444f55424c45204a554e4354494f4e204320574954482053494e474c45204c4541442e504e47|16066190"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Physical images that should use vector graphics","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2013-07-05T17:00:12.547Z"},"ltwntd":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"[[Category:Language templates with no text displayed|Language templates with no text displayed]]","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Language templates with no text displayed]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\{\\{(en|de|fr|it|es)\\}\\}((.|\\s)+?)\\n(\\||\\{\\{)/g","mdReplaceText1":"{{$1|1=$2}}\n$4","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/(|Description\\s*=\\s*)\\{\\{(en|de|fr|it|es)(\\|(1=)*)?\\s*\\}\\}\\n\\|/g","mdReplaceText2":"$1\n|","mdRRegEx3":true,"mdRVar3":true,"mdMatchText3":"/\\{\\{(en|de|fr|it|es)\\|(?:1=)*((.|\\s)+?)\\}\\}\\n(\\||\\{\\{)/g","mdReplaceText3":"{{$1|1=$2}}\n$4","mdRRegEx4":false,"mdRVar4":true,"mdMatchText4":"","mdReplaceText4":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Language templates with no text displayed","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4e4152495441414952504f5254205445524d494e414c322e4a5047|22785104"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Language templates with no text displayed","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4e4152495441414952504f5254205445524d494e414c322e4a5047|22785104"],"setVals":["cmcontinue"]},"time":"2014-08-16T01:36:18.363Z"},"PDOLD":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Fix usage of PD-old","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:PD-Art (PD-Old-70)]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/pd-old/ig","mdReplaceText1":"PD-old","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:PD-Art (PD-Old-70)","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:PD-Art (PD-Old-70)","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2013-08-27T10:35:32.606Z"},"temp":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Pages using Book template with incorrect parameter]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":false,"mdRVar1":true,"mdMatchText1":"{{Book","mdReplaceText1":"{{Information","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/(\\|Author=\\*\\[\\[:File:[^\\|\\[\\]]+?\\|[^\\|\\[\\]]+?\\]\\]: )([^\\|{}]+?\\|[a-z]+\\=[^\\|\\{\\}]+?)/g","mdReplaceText2":"$1{{cite book|author=$2","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Pages using Book template with incorrect parameter","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":""},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Pages using Book template with incorrect parameter","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["cmcontinue"]},"time":"2013-10-04T07:10:11.262Z"},"comwauth":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"[[Category:Author matching Creator template, Creator template not used]]","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Author matching Creator template, Creator template not used]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(\\| *[Aa]uthor *= *)(?:\\{\\{[Uu]nknown\\}\\}|[Uu]nknown|\\?+) *(\\s*(?:\\||\\}\\}))/","mdReplaceText1":"$1{{unknown|author}}$2","mdRRegEx2":true,"mdRVar2":true,"mdMatchText2":"/(\\| *[Aa]uthor *= *)([^\\|\\{\\}\\[\\]<>#\\*~?!,'\"&\\n]+?) *(\\s*(?:\\||\\}\\}))/","mdReplaceText2":"$1{{Creator:$2}}$3","mdRRegEx3":false,"mdRVar3":true,"mdMatchText3":"","mdReplaceText3":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Author matching Creator template, Creator template not used","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|424f524953205a564f52594b494e2030342e4a5047|15799988"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Author matching Creator template, Creator template not used","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|424f475553c581415720c5bb5552414b4f57534b492e4a5047|13819656","file|424f524953205a564f52594b494e2030342e4a5047|15799988"],"setVals":["cmcontinue"]},"time":"2013-12-22T02:50:33.979Z"},"comwauthus":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Hugo Charlemont]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(\\|\\s*[Aa]uthor\\s*=\\s*)(Placeholder)(\\s*(?:\\||\\}\\}))/","mdReplaceText1":"$1{{Creator:$2}}$3","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Hugo Charlemont","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4855474f20434841524c454d4f4e54202d2054595055532045494e455220534c4f57454e494e20415553204b5241494e2e4a5047|27562257"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Hugo Charlemont","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4855474f20434841524c454d4f4e54202d2054595055532045494e455220534c4f57454e494e20415553204b5241494e2e4a5047|27562257"],"setVals":["cmcontinue"]},"time":"2014-01-04T06:36:14.819Z"},"CM":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Hugo Charlemont]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(\\|\\s*[Aa]uthor\\s*=\\s*)(?:\\[\\[User:Cmichel67\\|Cmichel67\\]\\]|Christopher[ _]Michel|\\[\\[:?(?:(?:w|[Ww]ikipedia|en|[Cc]ategory):)Christopher[ _]Michel(?:\\|Christopher[ _]Michel)?\\]\\]|(?:\\[(?:http:\\/\\/www.flickr.com\\/people\\/50979393@N00|http://www.flickr.com/photos/cmichel67/|http://www.christophermichel.com/) (?:\\*christopher\\*|Christopher Michel)\\]|\\[\\[flickruser:50979393@N00\\|Christopher[ _]Michel\\]\\]) *(?:from San Francisco, USA)?)(\\s*(?:\\||\\}\\}))/","mdReplaceText1":"$1{{Creator:Christopher Michel}}$2","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Photographs of Burning Man by Christopher Michel","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4255524e494e47204d414e2032303130202834393635353138393532292e4a5047|24814284"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Photographs of Burning Man by Christopher Michel","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4255524e494e47204d414e202834393632393133353536292e4a5047|24814285","file|4255524e494e47204d414e2032303130202834393635353138393532292e4a5047|24814284"],"setVals":["cmcontinue"]},"time":"2014-01-06T12:36:19.291Z"},"rerev":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"rereview","mdReplacePermission":false,"mdDeleteHeading":"Files uploaded by [[User:Adolfobrigido|Adolfobrigido]] ([[User talk:Adolfobrigido|talk]] · [[Special:Contributions/Adolfobrigido|contribs]])","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/\\{\\{User:FlickreviewR/reviewed\\-nosource\\|\\|http://flickr\\.com/photos//\\|.+?\\}\\}/g","mdReplaceText1":"{{flickreview}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Adolfobrigido","lestart":"20140403223035|84245060","ledir":"older"},"startInput":{"mode":"User","modeCat":false,"modeUser":true,"modePage":false,"target":"User:Adolfobrigido","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["20140516155657|87633484","20140403223035|84245060"],"setVals":["lestart"]},"time":"2014-05-22T08:49:27.839Z"},"KPTC":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Korea.net photos to check]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(\\|\\s*[Aa]uthor\\s*=\\s*)\\[http://www\\.flickr\\.com/people/42438955@N05 Republic of Korea\\] from Seoul, Republic of Korea/g","mdReplaceText1":"\\1{{Korea.net author}}","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Korea.net photos to check","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4b4f434953204b4f524541204d415243483120434552454d4f4e59203136202838353138333331383838292e4a5047|31712948"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Korea.net photos to check","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|4b4f434953204b4f524541204b4f494e4d4f203131202839363638353733303737292e4a5047|31712193","file|4b4f434953204b4f524541204d415243483120434552454d4f4e59203136202838353138333331383838292e4a5047|31712948"],"setVals":["cmcontinue"]},"time":"2014-06-07T01:15:20.533Z"},"rcat":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"","mdReplacePermission":false,"mdDeleteHeading":"Files on [[User:Zhuyifei1999/sandbox]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/(\\s*)(\\n==\\{\\{int:license\\-header\\}\\}==)/g","mdReplaceText1":"$1{{subst:User:Zhuyifei1999/sandbox/2}}$2","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"secure","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"User:Zhuyifei1999/sandbox","imdir":"ascending","imcontinue":"27036056|Shuowen_Seal_Radical_275.svg"},"startInput":{"mode":"Page","modeCat":false,"modeUser":false,"modePage":true,"target":"Page:User:Zhuyifei1999/sandbox","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["27036056|Shuowen_Seal_Radical_175.svg","27036056|Shuowen_Seal_Radical_275.svg"],"setVals":["imcontinue"]},"time":"2014-09-17T10:52:04.032Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>
//<nowiki>

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"c_replace","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":500,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>

//mw.loader.load("//bits.wikimedia.org/meta.wikimedia.org/load.php?debug=false&lang=en&modules=user&skin=" + skin + "&user=Zhuyifei1999");

// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Smart_rollback>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');

//mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Technical 13/Scripts/Gadget-listStyles.js&action=raw&ctype=text/javascript' );//[[User:Technical 13/enwpScripts]]

$("#wpTextbox1").prop('readonly', false);

//mw.loader.load('//www.wikidata.org/w/index.php?title=User:Tpt/interproject.js&action=raw&ctype=text/javascript');

importScript('User:Magog the Ogre/cleanup.js');

importScript("MediaWiki:PatrolPageRevisions.js");

// Temp
/*function fix(text) {
	return text.replace(/\[http:\/\/hla\.stsci\.edu\/hlaview\.html#Images\|\S+&ds=\]/g, function(url) {
		return url.replace(/\|/g, "&#124;");
	});
}

if ( $.inArray(mw.config.get( 'wgAction' ), ['edit', 'submit']) != -1 ) {
	$("#wpTextbox1").val(fix($("#wpTextbox1").val()));
}*/

// importScript("User:Zhuyifei1999/jquery.repeat.js");
importScript('User:Majora/LicenseReview.js');
importScript('User:Rillke/bigChunkedUpload.js');
importScript('User:Rillke/SVGedit.js');
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Equazcion/OneClickArchiver.js&action=raw&ctype=text/javascript");

// Mark edit requests as done.
// If the subject pages does not exist, offer a textbox
// on the talkpage and a button to create the subject page
// from within the talk page.
if ( mw.config.get( 'wgNamespaceNumber' ) % 2 === 1
	&& $( '.com-edit-request-admin-area' ) ) {
	importScript( 'MediaWiki:FulfillEditRequest.js' );
}

window.AjaxDeleteExtraButtons = [	//Thanks [[User:Revent]] (CC-BY-SA 3.0)
	{
        'label': 'Speedy delete',
        'tag': '{'+'{speedydelete|1=%PARAMETER%}}',
        'img_summary': 'Tagging for speedy deletion: %PARAMETER%',
        'prompt_text': 'Why should this file be speedy deleted?'
    }
];

/*if (mw.config.get('wgPageName').match(/^Commons:Administrators'_noticeboard\/User_problems/)) {
	mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&title=User:Anomie/censorship.js&ctype=text/javascript');
	importStylesheetURI('//en.wikipedia.org/w/index.php?action=raw&title=User:Anomie/censorship.css&ctype=text/css');
	
	mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&title=User:Anomie/hide-images.js&ctype=text/javascript');
	importStylesheetURI('//en.wikipedia.org/w/index.php?action=raw&title=User:Anomie/hide-images.css&ctype=text/css');
}*/

importScript( 'User:Rillke/gallery-sort.js' );

mw.loader.addSource({ ruwiki: '//ru.wikipedia.org/w/load.php' });
mw.loader.register('ext.gadget.markblocked', '1crrmke', ['mediawiki.util', 'mediawiki.page.ready'], null, 'ruwiki');
mw.loader.load('ext.gadget.markblocked');

( function ( mw, $ ) {
	var utils = window.zhuyifei1999_utils = { // eslint-disable-line camelcase
		exportModule: function ( modules ) {
			if ( typeof modules === 'string' ) {
				return utils.exportModule( [ modules ] );
			} else if ( $.isArray( modules ) ) {
				var dbname = mw.config.get( 'wgDBname' ),
					moduledefs = {},
					addModule = function ( module ) {
						if ( moduledefs[ module ] === undefined ) {
							var localdef = mw.loader.moduleRegistry[ module ];
							if ( localdef === undefined ) {
								throw new Error( 'module ' + module + ' is undefined' );
							} else if ( localdef.source !== 'local' ) {
								throw new Error( 'module ' + module + ' has unexpected source ' + localdef.source );
							} else if ( localdef.group !== 'site' ) {
								console.log( 'ignoring module ' + module + ' with group ' + localdef.group ); // eslint-disable-line no-console
							} else {
								moduledefs[ module ] = [ module, localdef.version, localdef.dependencies, 'external', dbname ];
								$.each( localdef.dependencies, function ( i, val ) {
									addModule( val );
								} );
							}
						}
					};

				$.each( modules, function ( i, val ) {
					addModule( val );
				} );

				console.log( 'mw.loader.addSource(\'' + dbname + '\', \'' + mw.config.get( 'wgServer' ) + mw.util.wikiScript( 'api' ) + '\');' );
				console.log( 'mw.loader.register(' + Object.values( moduledefs ).toSource() + ');' );
				console.log( 'mw.loader.load(' + modules.toSource() + ');' );
			}
		},
		highlightText: function ( text ) {
			var regexp;
			if ( text instanceof RegExp ) {
				// Clone this to avoid polluting it ( i.e. lastIndex )
				regexp = new RegExp( text.source, text.flags );
			} else if ( typeof text === 'string' ) {
				// RegExp escaping source: https://stackoverflow.com/a/2593661
				regexp = new RegExp(
					String( text ).replace( /[.?*+^$[\]\\(){}|-]/g, '\\$&' ), 'ug' );
			} else {
				throw new Error( 'Unexpected input: ' + text );
			}

			// static array used so we don't go into an indefnite loop due to
			// getting new text nodes from the split.
			( function () {
				var node, nodes = [],
					walker = document.createTreeWalker(
						document.body,
						NodeFilter.SHOW_TEXT
					);
		
				while ( ( node = walker.nextNode() ) !== null ) {
					nodes.push( node );
				}
				
				return nodes;
			}() ).forEach( function ( node ) {
				var text = node.nodeValue,
					posoffset = 0,
					regexpRes;
		
				while ( ( regexpRes = regexp.exec( text ) ) !== null ) {
					var pos1 = regexpRes.index,
						pos2 = regexp.lastIndex,
						elem1 = node.splitText( pos1 - posoffset ),
						elem2 = elem1.splitText( pos2 - pos1 ),
						span = document.createElement( 'span' );
		
					node.parentNode.insertBefore( span, elem2 );
					span.appendChild( elem1 );
					span.setAttribute( 'style', 'background-color: yellow' );
					node = elem2;
		
					posoffset = pos2;
				}
			} );
		},
		nullEdit: function ( title ) {
			// wow best api ever
			mw.loader.using( 'mediawiki.api', function () {
				new mw.Api().edit( title, function ( revision ) { return revision.content; } );
			} );
		}
	};
}( mediaWiki, jQuery ) );

if ( mw.config.get( 'wgPageName' ) == 'Special:LintErrors/html5-misnesting' ) {
	$( function () {
		setTimeout( function () {
			$( '.TablePager_col_title' ).each( function () {
				zhuyifei1999_utils.nullEdit( $( this ).find( 'a:first' ).attr( 'title' ) );
			} );
			// setTimeout( function () { window.location.reload( true ); }, 9500 );
			setTimeout( function () { $( '.oo-ui-icon-next' ).click() }, 9500 );
		}, 500);
	} );
}

//mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&maxage=86400&ctype=text/javascript" );
//mw.loader.load( "https://ja.wikipedia.org/w/index.php?title=User:MawaruNeko/ShowPageLintError.js&action=raw&maxage=86400&ctype=text/javascript" );

mw.loader.using( 'user', function ( require ) {
	window.debugrequire = require;
} );
/*
window.debugarr = [];

mw.loader.using( 'wikibase.mediainfo.base', function ( require ) {
	var ComponentWidget = require( 'wikibase.mediainfo.base' ).ComponentWidget;

	mw.hook( 'wikipage.content' ).add( function () {
		$( '.wbmi-entityview-captionsPanel' ).makeCollapsible( { collapsed: true } );
	} );

	// Ugly hooking :(
	ComponentWidget.prototype.rebuildDOM = function ( oldRebuildDOM ) {
		return function () {
			oldRebuildDOM.apply( this, arguments );
			
			console.log( this, this.moduleName );
			window.debugarr.push( this );

			if ( this.moduleName === 'wikibase.mediainfo.filePageDisplay' ) {
				this.renderPromise.then( function () {
					$( '.wbmi-entityview-captionsPanel' ).makeCollapsible( { collapsed: true } );
				} );
			}
		};
	} ( ComponentWidget.prototype.rebuildDOM );
} );
*/