News for hackers. Stuff that matters.
Re:Wikipedia in read-only mode following mass admin account ... by karel-3d on Thursday March 05, 2026 @03:07PM (#47266608)
wait as a wikipedia user you can just put random JS to some settings and it will just... run? privileged?

this is both really cool and really really insane

Re:Wikipedia in read-only mode following mass admin account ... by kemayo on Thursday March 05, 2026 @03:15PM (#47266710)
It's a mediawiki feature: there's a set of pages that get treated as JS/CSS and shown for either all users or specifically you. You do need to be an admin to edit the ones that get shown to all users.

https://www.mediawiki.org/wiki/Manual:Interface/JavaScript

Re:Wikipedia in read-only mode following mass admin account ... by hk__2 on Thursday March 05, 2026 @03:09PM (#47266638)
Yes, you can have your own JS/CSS that’s injected in every page. This is pretty useful for widgets, editing tools, or to customize the website’s apparence.
Re:Wikipedia in read-only mode following mass admin account ... by karel-3d on Thursday March 05, 2026 @03:32PM (#47266898)
It sounds very dangerous to me but who am I to judge.
Re:Wikipedia in read-only mode following mass admin account ... by Brian_K_White on Thursday March 05, 2026 @03:56PM (#47267164)
It's nothing.

For the global ones that need admin permissions to edit, it's no different from all the other code of mediawiki itself like the php.

For the user scripts, it's no worse than the fact that you can run tampermonkey in your browser and have it modify every page from evry site in whatever way your want.

Re:Wikipedia in read-only mode following mass admin account ... by karel-3d on Friday March 06, 2026 @01:21AM (#47271573)
Well it has just been shown it's not nothing
Re:Wikipedia in read-only mode following mass admin account ... by Brian_K_White on Friday March 06, 2026 @07:29AM (#47274169)
No it hasn't.
Re:Wikipedia in read-only mode following mass admin account ... by corndoge on Thursday March 05, 2026 @03:42PM (#47267011)
That is how Mediawiki works. Everything is a page, including CSS and JS. It is not really different than including JS in a webpage anywhere else.
Re:Wikipedia in read-only mode following mass admin account ... by bawolff on Thursday March 05, 2026 @05:16PM (#47268065)
It is kind of risky - you now have an entire, mostly unreviewed, ecosystem of javascript code, that users can experiment with.

However its been really useful to allow power users to customize the interface to their needs. It also is sort of a pressure release for when official devs are too slow for meeting needs. At this point wikipedia has become very dependent on it.

Re:Wikipedia in read-only mode following mass admin account ... by hk__2 on Friday March 06, 2026 @05:42AM (#47273300)
It only affects your user; it’s just like adding random extensions to your browser.
Re:Wikipedia in read-only mode following mass admin account ... by Ekaros on Friday March 06, 2026 @03:02AM (#47272276)
Fundamentally I feel whole "web" as in anything running in browser is insane an broken security wise. When you allow mostly arbitrary code to run when you load a page... Well it can do mostly arbitrary things and everyone else needs to protect against it.

And when you have enough rights, you get to add arbitrary code to everywhere on your site.