Skip to content

Instantly share code, notes, and snippets.

@dvingerh
Created August 5, 2022 16:16
Show Gist options
  • Save dvingerh/c0d4bc186e3e786a161acda998bc73c1 to your computer and use it in GitHub Desktop.
Save dvingerh/c0d4bc186e3e786a161acda998bc73c1 to your computer and use it in GitHub Desktop.
MyAnimeList show rating number again
// ==UserScript==
// @name MyAnimeList Show Rating Number
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add the reviewer's final rating to the rating verdict tag
// @author Cammy
// @match https://myanimelist.net/anime/*
// @match https://myanimelist.net/manga/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=myanimelist.net
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// ==/UserScript==
$("div.review-element").initialize(function() {
var rating_tag = $(this).find("div.tags").find("div.tag").first();
var rating_digit = $(this).find("div.rating").find("span.num").text();
$(rating_tag).text($(rating_tag).text() + " (" + rating_digit + "/10)");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment