Snap Preview Anywhere is a script, written in JavaScript (source), that offers easy implementation of the Snap Search Engine feature by the same name. This service provides small dynamic popups on external links featuring a thumbnail image of the destination page.
Quick installation: add {{subst:snap}} to your monobook.js (or equivalent file if you use a different skin). See below for full installation instructions.
Features
edit- Replace external link icon with Snap Preview Anywhere icon.
- Mouseover Snap Preview Anywhere icon to launch preview popups.
Installation
editYou 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:snap}}
to your monobook.js page. This will add the following code to your .js file:
// [[User:Zgreenberger/snap.js]] importScript('User:Zgreenberger/snap.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
After saving the page, clear your browser's cache (hold SHIFT key while reloading/refreshing page; on Mozilla Firefox Shift-Control-R). 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.
Translations
editSnap Preview Anywhere does offer localized versions of the popup. Future versions will include the ability to pass in a localization code to customize the display language.
Feedback
editBugs, problems, suggestions and enhancements to Zgreenberger, please.
Development version
editThis tool remains under development. The very latest version is available at User:Zgreenberger/snap.js. If you do want to install it, you can type
{{subst:js|User:Zgreenberger/snap.js}}
into your user javascript file.
Footnotes
edit
See also
edit- Wikipedia:Easy navigation – Proposed guideline
- Help:User style – Customize Wikipedia page layout
Credits and external links
editThis tool depends on some other peoples' work:
- User:Lupin provided the model I copied for customizing skin javascript with his excellent Wikipedia:Tools/Navigation_popups.
- User:Chuq pointed out that this tool is simliar to Wikipedia:Tools/Navigation_popups
- User:Nickj actually suggested I build this