Twitch, Simplifiy Chat

Simplifiy for chat

目前为 2023-01-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Twitch, Simplifiy Chat
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.1
  5. // @description Simplifiy for chat
  6. // @author You
  7. // @match https://www.twitch.tv/*
  8. // @icon https://www.google.com/s2/favicons?domain=tampermonkey.net
  9. // @grant none
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var style = document.createElement("style");
  16. style.innerHTML = `
  17. .vod-message,
  18. .chat-line__message {
  19. z-index: 1;
  20. position: relative;
  21. }
  22. .vod-message__header {
  23. display: none !important;
  24. }
  25. .user-notice-line {
  26. display: none;
  27. }
  28. .chat-line__username,
  29. .video-chat__message-author {
  30. position: absolute;
  31. right: 0;
  32. top: 0;
  33. font-size: 8px;
  34. z-index: 0;
  35. opacity: 0.6;
  36. }
  37. .chat-author__display-name + .chat-author__intl-login {
  38. display: none
  39. }
  40. [data-test-selector="chat-message-separator"] {
  41. display: none;
  42. }
  43. .video-chat__message > span:first-child {
  44. display: none;
  45. }
  46. .chat-badge,
  47. [data-a-target="chat-badge"] {
  48. display: none;
  49. }
  50. .chat-line__message [aria-hidden=true] {
  51. display: none;
  52. }
  53. `;
  54. document.body.appendChild(style);
  55. // Your code here...
  56. })();