Last active
August 29, 2015 14:21
-
-
Save evsasse/3876ed7416346938e8f4 to your computer and use it in GitHub Desktop.
Sum MyAnimeList Plan To Watch episodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run in your plan to watch page eg:"http://myanimelist.net/animelist/YourUserNameHere&status=6&order=0" | |
// Simply oṕen your browser's console (F12>Console), paste and ENTER (: | |
/////////////////////////// | |
// NEEDS TO BE LOGGED IN // | |
/////////////////////////// | |
var a = document.querySelectorAll('td[width="70"]>span>a'); | |
var patt = /[0-9]+$/; | |
var b = 0; | |
for(var i in a){ | |
var c = patt.exec(a[i].innerHTML); | |
if(c !== null) b += parseInt(c[0]); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment