Created
December 6, 2013 03:36
-
-
Save anonymous/7937cd5ec963ecfca35e to your computer and use it in GitHub Desktop.
Just a tiny script to show the percentage of likes and dislikes on the FiMFiction rating bar when you move with the mouse over it.
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
// ==UserScript== | |
// @name Show Like/Dislike Percentage | |
// @namespace Selbi | |
// @include http*://fimfiction.net/* | |
// @include http*://www.fimfiction.net/* | |
// @version 1 | |
// ==/UserScript== | |
var likebar = document.getElementsByClassName('bar bar_like'); | |
for (int=0; int<likebar.length; int++) { | |
likebar[int].title = (Math.round(((likebar[int].style.width).replace('%',''))*100))/100 + '%'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment