Greasy Fork

Greasy Fork is available in English.

Bunpro: JLPT Level Indicator

Adds a JLPT level indicator in reviews.

当前为 2018-06-30 提交的版本,查看 最新版本

// ==UserScript==
// @name         Bunpro: JLPT Level Indicator
// @namespace    http://tampermonkey.net/
// @version      0.2.1
// @description  Adds a JLPT level indicator in reviews.
// @author       Kumirei
// @include      https://bunpro.jp/*
// @require      http://greasyfork.icu/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// @grant        none
// ==/UserScript==

(function() {
		waitForKeyElements('.session-wrap-up', function() {
				$('#reviews').after('<div id="JLPTlevel"></div>');
				$('head').append('<style>#reviews {height: initial !important;} #JLPTlevel {line-height: 0px; margin-bottom: 25px;}</style>');
				waitForKeyElements('.level_lesson_info', function(e) {
						$('#JLPTlevel')[0].innerText = $('.level_lesson_info')[0].innerText.split(':')[0];
				});
		});
})();