Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WiktionaryThe Free Dictionary
Search

User:Erutuon/scripts/reconstructedCategories.js

    From Wiktionary, the free dictionary
    <User:Erutuon |scripts

    Note: You may have to bypass your browser’s cache to see the changes. In addition, after saving a sitewide CSS file such asMediaWiki:Common.css, it will take 5-10 minutes before the changes take effect, even if you clear your cache.

    • Mozilla / Firefox / Safari: holdShift while clickingReload, or press eitherCtrl-F5 orCtrl-R (Command-R on a Macintosh);
    • Konqueror andChrome: clickReload or pressF5;
    • Opera: clear the cache inTools → Preferences;
    • Internet Explorer: holdCtrl while clickingRefresh, or pressCtrl-F5.

    This user script lacks adocumentation subpage. Pleasecreate it.
    Useful links:root pageroot page’s subpageslinksredirectsyour own

    /*Cleans up categories for reconstructed languages.Removes "Reconstructed:Langname/" from the beginnings of linksin the list of entries and the lists of recently addedand oldest entries, replacing it with an asterisk,so that the links look like they would in an entry.*/varnamespaceNumber=mw.config.values.wgNamespaceNumber;/*If in Category namespace, and if there's a catfix, indicatingthat the category belongs to a reconstructed language.*/if(namespaceNumber===14&&$("#catfix").length){$(".mw-category, #recent-additions, #oldest-pages").find("a").html(function(index,content){returncontent.replace(/Reconstruction:[^\/]+\//g,"*");});}
    Retrieved from "https://en.wiktionary.org/w/index.php?title=User:Erutuon/scripts/reconstructedCategories.js&oldid=51338831"

    [8]ページ先頭

    ©2009-2025 Movatter.jp