Wanikani: Move context sentence to top

Moves the context sentence to the top when you open the full info of a vocabulary item.

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.

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

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: Move context sentence to top
// @namespace    http://tampermonkey.net/
// @version      0.1.3
// @description  Moves the context sentence to the top when you open the full info of a vocabulary item.
// @author       Kumirei
// @include      *wanikani.com/review/session
// @include      *preview.wanikani.com/review/session
// @grant        none
// ==/UserScript==

(function() {
	let style = document.createElement("style");
	style.innerText = "#item-info-col2 { display: inline-grid; row-gap: 40px; }" +
		"#item-info #item-info-col2 section, #item-info-col2 section *:last-child { margin-bottom: 0; }" +
		"#item-info-context-sentences { order: -1; }";
	document.head.appendChild(style);
})();