// ==UserScript==
// @name MAL Full History
// @namespace Check Your Full Watching History on MAL!
// @version 1.1
// @description Just an Easy Script that lets You to check Your Full Watching History on MAL
// @author NurarihyonMaou
// @match https://anime.plus/*/list,anime
// @match https://myanimelist.net/ajaxtb.php*
// @icon https://www.google.com/s2/favicons?domain=anime.plus
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
// @require http://code.jquery.com/jquery-3.5.1.min.js
// @downloadURL https://update.greasyfork.icu/scripts/430856/MAL%20Full%20History.user.js
// @updateURL https://update.greasyfork.icu/scripts/430856/MAL%20Full%20History.meta.js
// ==/UserScript==
const $ = window.jQuery;
let id = [];
let CurrentTitle;
let FullHistory = [];
function ExportDataToCSV($table, filename) {
let csv = "";
let rows = $table.find("tr");
$.each(rows, function (index, row) {
$.each($(row).find("td"), function (index, entry) {
if (index < 2) csv += $(entry).text() + "|";
else csv += $(entry).text() + "\n";
});
});
let csvData = "data:application/csv;charset=utf-8," + encodeURIComponent(csv);
$(this).attr({
download: filename,
href: csvData,
target: "_blank",
});
}
function FillTable() {
for (let e = 0; e < FullHistory.length; e++) {
$("table").append(
"