Wikipedia:User page design guide/Scripts: Difference between revisions
Content deleted Content added
Jagjot Mlt (talk | contribs) |
Reverted 1 edit by 35.33.162.23 (talk) to last revision by MPian Tags: Twinkle Undo Mobile edit Mobile web edit Advanced mobile edit |
||
(33 intermediate revisions by 21 users not shown) | |||
Line 1:
{{Wikipedia:User page design
<div style="border:1px solid #F5BE5F; background:#FFFFCC; width:99%; padding:4px; margin-bottom:10px">
<div style="border:1px solid #F5BE5F; background:#FFFFE0; width:99%; padding:4px">
== Adding scripts to your account ==
{{outdated|this section|reason=[[WP:AVT]] is no longer maintained}}
You may have more than one user page. Additional pages in your user space are called "sub pages". They are named after your main user page, followed by a forward slash, followed by the subpage name. Like this: "User:The Transhumanist/Virtual classroom".
One subpage name in particular is reserved to be an active page checked by Mediawiki (the name of the software program which runs Wikipedia). That subpage, called "vector.js", is used to customize your user account.
"JS" stands for ''[[JavaScript]]''. You can customize your Wikipedia account using [[Wikipedia:User scripts|JavaScript scripts]]. Whenever you log on, the MediaWiki software automatically accesses and runs any scripts found on your vector.js page (if you have one that is).
If you use Firefox, and you would like to upgrade your Wikipedia user account with a useful collection of scripts, add this into [{{fullurl:Special:MyPage/skin.js&action=edit}} your .js page]: <syntaxhighlight lang=javascript>importScript('User:The Transhumanist/UPDC.js');</syntaxhighlight> After saving the page, press {{keypress|Ctrl+R}}.
Doing so will add the following programs or changes to your account:
* '''Watchlist sorter''' - Sorts your watchlist by namespace, and also adds spaces for readability.
* '''[[User:Lupin/Anti-vandal tool|Lupin's Anti-vandal tool]]''' - A watchdog tool which adds the following 4 items to your toolbox menu in the sidebar on the left side of your screen:
** '''Filter recent changes''', a link to [[User:Lupin/Filter recent changes]],
** '''All recent changes''', a link to [[User:Lupin/All recent changes]],
** '''Recent IP edits''', a link to [[User:Lupin/Recent IP edits]] and
** '''Monitor my watchlist''', a link to [[User:Lupin/Monitor my watchlist]].
::When you visit these pages, a live, scrolling feed will begin. When filtering recent changes, only edits matching common vandalisms are listed (you can see this list at [[User:Lupin/badwords]]). If you select "All recent changes" then ([[User:Lupin/Anti-vandal_tool#Bugs_and_limitations|nearly]]) every edit is listed, and if you click "Recent IP edits" then only edits by so-called anonymous IP editors are listed. "Monitor my watchlist" shows changes to your watched articles as they happen.
::To check the contents of the entry, click on "show details". To hide that entry, click "hide details".
== Some more suggested tools ==
<small>The following tools can also be inserted into your vector.js</small>
* [[meta:User:
** To use, please see [[meta:User:Krinkle/Scripts/InsertWikiEditorButton|his script page]]
* [[User:Misza13/Scripts/View source|View Source]] - This tool adds a "view source" button next to the "edit this page" tab which is ideal for playing around with code, but not being able to accidentally save the changes
** To use, do <code><nowiki>{{subst:User:Misza13/Scripts/View source}}</nowiki></code>
Line 14 ⟶ 32:
== Many scripts are now made available as "gadgets" ==
Many scripts can be added to your account from
These can still be added to your account the old-fashioned way on your vector.js page, but installing them in My preferences takes just checking a box for each.
== See also ==
*[[WP:US/L|List of user scripts]]
*[[WP:TW|Twinkle, a vandalism reversion tool]]
|