FixBugScrollToHidden

try to take over the world!

  1. // ==UserScript==
  2. // @name FixBugScrollToHidden
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.6
  5. // @description try to take over the world!
  6. // @author MerryJane
  7. // @match https://www.fxp.co.il/showthread.php?t=*
  8. // @match https://www.fxp.co.il/showthread.php?p=*
  9. // @match https://www.fxp.co.il/usernote.php?u=*
  10.  
  11. // @match https://www.fxp.co.il/forumdisplay.php?t=*
  12. // @match https://www.fxp.co.il/chat.php
  13. // @match https://www.fxp.co.il/chat.php?pmid=*
  14. // @match https://www.fxp.co.il/private_chat.php?do=showpm&pmid=*
  15. // @grant none
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. 'use strict';
  20.  
  21. function addGlobalStyle(css) {
  22. var head, style;
  23. head = document.getElementsByTagName('head')[0];
  24. if (!head) { return; }
  25. style = document.createElement('style');
  26. style.type = 'text/css';
  27. style.innerHTML = css;
  28. head.appendChild(style);
  29. }
  30.  
  31. addGlobalStyle('.postcontent { overflow: hidden; }');
  32. addGlobalStyle('.signature { margin-top: 1.2em; }');
  33. addGlobalStyle('.lastedited { padding-top: 0.5em; }');
  34. })();