Greasy Fork 还支持 简体中文。

WaniKani ALC

Adds a link to the alc.co.jp results to vocab pages

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        WaniKani ALC
// @namespace   wanikani
// @description Adds a link to the alc.co.jp results to vocab pages
// @include     http*.wanikani.com/vocabulary/*
// @include     http*.wanikani.com/level/*/vocabulary/*
// @version     1
// @grant       none
// ==/UserScript==

var vocab = document.getElementsByClassName('vocabulary-icon')[0].firstChild.innerHTML;
var url = 'http://eow.alc.co.jp/search?q=' + encodeURIComponent(vocab) + '&ref=sa';
var info = document.getElementsByClassName('page-list')[0].getElementsByTagName('ul')[0];
var alc = document.createElement('li');
alc.innerHTML = '<a href="' + url + '">alc.co.jp</a>';
info.appendChild(alc);