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)
  1. First, make sure you are registered and logged in. Only logged-in users can install scripts.
  2. Click the superscript link next to the name of the script you want to install and follow the instructions in the footnote.
  3. 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.
  4. 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.

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.

Wiktionary-specific

සංස්කරණය

සැකිල්ල:expandable

  • script titles[1] (source) – Beautifies entry and talk page headers by adding script classes to them. This makes them display in more appropriate fonts and sometimes fixes jumbling of right-to-left characters. Buggy.
  • s to search[2] (source) – Focuses the search input on pressing 's'.
  • gadgets definition[3] (source) – Beautifies MediaWiki:Gadgets-definition and adds links to the relevant code and gadget message pages.
  • Custom Languages[4] (source) – Displays only the language(s) that the user is interested in. Auto collapses all languages. The user can toggle any language(s) and the script remembers. Can't be use together with TabbedLanguages.

සැකිල්ල:expandable

  • nymReferer[5] (source) - adds several parameters to redlinks so that after clicking it wikitext will be automatically filled with some initial text
  • Tbot (greenify)[6] (source) - changes redlinks in translation tables to greenlinks enabling accelerated creation
  • Add auto cat[7] (source) - On redlinked category pages, adds two links below the header that allow you to add {{auto cat}} and save the page, or add it and preview.

Scripts that add to or refine editors' toolsets.

සැකිල්ල:expandable

  • expandASADRS[8] (source) - helps you expand several headers (particularly "Alternative forms", "Synonyms", "Antonyms", "Derived terms", "Related terms", "See also").
  • Edittols character names[9] (source) – adds tooltips showing the names of the non-ASCII characters in the Edittools box below the editing area

සැකිල්ල:expandable

  • AddAudio[10] (source) - facilitates recording and adding audio. As of yet works in Firefox only
  • AjaxEdit[11] (source) - Inline editing of a section without the need to reload the whole page. Also does live previewing as you type.
  • Template parameters wizard[12] (source) – Helps fill parameters of templates.
  • Autocomplete[13] (source) – Offers a popup suggestions menu whenever you start typing a link or template in the main edit box.
  • autocompleter[14] (source) – Tab-based, context-sensitive autocompletion of usernames, page titles, and more, directly in the edit window

සැකිල්ල:expandable

  • [15] () – Allows editing preview and changes without page reloading.
    An alternative is to turn on "Use live preview" option in Preferences, but it loads whole HTML so no performance gain is achieved. Also while previewing a page with Use live preview option, it won't show show/hide buttons in tables.
  • [16] () – Preview transclusions from any namespace. No longer works.
  • templatePreview[17] (source) – Saves the name of the last page that you previewed using the "Preview page with this template" feature. Requires localStorage; sends an error message to the console if localStorage is not available in your browser.

සැකිල්ල:expandable

  • Minor edits[18] (source) – Cleanup various problems with markup, headlines, templates. Similar to Wikipedia's AutoEd[19] (source).
  • Strip it down. We only need subset of it.
  • history[21] (source) - Remembers visited entries. Language-learners can use it as a flashcard system.
  • search lang[22] (source) – Search Wiktionary languages from the toolbox in the sidebar.
  • TranslationAdder-InputFiller[23] (source) – A tool that fills the TranslationAdder with some of the already translated words from other languages onmouseover. The languages can be customized easily.
  • FilterTranslations[24] (source) – Filter list of languages to hide clutter and long listings thus preventing that TranslationAdder-InputFiller jumps when hovering over a translation. The languages can be customized easily.

සැකිල්ල:expandable

  • inlineDiff[25] (source) – Adds buttons to each line on the Recent Changes screen, the watchlist, the contributions screen, and article history screens, allowing one to load (and show/hide after loading) an individual diff without moving to another page and view multiple diffs at once.
  • WhoDidThat?[26] (source) - Searches the last revision that did not include the selected text, thus shows the edit that introduced some text

සැකිල්ල:expandable

  • userinfo () - Shows user groups, edit count, and time registered.

සැකිල්ල:expandable

  • DynaThank – Hides "thank" links on History pages until you choose to display them.
  • [37] () – Removes all "thank" links from History pages.
  • highlight me[38] (source) - highlights one's username in the history page.
  • Clean up Reconstructed categories[39] (source) – ReplacesReconstructed:language name/ with an asterisk in category pages containing reconstructed terms (such as Category:Proto-Indo-European nouns), making the list much easier to read.
  • What links here filter[40] (source) – Adds an additional filter on What Links Here pages allowing you to, in effect, exclude pages transcluding given template.
    NOTE: very very slow.
  • GlobalRecentChanges[42] (source) - Allows you to monitor recent changes across various wikis (*.wikimedia, *.wikipedia, *.wiktionary).
  • Hide unwanted categories[43] (source) – Hides categories in Special:WantedCategories that have been crossed out (which indicates that they have either been created or no longer have any pages in them).

