()
| 97 | let isEnter = true |
| 98 | //MAX WIGHT |
| 99 | function addMaxWidthCSS() { |
| 100 | //! https://greasyfork.org/scripts/494023 |
| 101 | const css = ` |
| 102 | .text-token-text-primary>div>div{max-width:100%!important}; |
| 103 | min-w-fit>div{max-width:100%!important} |
| 104 | }` |
| 105 | function applyStyles() { |
| 106 | if (typeof GM_addStyle !== 'undefined') { |
| 107 | GM_addStyle(css) |
| 108 | } else { |
| 109 | let styleNode = document.createElement('style') |
| 110 | styleNode.appendChild(document.createTextNode(css)); |
| 111 | (document.querySelector('head') || document.documentElement).appendChild(styleNode) |
| 112 | } |
| 113 | } |
| 114 | applyStyles() |
| 115 | setInterval(() => { |
| 116 | const styles = document.querySelectorAll('style') |
| 117 | const styleExists = Array.from(styles).some(style => style.textContent.includes(css)) |
| 118 | if (!styleExists) { |
| 119 | applyStyles() |
| 120 | } |
| 121 | }, 300) |
| 122 | } |
| 123 | addMaxWidthCSS() |
| 124 | // Your code here... |
| 125 | window.addEventListener('load', function () { |
no test coverage detected