Wikipedia:User scripts/Guide: Difference between revisions

Content deleted Content added
Moving the DHTML sections to the bottom of the article, per discussion on the talk page.
Built-in scripts: Clarified some wording.
Line 5:
 
== Built-in scripts ==
 
All Wikipedia pages include some built-in [[MediaWiki]] JavaScript code, with variables and functions that can be utilized in user scripts. The specific code depends on the viewed page and current users, for more details see [[Wikipedia:Catalogue of CSS classes#Stylesheets and JavaScript]].
 
Of most interest are:
* moreMore than 30 project-, page- and user-specific variables at the top of the rendered HTML page.
* [{{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|Administratorsadministrators]].
* The user's own [[Special:MyPage/monobook.js|/monobook.js]] (exact name depends on the [[Wikipedia:Skin|skin]] in yourthe user's preferences) which is your own script file.
 
== Userscript structure ==