Wiktionary:User scripts

Viewing

 * – 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.
 * – Focuses the search input on pressing 's'.
 * – Beautifies MediaWiki:Gadgets-definition and adds links to the relevant code and gadget message pages.
 * – 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.

Creation

 * - adds several parameters to redlinks so that after clicking it wikitext will be automatically filled with some initial text
 * - changes redlinks in translation tables to greenlinks enabling accelerated creation
 * - On redlinked category pages, adds two links below the header that allow you to add and save the page, or add it and preview.

Editing
Scripts that add to or refine editors' toolsets.


 * - helps you expand several headers (particularly "Alternative forms", "Synonyms", "Antonyms", "Derived terms", "Related terms", "See also").
 * – adds tooltips showing the names of the non-ASCII characters in the Edittools box below the editing area

Inline

 * - facilitates recording and adding audio. As of yet works in Firefox only
 * - Inline editing of a section without the need to reload the whole page. Also does live previewing as you type.
 * – Helps fill parameters of templates.
 * – Offers a popup suggestions menu whenever you start typing a link or template in the main edit box.
 * – Tab-based, context-sensitive autocompletion of usernames, page titles, and more, directly in the edit window

Previewing

 * – 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.
 * – Preview transclusions from any namespace. No longer works.
 * – 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.

Cleanup

 * – Cleanup various problems with markup, headlines, templates. Similar to Wikipedia's.
 * Strip it down. We only need subset of it.


 * - Script with similar functionality to the downloadable AutoWikiBrowser, but loaded within the web browser.

Other

 * - Remembers visited entries. Language-learners can use it as a flashcard system.
 * – Search Wiktionary languages from the toolbox in the sidebar.
 * – 1) Language title headers are supplied with language codes and links to language description, 2) Language-marked words can display tooltip with link to references if hovered, 3) Language bibliography page (Appendix:Church Slavonic bibliography) can replace marked queries (orange color) by known word (hash in address or search input at screen bottom). Language codes are stored in browser local storage. See also: -- 2004: List of languages -- 2008: MediaWiki:Gadget-langcode2name.js -- 2011: List of languages -- 2013: Module:languages -- 2014: List of languages, csv format -- 2014: Module:languages/JSON, Grease pit/2014/August, User:CodeCat/language lookup.js, Thread:User_talk:CodeCat/User:CodeCat/lookup_language -- 2017: Module:languages/documentation, Module:languages/canonical names, Module:languages/code to canonical name, Template:language data search -- 2017: Module:languages/javascript-interface, MediaWiki:Gadget-LanguageUtils.js, MediaWiki:Gadget-StorageUtils.js -- 2018: Module:languages/print -- 2019: User:Erutuon/scripts/searchLang.js, User:Erutuon/scripts/LanguageSearcher.js
 * – A tool that fills the TranslationAdder with some of the already translated words from other languages onmouseover. The languages can be customized easily.
 * – 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.

Diffs

 * – 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.
 * NOTE: does not seem to be compatible with AJAX watchlist. For a script that solves this problem, see.
 * IDEA: integrate with
 * - Searches the last revision that did not include the selected text, thus shows the edit that introduced some text

User pages

 * - Shows user groups, edit count, and time registered.

Watchlist

 * – Makes links from 'User contributions' and 'Watchlist' pages that are posts in one of the discussion pages (GP, TR, etc.) go directly to the actual post (does have some limitations though)
 * – Shows the addition of pages to specified categories on your watchlist.
 * – Create and manage your own custom watchlists.
 * – Watchlist customization and organization.
 * – Adds some useful links to your Watchlist.
 * – Completely disables the recent Watchlist and History page changes that highlight updates to pages since your last visit.
 * – Bolds watched pages in Category and "User Contributions" listings. Also adds a "Show watchlist controls" link to enable watching and unwatching directly from these listings.
 * – show a "since last seen" link which gives you the diff of the page since you have last looked at it.
 * - adds unwatch button between "diff" and "hist"
 * - Adds nicer fonts to non-Latin-script links in Special:Watchlist, Special:RecentChanges, and Special:RecentChangesLinked by detecting the script and adding script classes.

History

 * – Hides "thank" links on History pages until you choose to display them.
 * – Removes all "thank" links from History pages.
 * - highlights one's username in the history page.

Categories

 * – Replaces 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

 * – Adds an additional filter on What Links Here pages allowing you to, in effect, exclude pages transcluding given template.
 * NOTE: very very slow.

Contribution

 * – Shows only noncurrent pages
 * NOTE: does not work with MediaWiki:Gadget-vectorTabs.js.

Recent changes

 * - Allows you to monitor recent changes across various wikis (*.wikimedia, *.wikipedia, *.wiktionary).

Wanted categories

 * – 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).

Other

 * - using this and the template now it is supereasy to create expandable lists. The template also has prefix and suffix parameters. see it for details.

Meta-scripts

 * – An automated installer for user scripts.
 * – An improved version of the above script.
 * – Shows the line of code that can be inserted into common.js (supports interwiki links)

Snippets
For more take a look at here.

Libraries
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.

Install code


pt:Wikcionário:Scripts