Wikipedia:User page design guide/Scripts: Difference between revisions

Content deleted Content added
m Reverted edits by Salehashumov (talk) to last version by Funandtrvl
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
 
(57 intermediate revisions by 39 users not shown)
Line 1:
{{Wikipedia:User page design centerguide/Nav bar}}
<br />
<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 ==
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.
{{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"One standssubpage forname ''[[Javascript]]''.in particular Youis canreserved customizeto yourbe Wikipediaan accountactive usingpage javascripts.checked by WheneverMediawiki you(the logname on,of the Mediawiki software automaticallyprogram accesses andwhich runs anyWikipedia). scripts foundThat onsubpage, yourcalled "vector.js", pageis (ifused youto havecustomize oneyour thatuser is)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 to use the same wiki-enhancements that I use, copy the contents of [[User:The Transhumanist/monobook.js]] into [http://en.wikipedia.org/w/index.php?title=Special:Mypage/vector.js&action=edit your vector page]. After saving the page, hold down Shift while clicking on Firefox's Reload icon.
 
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:Cacycle/wikEd|wikEd]]''' - replaces your edit window, and adds lots of editing features, like search and replace, local show changes and preview (i.e., they bypass the server), etc. I've been using it for about a week, and have found its search/replace features ''very useful''. There are some annoying bugs, but the script places a convenient activation/deactivation button at the top of your userpage, so you can switch back and forth between using it and the default edit window. I prefer to use WikEd for search and replace operations, but I still rely on Firefox's default edit window for cutting and pasting (WikEd's bugs make cutting and pasting difficult).
* '''[[Wikipedia:Popups|Lupin's Popups]]''' - This turns your mouse pointer into a crystal ball: whenever you hover the mouse over an internal link, a box will popup giving you a peek into that page (showing the topmost part of that page). And this function is recursive, in that you can do it again to a link inside the box, and inside the next box that pops from inside that box, and so on. There is also a powerful menu provided of things you can do to the page in the popup.
* '''[[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]],
Line 21 ⟶ 23:
::To check the contents of the entry, click on "show details". To hide that entry, click "hide details".
 
<div style="padding: 1px; background: lightblue; border: width: 100px; -moz-border-radius:15px; font-size: 11pt;">
== Some more suggested tools ==
<small>All of theThe following tools shouldcan also be inserted into your vector.js</small>
* [[meta:User:MarkSKrinkle/Scripts/Extra edit buttonsInsertWikiEditorButton|Extra Edit Buttons]]. This tool is an expansion of the tools you use during the edit function, and greatly improves editing capability.
** To use, please see [[meta:User:Krinkle/Scripts/InsertWikiEditorButton|his script page]]
** To use, do <code><nowiki>{{subst:js|User:MarkS/extraeditbuttons.js}}</nowiki></code>
* [[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>
 
== Many scripts are now made available as "gadgets" ==
 
Many scripts can be added to your account from Gadgetssuch as
 
* '''[[User:Cacycle/wikEdCacycl|wikEd]]''' - replaces your edit window, and adds lots of editing features, like search and replace, local show changes and preview (i.e., they bypass the server), etc. I've been using it for about a week, and have found its search/replace features ''very useful''. There are some annoying bugs, but the script places a convenient activation/deactivation button at the top of your userpage, so you can switch back and forth between using it and the default edit window. I prefer to use WikEd for search and replace operations, but I still rely on Firefox's default edit window for cutting and pasting (WikEd's bugs make cutting and pasting difficult).
*Wikipedia '''[[Wikipedia:Popups|Lupin's Popups]]'''Navigational -Popup This turns your mouse pointer into a crystal ball: whenever you hover the mouse over an internal link, a box will popup giving you a peek into that page (showing the topmost part of that page). And this function is recursive, in that you can do it again to a link inside the box, and inside the next box that pops from inside that box, and so on. There is also a powerful menu provided of things you can do to the page in the popup.
 
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.
 
<div style="styl padding: 1px; background: lightblue; border: width: 100px; -moz-border100pxmozborder-radius:15px; font-size: 11pt;">
 
== See also ==
*[[WP:US/L|List of user scripts]]
*[[WP:TW|Twinkle, a vandalism reversion tool]]