User:HumansCanWinElves/global.js

debugger; mw.config.set('wgUserLanguage', 'he'); // I'm wondering what will be the effect var URLparams = new URLSearchParams(window.location.search); var myDebug = URLparams.get('myDebug') === '1'; var config = mw.config.get( [        "wgServer",    ] );

// Configuration for AdvancedOasisUI window.AdvancedOasisUI = { accountNavWatchlist: true, DefaultSourceMode: false, };

// Configuration for ViewNotificationsUsers and related window.andrewds1021 = window.andrewds1021 || {}; window.andrewds1021.view_notifications_users = window.andrewds1021.view_notifications_users || {}; window.andrewds1021.view_notifications_users.all_types = true; window.andrewds1021.view_notifications_users.limit = 50; window.andrewds1021.view_notifications_users.content = "name"; if (URLparams.get('notifList') !== 'full') { window.andrewds1021.get_on_site_notifications = { default_count: 5 }; }

// Configuration for MassEdit window.MassEditConfig = { interval: 2500, placement: { element: "toolbar", type: "append" } };

window.myArticles = [ // Bug fixes 'u:dev:MediaWiki:Sofix.js',

// Additional actions in edit dropdown 'u:dev:MediaWiki:View_Source/code.js', 'u:dev:MediaWiki:WhatLinksHere/code.js', 'u:dev:MediaWiki:PurgeButton/code.js', 'u:dev:MediaWiki:NullEditButton/code.js', 'u:dev:MediaWiki:CodeLinksDropdown.js',

// Links from importJS pages to Dev wiki 'u:dev:MediaWiki:ImportJSPage/code.js',

'u:dev:MediaWiki:MultipleActivity.js', 'u:dev:MediaWiki:Bang.js', 'u:dev:MediaWiki:AjaxPoll.js', 'u:dev:MediaWiki:NotifPatches/beta.js', 'u:dev:MediaWiki:UserAccountAge/code2.js', 'u:dev:MediaWiki:OrganizedSocialActivity.js', 'u:dev:MediaWiki:ViewNotificationsUsers.js', 'u:dev:MediaWiki:MassEdit/code.js', // Listed as unmaintained and wasn't worked for UCP but seems to work 'u:dev:MediaWiki:Wikimarks/code.js',

// Last because it's listed as "Awaiting" for full UCP compatability 'u:dev:MediaWiki:AdvancedOasisUI/code.js', ];

if (myDebug) { $.getScript('https://dev.fandom.com/wiki/MediaWiki:OrganizedSocialActivity.js'	   	+ '?action=raw&ctype=text/javascript&only=scripts'); }

importScriptPage('User:HumansCanWinElves/testing.js', 'dev'); importArticles({   type: 'script',    articles: window.myArticles });