Greasy Fork

来自缓存

Greasy Fork is available in English.

MEMRISE KANJAX with KOOHI v3

Adds scripts to find Kanji on website page and makes them interactive with Kanji Koohi data + kanji strokes.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         MEMRISE KANJAX with KOOHI v3
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Adds scripts to find Kanji on website page and makes them interactive with Kanji Koohi data + kanji strokes.
// @author       superpawko
// @match        *://www.memrise.com/course/*
// @grant        none
// ==/UserScript==


// IMPORTANT: It only runs scripts from your hardrive from: http://127.0.0.1:8887/
// IMPORTANT: You need a webserver to host this files. ( check Web Server for Chrome (Chrome Extension))
// IMPORTANT2: Inside _kanjax_with_koohii.js there is also url to kanji stroke order SVG's (vector images), if you host your data somewhere else change it also. 

$(document).ready(function() {
    MEMRISE.garden.boxes.load = (function() {

        var cached_function = MEMRISE.garden.boxes.load;
        return function() {

            MEMRISE.garden.boxes.activate_box = (function() {
                var cached_function = MEMRISE.garden.boxes.activate_box;
                return function() {

                    var result = cached_function.apply(this, arguments);

                    var scriptElementBpop = document.createElement( "script" );
                    scriptElementBpop.type = "text/javascript";
                    scriptElementBpop.src = "http://127.0.0.1:8887/_jquery.bpopup.min.js";
                    document.body.appendChild( scriptElementBpop );

                    var scriptElement = document.createElement( "script" );
                    scriptElement.type = "text/javascript";
                    scriptElement.src = "http://127.0.0.1:8887/_kanjax_with_koohii.js";
                    document.body.appendChild( scriptElement );

                    return result;


                };
            }());

            return cached_function.apply(this, arguments);
        };
    }());
});