https://bugzilla.wikimedia.org/show_bug.cgi?id=68933

--- Comment #1 from Kunal Mehta (Legoktm) <[email protected]> ---
MariaDB [metawiki_p]> select count(*) from page where page_namespace=2 and
page_title like "%/global.js" limit 2;

270

$ mwgrep --user --max-results 2 "global.js"
(total: 116472, shown: 2)


MariaDB [metawiki_p]> select count(*) from page where page_namespace=2 and
page_title like "%/global.css" limit 2;

70


$ mwgrep --user --max-results 2 "global.css"
(total: 29083, shown: 2)


Obviously the mwgrep is just an estimate, but I think it's pretty close to what
we're dealing with.

My idea: have a simple script that a steward can run at the request of a user.
The script goes through every wiki, checks the users'
common/vector/monobook/etc.js/css, see if there is only one line, matches
something similar to
(mw\.loader\.load|importScriptURI).*meta\.wikimedia\.org.*User:$username/global\.js.*

and if it only has one author in the history, delete it. We could also just
comment it out like Nemo suggested, but that is less useful for users due to
bug 68488.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to