巴哈-禁止聊天室自動卷到最下面

巴哈-禁止聊天室自動卷到最下面.

  1. // ==UserScript==
  2. // @name 巴哈-禁止聊天室自動卷到最下面
  3. // @namespace 巴哈-禁止聊天室自動卷到最下面
  4. // @include https://haha.gamer.com.tw*
  5. // @version 1.00
  6. // @grant none
  7. // @description:zh-tw 巴哈-禁止聊天室自動卷到最下面.
  8. // @description 巴哈-禁止聊天室自動卷到最下面.
  9. // ==/UserScript==
  10.  
  11. /*
  12. *
  13. * 說明:禁止巴哈姆特電腦版的哈哈姆特聊天室,有人回覆就自動卷到最下面的現象
  14. * 作者:hbl917070(深海異音)
  15. * 最後修改日期:2017-10-25
  16. * 作者小屋:https://home.gamer.com.tw/homeindex.php?owner=hbl917070
  17. *
  18. */
  19.  
  20.  
  21.  
  22. var style_48763 = document.createElement("style");
  23. style_48763.innerHTML=`
  24. .message-scoller{
  25. overflow-y: initial !important;
  26. height: initial !important;
  27. }
  28. .message-content{
  29. overflow-y: auto !important;
  30. }
  31. #message-scoller_forum{
  32. overflow-y: initial !important;
  33. height: initial !important;
  34. }
  35. `;
  36. document.body.appendChild(style_48763);
  37.