User:FactoTest1/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
window.FTTjskitty = 1;
window.mimicUser = function(user) {
	if ( mw.util.getParamValue('masq') ) { //load common.js+global.js from another user
		user = mw.util.getParamValue('masq').replace(/^klein([_ ]muci)?$/i,'Klein_Muçi');
		window.FTTUserSettings = {
			'Klein_Muçi':'{"replySecLink":true,"firstHeadingAdd":false,"secLinks":true,"editFullSection":true,"editFullSHref":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"scrollTop":true,"scrollPrev":true,"scrollNext":true,"collapsible":true,"autoCollapse":true,"collapArticle":true,"collapArticleDefaultMF":true,"collapIcons":true,"dateLinksLocalTime":true,"dateLinksLocalTimeRelative":true,"cureDTBlueStreak":true,"tosNag":false,"undoFunc":true,"undoBtn":true,"redoBtn":true,"pingDropDown":true,"refList":true,"wrongUI":true,"previewAboveFull":true,"previewAboveOther":true,"previewBtns":"pbBarCenterF","customSummary":true,"cancelDestructive":true,"livePreview":true,"aggressiveLivePreview":true,"bracketToForm":true,"bracketToFormT":true,"quoteSelect":true,"AWBtypos":true,"cI":["%7B%7BU%20b%C3%AB%7D%7D","%7B%7BResolved%7D%7D","-%20correction","-%20addition","%7B%7Btq%7C1%3DFTTCRT%7D%7D%3A%3C%3C%7B%7BTq%7D%7D%3E%3E","%C3%AB"],"cIThatRun":["%2F(%5E%7C%5Cs)(http%5Bs%5D%3F%3A%5C%2F%5C%2F%5B%5E%5Cs%5C%7C%5D%2B)%5C%7C(%5B%5E%5Cs%5D%2B)%2F%241%242%20TAILPIPETRICK%243%2Fg","%2F(%5E%7C%5Cs)(%5C%5B%5C%5B%5B%5E%5C%5D%5C%7C%5D%2B)(%5C%7C%5B%5E%5C%5D%5D*)%3F%5C%5D%5C%5D%20TAILPIPETRICK(%5B%5E%5Cs%5D%2B)%2F%241%242%7C%244%5D%5D%2Fg"],"cIThatRunCmt":["%2F(%5Cn%5B%5C*%23%5D.*%5Cn)%5Cn%2F%241%2Fg%20%3C%3CRemove%20lines%20after%20lists%3E%3E"],"runCIAgain":true,"markdown":true,"bbcode":true,"runRewritunAgain":true,"stalkAddSubLinks":true,"stalkAutoSub":true,"stalkStoreInPrefs":true,"markNewCmts":true,"stalkMarkReadScroll":true,"stalkTackOnMail":true,"MFAdj":true,"MFAdjeditFS":true,"MFAdjPing":true,"MFAdjundoBtn":true,"MFAdjredoBtn":true,"MFAdjAdv":true,"MFAdjSwitch":true,"MFAdjEditNotice":true,"MFAdjDiff":true,"MFAdjReflist":true,"MFAdjscrollTop":true,"MFAdjscrollPrev":true,"MFAdjscrollNext":true,"mobileMWCollapsible":false,"showRisky":true,"showSuperRisky":true,"submitShortcut":true,"HLCmtClick":true,"editCmtDblClick":true,"replyDblClick":true,"hideDT":false,"hideDTSub":false,"extendedSigDetect":true,"ninjaLoader":true,"recombineNowiki":true,"afterPost":"parsecmtonly","watchlistexpiry":"+14 days","watchlistexpirynew":"indefinite","editor":"2010wikitext","editorSwitch":true,"editorSwitchSkip2010":false,"2010wikitextDefault":true,"2010codeMirror":true,"grayscale":true,"saveTo":"globalprefs","MFAdjUndo":true}',
			'Qwerfjkl':'{"secLinks":true,"hideArchived":false,"editFullSection":true,"dateLinksIconSection":true,"dateLinksIconSectExtra":true,"dateLinksIcon":true,"thankLink":true,"dateLinksLocalTime":true,"dateLinksLocalTimeLongMonth":true,"tosNag":false,"redoBtn":true,"refList":true,"onetimetoolsArchive":true,"onetimetoolsMove":true,"onetimetoolsList":true,"editNotice":false,"overlayThreshold":"0","customSummary":true,"quoteSelect":true,"cI":["%3Csyntaxhighlight%20lang%3D%22FTTCRT%22%3E%3C%2Fsyntaxhighlight%3E%3A%3C%3Csyntaxhighlight%3E%3E","%3Ccode%3E%3Cnowiki%3EFTTCRT%3C%2Fnowiki%3E%3C%2Fcode%3E%3A%3C%3Ccodenowiki%3E%3E","%7B%7Blnc%7CQwerfjkl%20(bot)%7CFTTCRT%7C%7B%7BSubst%3ATIMESTAMP%7D%7D%7D%7D%3A%3C%3Clnc%3E%3E","%3Csyntaxhighlight%20lang%3D%22%22%3EFTTCRT%3C%2Fsyntaxhighlight%3E%3A%3C%3CsyntaxhighlightNOLANG%3E%3E","%2F%5E(%3F%3A%40%5C%5B%5C%5B.%2B%3F%5C%5D%5C%5D%2C%20)%3F%2FUNREPLY%2F%3A%3C%3CUNREPLY%3E%3E"],"cIThatRun":["%2F%5E%5Cs*%5C%5B%5C%5B%3A%3F(.%2B)%5C%5D%5C%5D%5Cs*%24%2F%241%2F"],"cIThatRunCmt":["%2F(%5Cs%5B%5Cw\'%2C%5D%2B)%5C.(%5B%5Cw\'%2C%5D%2B%5Cs)%2F%241%20%242%2Fg"],"monospace":true,"pingText":"@[[User:PINGUSER|PINGUSER]], ","rewritunOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","runCIOther":"#wpSummary,.morebits-dialog textarea,.morebits-dialog input,#cat_a_lot_comment,#mw-movepage-table #wpReason input","stalkAddSubLinks":true,"stalkAutoSub":true,"stalkStoreInPrefs":true,"markNewCmts":true,"stalkAddCycleBtn":true,"markNewCmtsSubbed":false,"stalkMarkReadScroll":true,"mobileMWCollapsible":false,"showUnpopular":true,"showRisky":true,"shortcuts":false,"editTheUneditable":true,"theStranger":true,"killswitch":false,"recombineNowiki":true,"watchlistexpiry":"+7 days","editorSwitch":true,"saveTo":"accountprefs","markNewCmtsBorder":true}',
		};
		if ( window.FTTUserSettings[user] ) {
			mw.notify('loaded settings from '+user);
			window.localStorage.setItem('FTT',window.FTTUserSettings[user]);
		}
		mw.loader.load('https://meta.wikimedia.org'+mw.config.get('wgScriptPath')+'/index.php?title=User:'+user+'/global.js&action=raw&ctype=text/javascript');
		mw.loader.load(mw.config.get('wgScriptPath')+'/index.php?title=User:'+user+'/common.js&action=raw&ctype=text/javascript');
		mw.notify('loaded common/global js from '+user);
	}
};
window.mimicUser();
if ( !mw.util.getParamValue('masq') && mw.util.getParamValue('skipglobal') != '1' && mw.config.get('wgPageName') != 'User:Alexis_Jazz/Factotum.js' ) {
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Alexis_Jazz/Factotum.js&action=raw&ctype=text/javascript');
}