哔哩哔哩(小)竖屏布局优化

用于优化小屏幕设备(尤其是1080P屏幕竖过来这种)上的竖屏布局

  1. // ==UserScript==
  2. // @name 哔哩哔哩(小)竖屏布局优化
  3. // @namespace http://tampermonkey.net/
  4. // @version 24.10.1
  5. // @description 用于优化小屏幕设备(尤其是1080P屏幕竖过来这种)上的竖屏布局
  6. // @author You
  7. // @match https://www.bilibili.com/?*
  8. // @match https://www.bilibili.com/
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. // 创建一个新的style元素
  18. var style = document.createElement('style');
  19. style.setAttribute('tag', 'ctu')
  20. // 设置style的内容,隐藏具有特定类名的元素
  21. style.innerHTML = '.recommended-swipe { display: none !important; }';
  22. style.innerHTML = style.innerHTML + `.recommended-container_floor-aside .container>*{ margin-top: 0px !important; }`;
  23. style.innerHTML = style.innerHTML + `body { min-width: 0px !important; }`;
  24. style.innerHTML = style.innerHTML + `main { max-width: calc(100% - 50px) !important; }`;
  25.  
  26. // 将style元素添加到head中
  27. document.head.appendChild(style);
  28.  
  29. })();

QingJ © 2025

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