සැකිල්ල:expandable

  • expandabledotjs[44] (source) - using this and the template {{User:Dixtosa/expandable}} now it is supereasy to create expandable lists. The template also has prefix and suffix parameters. see it for details.
  • [45] () – An automated installer for user scripts.
    • ScriptInstaller[46] (source) – An improved version of the above script.
  • userscriptInterwikiLink[47] (source) – Shows the line of code that can be inserted into common.js (supports interwiki links)

For more take a look at here.

These functions can be included directly in a script but don't do anything unless called by some other code. The functions marked as deprecated have been rendered obsolete by new features added to MediaWiki, and only exist now as wrappers for compatibility with existing code.

Documentation Summary
User:Dixtosa/XMLize.js (de)XMLization of wikitext. Good for wikitext processing.
morebits.js A collection of wiki-related functions (such as editing via the API and displaying Twinkle-style windows), maintained as part of Twinkle (but usable separately)

  1. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/scriptTitles.js}}
  2. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Swalladge/scripts/sToSearch.js}}
  3. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/gadgets-definition.js}}
  4. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Betty/custom_languages.js}}
  5. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/nymReferer.js}}
  6. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Ruakh/Tbot.js}}
  7. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/addAutoCat.js}}
  8. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/expandASADRS.js}}
  9. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/Edittools-character-names.js}}
  10. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Yair rand/AddAudio.js}}
  11. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/AjaxEdit.js}}
  12. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:קיפודנחש/TemplateParamWizard.js}}
  13. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:ערן/autocomplete.js}}
  14. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Theopolisme/Scripts/autocompleter.js}}
  15. Copy the following code, click here, then paste:
    {{subst:iusc|1=en:w:User:Js/ajaxPreview.js}}
  16. Copy the following code, click here, then paste:
    {{subst:iusc|1=en:w:User:Equazcion/UniversalTransclusionPreviews.js}}
  17. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/templatePreview.js}}
  18. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/minorEdits.js}}
  19. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:Wikipedia:AutoEd/basic.js}}
  20. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Joeytje50/AWB.js/load.js}}
  21. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/history.js}}
  22. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/searchLang.js}}
  23. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:So9q/TranslationAdder-InputFiller.js}}
  24. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:So9q/FilterTranslations.js}}
  25. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Writ Keeper/Scripts/commonHistory.js}}
  26. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/WhoDidThat.js}}
  27. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/skipToPost.js}}
  28. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/catwatch.js}}
  29. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:MusikAnimal/customWatchlists.js}}
  30. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:UncleDouggie/smart watchlist.js}}
  31. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Js/watchlist.js}}
  32. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Equazcion/RemoveMarkAll.js}}
  33. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:קיפודנחש/watchlistMark.js}}
  34. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Kephir/gadgets/hollis.js}}
  35. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/unwatch.js}}
  36. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/watchlistScriptTagging.js}}
  37. Copy the following code, click here, then paste:
    {{subst:iusc|1=en:w:User:Epicgenius/nothanks.js}}
  38. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/highlightme.js}}
  39. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/reconstructedCategories.js}}
  40. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:V111P/js/wlhFilters.js}}
  41. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Markhurd/hidetopcontrib.js}}
  42. Copy the following code, click here, then paste:
    {{subst:iusc|1=meta:User:Dentonius/scripts/GlobalRecentChanges.js}}
  43. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/hideUnwantedCategories.js}}
  44. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Dixtosa/expandable.js}}
  45. Copy the following code, click here, then paste:
    {{subst:iusc|1=en:w:User:Equazcion/ScriptInstaller.js}}
  46. Copy the following code, click here, then paste:
    {{subst:iusc|1=User:Erutuon/scripts/ScriptInstaller.js}}
  47. Copy the following code, click here, then paste:
    {{subst:iusc|1=w:en:User:Dixtosa/userscriptInterwikiLink.js}}
"https://si.wiktionary.org/w/index.php?title=වික්ෂනරි:User_scripts&oldid=25080" වෙතින් සම්ප්‍රවේශනය කෙරිණි