allenaicss

Force code wrapping and unset chat message display

当前为 2025-05-19 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name allenaicss
  3. // @description Force code wrapping and unset chat message display
  4. // @match https://playground.allenai.org/*
  5. // @version 0.0.1.20250519103300
  6. // @namespace https://greasyfork.org/users/1435046
  7. // ==/UserScript==
  8.  
  9. (function() {
  10. const style = document.createElement('style');
  11. style.textContent = `
  12. .chat-message {
  13. display: unset;
  14. }
  15.  
  16. code {
  17. white-space: pre-wrap;
  18. }
  19.  
  20. .MuiBox-root {
  21. padding: 0;
  22. }
  23. `;
  24. document.head.appendChild(style);
  25. })();