https://bugzilla.wikimedia.org/show_bug.cgi?id=19252
Web browser: ---
Summary: User Javascripts cannot be redirected, nor use include,
nor be restricted to edit screens.
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Redirects
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
As a translator of UI messages, I switch between skins a lot so as to find out
how translations look like in various skins. Also, I have a lengthy list of
additional buttons in the edit bar supporting translationsal work. They are
loaded via JavaScripts in subpages of my user page, one for each skin.
Despite the fact that all look alike, I have to keep an identical copy for each
skin.
#redirect [[User:.../common.js]]
{{:user:.../common.js}}
both were useful and make scripts easier to maintain, but unlike everywhere
else, do not work for these JavaScripts.
My scripts do something useful only on edit screens. Else, they detect that
there is no editbar, and quit. Imho, they should better not be loaded into
other pages. This could be had e.g. by having specific action dependent
scripts, such as:
:user:.../skinname.js/action=edit
:user:.../skinname.js/action=move
etc.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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