Skip to content

Instantly share code, notes, and snippets.

@IA21
IA21 / MALrandom.js
Last active April 5, 2022 01:23
picks random anime/manga from your MAL animelist/mangalist pages
// ==UserScript==
// @name MAL random
// @version 4
// @description picks random anime/manga from your MAL animelist/mangalist pages
// @author IA21
// @match https://myanimelist.net/mangalist/*
// @match https://myanimelist.net/animelist/*
// @grant none
// ==/UserScript==
@IA21
IA21 / MALrandom.js
Created April 21, 2017 08:11
Add random button to MAL animelist (bookmarklet)
javascript:(function(){
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
var e = document.createElement("span");
e.innerHTML = "random&nbsp&nbsp&nbsp";
e.style.color = "white";
e.style.cursor = "pointer";