User scripts
|
User scripts are powerful customizations, authored by the community, that allow registered Wiktionarians to change Wiktionary's interface beyond the options available in preferences. This page provides a list of available scripts and instructions on installing them. User scripts are written in JavaScript.
- Click here to skip directly to the script list.
- Many of the most popular scripts become gadgets, and are subsequently removed from this page. You can enable them via Preferences - Gadgets. It is recommended that you check there first for any tool you might be looking for, since gadgets have been widely tested and proven useful and reliable.
- Most scripts are designed and tested primarily with the Vector skin, Wiktionary's current default.
|
How to install user scripts: (Simple method for scripts located on English Wiktionary)
- First, make sure you are registered and logged in. Only logged-in users can install scripts.
- Click the superscript link next to the name of the script you want to install and follow the instructions in the footnote.
- If there is no superscript link next to the name of the script, then follow the link to the script's documentation and look for installation instructions there.
- After you copy the necessary code to your common.js file as instructed in the footnote/documentation, save the page and bypass your cache to make sure the changes take effect.
|
Automatic installer: makes script installations fully automatic. The installer itself must first be installed manually. Afterwards, scripts can be installed with a single click.
|
Full manual instructions |
---|
| # First, make sure you are registered and logged in. Only logged-in users can install scripts.
- Edit your common.js file. Alternatively, you may use your skin.js to work only your current skin.
- Add the following line:
importScript('script_path'); -- where "script_path" is the full name of the .js page that opens when a script's "(source)" link is clicked.
- For example, to install the Minor Edits script, add the following line:
importScript('User:Dixtosa/minorEdits.js');
- For scripts not located on this wiki, use:
mw.loader.load('//en.wiktionary.org/w/index.php?title=script.js&action=raw&ctype=text/javascript');
- Consider adding a by adding
//[[script_path]] to the end of the line, which aids script usage statistics.
- Save the page and to make sure the changes take effect.
|
|
|
|
How to add new scripts to this list |
---|
| Use {{userscript}} . Include at least a code page address. Add a short description after the userscript template. Example: | | * {{userscript | name= My script | code= User:Me/MyJSpage.js | doc= User:Me/MyJSdocumentationPage }} - This script does something useful.
| |
- Name defaults to the code page's name, without its path or ".js".
- If a documentation page exists matching your .js page name, it will be linked automatically, without the need for a doc parameter.
|
|
|
|
টেমপ্লেট:tocright
This is a portal about user scripts. The main purpose of this page is to list all of the useful userscripts that exist.
Feel free to add a new userscript.
If you want to request a userscript or discuss a development-related stuff or just have an idea refer to here.