Changes

Jump to navigation Jump to search
m
1 revision imported
Line 27: Line 27:  
if title.namespace == 8 then -- MediaWiki namespace
 
if title.namespace == 8 then -- MediaWiki namespace
 
return 'sysop'
 
return 'sysop'
elseif title.namespace == 2 and ( mw.ustring.find( pagename, '/.*%.js$') or mw.ustring.find( pagename, '/.*%.css$') ) then -- user .js or .css page
+
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) then -- user JS or CSS page
 
return 'sysop'
 
return 'sysop'
 
end
 
end

Navigation menu