Gadgets
From OpenWetWare
Below is a list of special gadgets users can enable on their preferences page.
Browsing gadgets [Edit]
-

Be advised that you take full responsibility for any action performed using Navigation Popups. You must understand Wikipedia policies and use this tool within these policies, or risk being blocked. Navigation popups is a script, written in wikipedia:JavaScript (source), that offers easy access to article previews and several Wikipedia functions in popup windows which appear when you hover the cursor over links.
- Quick installation: Enter Special:Preferences and click "Gadgets", check the box to enable Popups, then click save. Follow the instructions on the page to bypass your browser's cache.
- Other installation method: add the following code to your monobook.js (or equivalent file if you use a different skin). See below for full installation instructions:
{{subst:navpop}}If you're having trouble, you may like to peruse some frequently asked questions.
Contents
Features
- Mouseover on articles (including user pages):
- Preview the first part of the article text (kudos to wikipedia:User:Pilaf for his Live Preview script which makes this possible)
- Preview the first image on each article
- Preview selected page information: size, number of links, number of images, number of categories and page age
- Tells you about redirects, stubs and disambiguation pages
- One click access to edit page, page history, most recent edit, edits by most recent contributor,<ref name="on-selected-browsers-ie">On selected browsers, including Microsoft Internet Explorer</ref> changes since my edit,<ref name="on-selected-browsers-ie" /> move page, what links here, related changes, watch or unwatch, protect or unprotect (for administrators), talk page, edit talk page and start new topic in talk page
- Mouseover on image links:
- Preview images
- Preview file descriptions
- Preview file links
- Tells you if the image is on Commons
- Mouseover on user links:
- One-click access to user page, user space, user talk, edit user talk, new section in user talk, e-mail user, contributions and contributions tree, user log, (for administrators) delete user, (for administrators) block user, edit counter (Interiot's tool), block log
- Mouseover on footnotes:
- Preview contents of footnotes
- Mouseover on any wikilink:
- Clear pop-up cache<ref name="on-selected-browsers-mff">On selected browsers, including Mozilla Firefox</ref>
- Enable/disable previews<ref name="on-selected-browsers-mff" />
- Enable/disable pop-ups<ref name="on-selected-browsers-mff" />
- Preview diffs and access both revisions in watchlist, history and related changes
- Preview selected wikilinks when editing (use the mouse to select one wikilink)
- One-click revert of vandalism from history browser (see image)
- Wikipedia search, global Wikipedia search and wikipedia:Google search
- Shortcut keys (optional)
- Automatically fix links to bypass redirects and disambiguation pages (optional)
- Should work on all Wikimedia wikis
Installation
You must have a user account in order to install and use the Navigation popups feature. If you do not have an account you will need to create one and log in.
The next step is to add
{{subst:navpop}}
to your monobook.js page. This will add the following code to your .js file:
// [[wikipedia:User:Lupin/popups.js]] importScript('User:Lupin/popups.js');
Note: If you are using a skin other than MonoBook (the default), the relevant file you will need to edit is listed below.
- Classic skin: standard.js
- Cologne Blue: cologneblue.js
- Chick: chick.js
- Simple: simple.js
- Nostalgia: nostalgia.js
- MySkin: myskin.js
- Modern: modern.js
After saving the page, clear your browser's cache (on Internet Explorer Ctrl+F5; on Mozilla Firefox Shift+Ctrl+R; on Opera F5). Assuming that you have not disabled Javascript in your browser, a popup should appear whenever you hover your mouse over an internal link in Wikipedia. If you use more than one web browser, or more than one PC, you may need to clear the caches for each so that the popup appears.
To install the script on the commons or Wiktionary, repeat this procedure on those wikis.
To uninstall the script, delete the above lines from the same page and clear your browser's cache.
Usage guide
This tool generates "popup hints" when you hover the mouse pointer over active links and images.
Many of the most important features can be used from the watchlist.
- hover over a diff link to show a summary of the difference that edit has made
- hover over a link to an article version to show a short excerpt of the version
There should also be some "navigation links" which access many functions including one-click reversion, editing that page and so on. These may appear in the popup itself, or may be hidden in an "actions" menu depending on your browser and your settings.
In normal articles:
- hold the mouse over links pulls up a short excerpt of the linked-to article, then hover over the actions link if necessary to see more commands
- if you hold the shift key then you can drag the popup around
Configuration (optional)
Changing the appearance of your popups
By editing your user CSS file, you can change the appearance of the popups. Your user CSS file has exactly the same name as the javascript file, but with "css" instead of "js" at the end. So for most people, the file to edit is monobook.css.
Here is an example which gives an orange-flavoured popup with a border and changes the font used. This makes the popups look pretty silly, but it shows the sort of thing you can do if you feel like it.
.navpopup { background-color: #FFBE20 !important; font-family: serif !important; color: #404 !important; font-size: medium !important; }
Options
There are some options that you can set. To do so, edit your user javascript file (such as monobook.js) and add a line of the form
- option = value;
where option and value are chosen from the table below. For example, to prevent all downloading and turn on admin links, you need something like this in your javascript file:
// [[wikipedia:User:Lupin/popups.js]] - please include this line importScript('User:Lupin/popups.js'); simplePopups=true; popupAdminLinks=true;
Configuration options Option Values* Description Special:Gadgets/General options Special:Gadgets/Edit summary options Special:Gadgets/Preview options Special:Gadgets/Technical options Special:Gadgets/Experimental options
*Default values are listed in bold
More options may be added, and requests for more configurability are welcome.
Advanced customization
You can define custom filters for articles. These are javascript functions which are run after the page statistics are generated, and their output is appended (as HTML) to that part of the popup. (Note that if simplePopups is true or popupSummaryData is false, then nothing will be displayed).
The way to set this up is to write a filter function which accepts a string (the wikitext of the article) as input, and returns a fragment of HTML. Repeat for as many filters as you want, and then create an array extraPopupFilters which contains all of the functions, in the order in which you want them to be run.
For example, let's say you want to be told whenever the wikitext of an article contains a table written using HTML tags rather than wiki markup. One way to do this is to add the following to your user javascript file:
// initialize the array - only do this once extraPopupFilters=[]; // define the function function popupFilterHtmlTable (wikiText) { if (/<table/i.test(wikiText)) return '<table>'; else return ''; }; // add the function to the array (you can repeat this for lots of functions) extraPopupFilters.push(popupFilterHtmlTable);
Then when a popup is generated for a page containing an HTML table, you should see <table> in the popup. (It may also appear for other pages, such as this page. Correcting this defect is left as an exercise for the reader).
Translations
Please see this page for translations of the script interface and of this page into other languages. You'll also find instructions for creating a translation yourself.
Browser problems
wikipedia:Mozilla Firefox
If a user on Mozilla Firefox with the Adblock Plus extension installed cannot see the popup, only the normal tooltip, Adblock Plus may be blocking the operation of navigational popups. This can be solved by adding an exception to the filtering rules - go to the Main Page, right click the icon in the status bar and check Disable on en.wikipedia.org.
Safari
The menus do not function correctly in some older releases of Safari. Using a current version reportedly gives correctly functioning menus.
Opera
Older versions of Opera have bugs which prevent the menus from functioning correctly. Using a current version (9.0 or higher) should give correctly functioning menus, but you may still experience problems sometimes, with popups not loading, or not disappearing after the mouse is moved away.
This tool should not be affected by any browser popup blocking settings.
Feedback
Please see wikipedia:.
Footnotes
<references/>
Credits and external links
This tool was primarily written by Lupin, who is currently no longer active on Wikipedia. It depends on some other people's work:
- wikipedia:User:Pilaf/InstaView (wikipedia:née Live Preview) by Pilaf
- a Javascript wikipedia:MD5 hash function by Paul Johnston and others, available here
- domdrag by Aaron Boodman
- An implementation of a diff algorithm by John Resig
Older versions of the tool used overlib by Erik Bosrup.
Wikipedians who have helped
- Brian0918 - a little code and lots of inspiration
- Eddideigel - translation work
- IceKarma - aborting download code, making much better use of bandwidth
- Mike Dillon - the page age code
- Yurik - with his fantastic mediawiki BotQuery extension
- Zocky - the menus
- Zyxw - preview enhancements
- TheDJ - conversion from BotQuery to API.
- ....and many more with helpful suggestions, comments and bug reports
wikipedia:Category:Wikipedia scripts
ar:ويكيبيديا:المنبثقات ca:Viquipèdia:Finestres emergents de navegació de:Wikipedia:Helferlein/Navigation-Popups es:Wikipedia:Botonera eo:Vikipedio:Aldonaĵoj/Navigadŝprucfenestroj fa:ویکیپدیا:پاپآپس fr:Utilisateur:Leag/Navigation popups ko:위키백과:도구/내비게이션 팝업 id:Wikipedia:Peralatan/Popup navigasi is:Wikipedia:Blöðruflakk it:Wikipedia:Popup di navigazione lv:Vikipēdija:Navigācijas baloni hu:Wikipédia:Látszer nl:Wikipedia:Pop-ups ja:Help:ナビゲーション・ポップアップ no:Wikipedia:Ballongnavigasjon nn:Wikipedia:Ballongnavigasjon pl:Wikipedia:Narzędzia/Navigation popups pt:Wikipedia:Software/Popups de navegação ksh:Wikipedia:Gadget/Navigation-Popups ru:Википедия:Проект:Персональные скрипты/Навигации sq:Wikipedia:Mjete/Flluska shfletimi sk:Wikipédia:Nástroje/Navigačné vyskakovacie okná te:వికీపీడియా:ముంజేతి కంకణం uk:Вікіпедія:Персональні скрипти/Навігації zh:Wikipedia:維基百科工具/導航Popup
[Edit]
Uses: Gadget-popups.js, Gadget-navpop.css
Editing gadgets [Edit]
- Add a sidebar menu of user-defined regex tools, with a dynamic form for instant one-use regex (documentation). [Edit]
Uses: Gadget-RegexMenuFramework.js - Friendly, a set of tools for wikipedia:Firefox, Safari, and Opera that automates some of Wikipedia's more friendly, collaboration oriented tasks, such as welcoming new users. [Edit]
Uses: Gadget-Friendly.js - HotCat, easily add / remove / change a category on a page, with name suggestion [example] [Edit]
Uses: Gadget-HotCat.js - refTools, adds a "cite" button to the editing toolbar for quick and easy addition of commonly used citation templates. [Edit]
Uses: Gadget-refToolbar.js - Twinkle, a set of tools for Firefox, Safari, and Opera that automates common tasks such as reporting vandalism, warning vandals, and requesting deletion. [Edit]
Uses: Gadget-Twinkle.js - wikEd, a full-featured integrated text editor for Firefox, Safari, and Google Chrome. Please read the help page for usage instructions. [Edit]
Uses: Gadget-wikEd.js
User interface gadgets [Edit]
- Add a "*" tab to the top of the page, which purges the page's cache when followed. [Edit]
Uses: Gadget-purgetab.js - Add a clock in the personal toolbar that displays the current time in UTC (which also provides a link to purge the current page). [Edit]
Uses: Gadget-UTCLiveClock.js - Add a selector to the Wikipedia search page allowing the use of external search engines. [Edit]
Uses: Gadget-externalsearch.js - Add an [edit] link for the lead section of a page [Edit]
Uses: Gadget-edittop.js - Add page and user options to drop-down menus on the toolbar. Works in Monobook and Modern skins. (documentation) [Edit]
Uses: Gadget-dropdown-menus.js, Gadget-dropdown-menus.css - After rolling back an edit, automatically open the contributions of the user rolled back. [Edit]
Uses: Gadget-modrollback.js - Allow /16 and /24 – /32 CIDR ranges on Special:Contributions forms (uses API), as well as wildcard prefix searches, e.g., "Splark*". (Please report any issues here.) [Edit]
Uses: Gadget-contribsrange.js - Allow up to 50 more characters in each of your edit summaries. Works in Internet Explorer, Firefox, and Opera. [Edit]
Uses: Gadget-LongEditSummaries.js - Change the "new section" tab text to instead display the much narrower "+". [Edit]
Uses: Gadget-addsection-plus.js - Change UTC-based times and dates, such as those used in signatures, to be relative to local time. (documentation) [Edit]
Uses: Gadget-CommentsInLocalTime.js - Disable access keys [Edit]
Uses: Gadget-removeAccessKeys.js - Display an assessment of an article's quality as part of the page header for each article. (documentation) [Edit]
Uses: Gadget-metadata.js - Focus the cursor in the search bar on loading the Main Page. [Edit]
Uses: Gadget-searchFocus.js - Make text fields (e.g. the edit form) use a sans-serif font instead of a monospace font. [Edit]
Uses: Gadget-textareasansserif.css - Moves edit links next to the section headers (documentation) [Edit]
Uses: Gadget-lefteditlinks.js - Open external links in a new tab/window [Edit]
Uses: Gadget-exlinks.js - Use a black background with green text on the Monobook skin [Edit]
Uses: Gadget-Blackskin.css
Library and compatibility gadgets [Edit]
- Compatibility function to run scripts only tested on Monobook on the new Modern skin. Required for using Twinkle or Friendly (along with many other scripts) with the Modern skin. [Edit]
Uses: Gadget-modernskin-thunks.js - Compatibility function to run scripts only tested on Monobook on the new Vector skin. Required for using Twinkle or Friendly (along with many other scripts) with the Vector skin. [Edit]
Uses: Gadget-vectorskin-thunks.js - DejaVu Sans, a font with support for various dingbats. This gadget works on Google Chrome, Mozilla Firefox 3.5, and Safari. Install this gadget if you need better font and character support but cannot install fonts directly onto your computer. [Edit]
Uses: Gadget-DejaVu Sans.css - The JavaScript Standard Library, a compatibility library for browsers that lack full support for JavaScript 1.6. This includes Internet Explorer, Opera, and Safari 2. [Edit]
Uses: Gadget-JSL.js


