Selbi

Color Story Status

Dec 5th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Highlight story status
  3. // @namespace Selbi
  4. // @include *www.fimfiction.net/*
  5. // @version 1
  6. // ==/UserScript==
  7.  
  8. var bottom;
  9. var alluls = document.getElementsByTagName('ul');
  10.  
  11. for (var int=0; int<alluls.length; int++) {
  12. if (alluls[int].className == "chapters") {
  13. bottom = alluls[int].getElementsByClassName('bottom')[0];
  14. bottom.innerHTML = bottom.innerHTML.replace("Complete",'<span style="text-shadow:#00FF00 0px 0px 6px">Complete</span>');
  15. bottom.innerHTML = bottom.innerHTML.replace("Incomplete",'<span style="text-shadow:#00AAFF 0px 0px 6px">Incomplete</span>');
  16. bottom.innerHTML = bottom.innerHTML.replace("On Hiatus",'<span style="text-shadow:#FFCC00 0px 0px 6px">On Hiatus</span>');
  17. bottom.innerHTML = bottom.innerHTML.replace("Cancelled",'<span style="text-shadow:#FF0000 0px 0px 6px">Canceled</span>');
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment