Entry History - MAL

Get a detailed anime/manga history with the exact month/day/year and hour:minute of when you modified the watched/completed episode number of the entry.

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         Entry History - MAL
// @namespace    https://greatest.deepsurf.us/en/users/670188-hacker09?sort=daily_installs
// @version      7
// @description  Get a detailed anime/manga history with the exact month/day/year and hour:minute of when you modified the watched/completed episode number of the entry.
// @author       hacker09
// @include      /^https:\/\/myanimelist\.net\/((anime|manga)(id=)?(\.php\?id=)?)(\/)?([\d]+)/
// @icon         https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://myanimelist.net&size=64
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
  document.querySelector(".js-anime-update-button, .js-manga-update-button")?.nextElementSibling.insertAdjacentHTML('afterEnd', `<small><a href="https://myanimelist.net/ajaxtb.php?detailed${location.href.split('/')[3] === 'anime' ? 'a' : 'm'}id=${location.href.match(/\d+/)[0]}" target="_blank" style="color: #fff; float: right; background-color: #4065ba; border-radius: 4px; padding: 2px 6px; font-family: lucida grande, tahoma, verdana, arial, sans-serif; font-size: 11px; text-decoration: none;"> History</a></small>`); //Show the History button
})();