User:Cacycle/wikEd.js: Difference between revisions

Content deleted Content added
m deal with deprecated global var access
m Undid revision 804735340 by TheDJ (talk)
Line 14:
// ==UserScript==
// @name wikEd
// @version 0.9.151150
// @date October 103, 2017
// @namespace https://en.wikipedia.org/wiki/User:Cacycle/
// @description A full-featured in-browser editor for Wikipedia and other MediaWikis
Line 18,345:
globalScopeCode += '' +
'if (typeof ' + names[i] + ' != \'undefined\') {' +
' wikEd.wikiGlobals.' + names[i] + ' = ' + names[i] + ';' +
( window.mw !== undefined && window.mw.config !== undefined
? window.mw.config.get( names[i] )
: names[i]
) + ';' +
'}';
}