Changes
add user JSON subpage detection - see Tech News: 2018-14
pagename = title.prefixedText
if action == 'autoreview' then
local level = mw.getCurrentFrameext.FlaggedRevs.getStabilitySettings(title):callParserFunction('PENDINGCHANGELEVEL', pagename) level = level and level.autoreview
if level == 'review' then
return 'reviewer'
if title.namespace == 8 then -- MediaWiki namespace
return 'sysop'
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' or title.contentModel == 'json' ) then -- user JS , CSS or CSS JSON page
return 'sysop'
end
elseif title.namespace == 6 then
return 'filemover'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
if blacklistentry then
elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason
return 'autoconfirmed'