Move Mangadex "Reading Hitory" tab to top

Mangadex move Reading History Tab to top

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         Move Mangadex "Reading Hitory" tab to top
// @namespace    https://greasyfork.org/en/users/158832
// @version      0.2
// @description  Mangadex move Reading History Tab to top
// @author       Riztard
// @match        https://mangadex.org/
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

	if (document.getElementsByClassName("card mb-3")[3].textContent.indexOf("News") > -1){ //if 1 top chapter
		var a = document.getElementsByClassName("card mb-3")[4];
		var b = document.getElementsByClassName("col-lg-4")[0];
		b.insertAdjacentElement('afterbegin', a);
	}
	else{ //if 1 need support
		var c = document.getElementsByClassName("card mb-3")[5];
		var d = document.getElementsByClassName("col-lg-4")[0];
		d.insertAdjacentElement('afterbegin', c);
	}

})();