Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2013 03:36
Show Gist options
  • Save anonymous/7937cd5ec963ecfca35e to your computer and use it in GitHub Desktop.
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.
// ==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