Wikipedia:User scripts/Guide: Difference between revisions

Content deleted Content added
Cwarrior (talk | contribs)
Beginning update of documentation
Line 1:
<!--http://en.wikipedia.org/wiki/User:Alex_Smotrov/Draft-->
{{TOCright}}
{{UC}}
 
This is a small guide on writing user scripts for [[Wikimedia Foundation|Wikimedia]] sites. Of course, some basic [[JavaScript]] knowledge is required. (See also [[JavaScript syntax]].)
Line 10:
Of most interest are:
* More than 30 project-, page- and user-specific variables at the top of the rendered HTML page.
* [[mw:ResourceLoader/Default modules|Default Javascript Modules]]
* [{{SERVER}}/skins-1.5/common/wikibits.js wikibits.js]
* [[MediaWiki:Common.js]] (as [{{SERVER}}{{SCRIPTPATH}}/index.php?title=-&action=raw&smaxage=0&gen=js generated]), supported by local [[Wikipedia:Administrators|administrators]].
* The user's own [[Special:MyPage/skin.js|/vector.js]] (exact name depends on the [[Wikipedia:Skin|skin]] in the user's preferences).