Bunpro: JLPT Level Indicator

Adds a JLPT level indicator in reviews.

Versión del día 30/06/2018. Echa un vistazo a la versión más reciente.

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

(function() {
		waitForKeyElements('#study-page > .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];
				});
		});
})();