Greasy Fork

Duolingo Enable Japanese

Enables Japanese on Duolingo. To make this work, start Esperanto, then change languages, click on the dropdown menu next to your name and choose Japanese.

当前为 2017-05-20 提交的版本,查看 最新版本

// ==UserScript==
// @name         Duolingo Enable Japanese
// @namespace    https://github.com/InacioNeto/DuolingoEnableJapanese/
// @version      0.1
// @description  Enables Japanese on Duolingo. To make this work, start Esperanto, then change languages, click on the dropdown menu next to your name and choose Japanese.
// @author       You
// @match        https://www.duolingo.com/
// @grant        none
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==

$("li[data-value='eo']").attr('data-value', 'ja');
$("span[data-value='eo']").attr('data-value', 'ja');
$("span[data-value='ja']").text('Japanese');
$('span[class="flag flag-svg-micro flag-eo"]').attr("class", "flag flag-svg-micro flag-ja");