Poe优化

开启Poe宽屏模式

  1. // ==UserScript==
  2. // @name Poe优化
  3. // @namespace https://www.yffjglcms.com/
  4. // @version 0.1
  5. // @description 开启Poe宽屏模式
  6. // @author yffjglcms
  7. // @match https://poe.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=poe.com
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // Your code here...
  17.  
  18. // 创建新的<style>标签
  19. var styleTag = document.createElement("style");
  20. styleTag.type = "text/css";
  21. styleTag.id = "yffjglcms-css";
  22.  
  23. // 添加要覆盖的样式规则
  24. var css = `
  25. div[class^="ChatPageMain_container"] {
  26. max-width: calc(2*var(--desktop-reading-column-max-width)) !important;
  27. }
  28.  
  29. div[class^="MainColumn_column"] {
  30. width: 100% !important;
  31. }
  32.  
  33. div[class^="Message_botMessageBubble"] {
  34. width: calc(2*var(--desktop-reading-column-max-width)) !important;
  35. }
  36. `;
  37. styleTag.appendChild(document.createTextNode(css));
  38.  
  39. // 将<style>标签插入到文档头部
  40. document.head.appendChild(styleTag);
  41.  
  42. })();

QingJ © 2025

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