User:Fewfre/global.js

/*jshint esversion: 6 */ var MultiUploadoption = { max: 100, defaultlicence:"Fairuse", }; window.lastEdited = { avatar: true, size: false, diff: true, comment: true, time: 'timeago', }; window.railWAM = { showLogAlert: false, appendAfter: "#wikia-recent-activity", }; mw.loader.using(['mediawiki.util', 'mediawiki.Uri', 'ext.fandom.ContentReview.legacyLoaders.js'], function {	importArticles({ type: 'script', articles: [ // Personal scripts //'url:c.wikia.com:User:Fewfre/global.js/SkinSwitchButton.js', 'c:User:Fewfre/global.js/NoImageLightbox', 'u:dev:MediaWiki:RecentChangesMultiple/code.2.js', // "Advanced" scripts 'u:dev:MediaWiki:FileUsageAuto-update/code.js', 'u:dev:MediaWiki:MassCategorization/code.js', 'u:dev:MediaWiki:MultiUpload.js', 'u:dev:MediaWiki:FindAndReplace/code.js', 'u:dev:MediaWiki:DupImageList/code.js', 'u:dev:MediaWiki:RedirectManagement/code.js', 'u:dev:MediaWiki:Nuke/code.js', 'u:dev:MediaWiki:AjaxThreadDelete/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:MassNullEdit/code.js', 'u:dev:MediaWiki:Luapreviewer/code.js', // Small tweaks 'u:dev:MediaWiki:VisualSpellCheck/code.js', 'u:dev:MediaWiki:RevealAnonIP/usercode.js', 'u:dev:MediaWiki:LastEdited/code.js', 'u:dev:MediaWiki:Wikimarks/code.js', 'u:dev:MediaWiki:ViewRemoved/code.js', //'u:dev:MediaWiki:RailWAM/code.js', 'u:dev:MediaWiki:QuickDiff/code.js', 'u:dev:MediaWiki:GlobalEditcount/code.js', 'u:dev:MediaWiki:AddArticleToCategory/code.js', 'u:dev:MediaWiki:ToggleSideBar/code.js', // Misc //'u:dev:MediaWiki:NoImageLightbox/code.js', - no uses modified version: User:Fewfre/global.js/NoImageLightbox (see above) //'u:dev:MediaWiki:MiniComplete/code.js', ]	}); }); //$('#wpWatchthis').attr('checked', false); //$('#wpWatch').attr('checked', false);

// Allow editing a file page instead of uploading it (for redirects and such) var config = mw.config.get(["wgCanonicalSpecialPageName", "wgServer", "wgArticlePath"]); if(config.wgCanonicalSpecialPageName === "Upload") { var url = config.wgServer+config.wgArticlePath.replace("$1", "File:"+wpDestFile.value); $(".page-header__page-subtitle").append('&#32; [view file page &bull; edit file page]'); }

// hardcoded 'url:c.wikia.com:User:Fewfre/global.js/showServerTime',

//