4 ms·
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.
by hk__2 7mo ago
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.
- karel-3d 7mo agoIt sounds very dangerous to me but who am I to judge.
- corndoge 7mo agoThat 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.
- Brian_K_White 7mo agoIt'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.
- karel-3d 7mo agoWell it has just been shown it's not nothing
- Brian_K_White 7mo agoNo it hasn't.
- bawolff 7mo agoIt 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.
- hk__2 7mo agoIt only affects your user; it’s just like adding random extensions to your browser.