From f1c44a65db08b237e7d65ec243e050c2c8db49e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Wed, 20 Jul 2016 21:14:14 +0200 Subject: LocalSettings: Enable support for userscripts and user-stylesheets Related bug report: FS#46699 [1] Enabling userscripts allows the users to use many existing scripts from Wikipedia [2], which can greatly improve the experience of reading, editing and maintaining the wiki. It will also allow us to make some ArchWiki-specific scripts like Wiki Monkey [3] 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 modifications and prepare patches for the main skin. This is probably the main blocker of FS#46697 [4]. [1] https://bugs.archlinux.org/task/46699 [2] https://en.wikipedia.org/wiki/Wikipedia:User_scripts [3] https://wiki.archlinux.org/index.php/Wiki_Monkey [4] https://bugs.archlinux.org/task/46697 --- LocalSettings.archlinux.org.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php index 0d5d0d2c..484ec190 100644 --- a/LocalSettings.archlinux.org.php +++ b/LocalSettings.archlinux.org.php @@ -81,6 +81,10 @@ $wgJobRunRate = 0; # Enable subpages in the main namespace (FS#39668) $wgNamespacesWithSubpages[NS_MAIN] = true; +# Enable support for userscripts and user-stylesheets (FS#46699) +$wgAllowUserJs = true; +$wgAllowUserCss = true; + ## ## Database settings -- cgit v1.2.2