Twitch, Simplifiy Chat

Simplifiy for chat

当前为 2024-10-24 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Twitch, Simplifiy Chat
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.3
  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. /* reply */
  23. .chat-line__message:has(.message-event-pill) {
  24. display: none !important;
  25. }
  26. /* : */
  27. .chat-line__message-container [aria-hidden=true] {
  28. display: none;
  29. }
  30. .vod-message__header {
  31. display: none !important;
  32. }
  33. .chat-line__username,
  34. .video-chat__message-author {
  35. position: absolute;
  36. right: 0;
  37. top: 0;
  38. font-size: 8px;
  39. z-index: 0;
  40. opacity: 0.6;
  41. }
  42. .chat-author__display-name + .chat-author__intl-login {
  43. display: none
  44. }
  45. [data-test-selector="chat-message-separator"] {
  46. display: none;
  47. }
  48. .video-chat__message > span:first-child {
  49. display: none;
  50. }
  51. .chat-badge,
  52. [data-a-target="chat-badge"] {
  53. display: none;
  54. }
  55. /* reply button */
  56. .chat-line__reply-icon {
  57. display: none !important;
  58. }
  59. /* emote details */
  60. .chat-line__message--emote-button,
  61. .chat-line__message--emote-button img,
  62. [data-test-selector="emote-button"] {
  63. pointer-events: none;
  64. }
  65. `;
  66. document.body.appendChild(style);
  67. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址