FS#46699 - {wiki} Enable support for userscripts and user-stylesheets

Attached to Project: Arch Linux
Opened by Jakub Klinkovský (lahwaacz) - Tuesday, 13 October 2015, 18:06 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 24 July 2016, 05:45 GMT
Task Type Feature Request
Category Web Sites
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

MediaWiki has support for custom userscripts and user-stylesheets, see the $wgAllowUserJs [1] and $wgAllowUserCss [2] options.

Enabling userscripts would allow us to use many existing scripts from Wikipedia [3] which can greatly improve the experience of reading, editing and maintaining the wiki. It would also allow making ArchWiki-specific scripts like Wiki Monkey [4] more portable (currently it depends on browser extensions like Greasemonkey to work).

Enabling user-stylesheets lets the users customize the default Arch skin on the wiki according to their preference, and more importantly, it makes it easier for users to test changes to the skin for submitting upstream (i.e. [5]). Latest example where such user contributions are highly desirable is  FS#46697 .

I'm not aware of any drawbacks that these options would bring, since the default behaviour is the same, but interested users can gain something. Both options are enabled on Wikipedia, so the feature is well tested and secure.

[1] https://www.mediawiki.org/wiki/Manual:$wgAllowUserJs
[2] https://www.mediawiki.org/wiki/Manual:$wgAllowUserCss
[3] https://en.wikipedia.org/wiki/Wikipedia:User_scripts
[4] https://wiki.archlinux.org/index.php/Wiki_Monkey
[5] https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 24 July 2016, 05:45 GMT
Reason for closing:  Implemented
Additional comments about closing:  https://git.archlinux.org/vhosts/wiki.ar chlinux.org.git/commit/?id=f1c44a65db08b 237e7d65ec243e050c2c8db49e6

Loading...