Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Facepunch Big Titles Fixer

By: neokabuto on May 5th, 2012  |  syntax: JavaScript  |  size: 0.52 KB  |  views: 150  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // ==UserScript==
  2. //
  3. // @name           Facepunch Big Titles Fixer
  4. //
  5. // @description    Cuts off pagestretching usertitles
  6. //
  7. // @author         neokabuto
  8. //
  9. // @version        1.0
  10. //
  11. // @match http://*.facepunch.com/*
  12. // @match http://facepunch.com/*
  13. //
  14. // @history        1.0 first version
  15. //
  16. // ==/UserScript==
  17.  
  18.  
  19. var elements = document.getElementsByClassName("usertitle");
  20.  
  21. for (var i = 0; i < elements.length; ++i) {
  22.         elements[i].style.maxHeight = "100px";
  23.         elements[i].style.overflow = "auto";
  24. }