Douban Widescreen Optimizer

Optimize Douban layout for widescreen displays, utilizing full screen width with modern responsive design

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Fejlesztő
Lamires
Napi telepítések
0
Telepítések száma
5
Értékelések
0 0 0
Verzió
1.0.9
Létrehozva
2026.06.07.
Frissítve
2026.06.13.
Size
30 KB
Licensz
MIT
Érvényes

Douban Widescreen Optimizer | 豆瓣宽屏优化

优化豆瓣网页在宽屏显示器(1920px+)下的布局,充分利用屏幕空间。

Optimize Douban's layout for widescreen displays, making better use of available screen space.


✨ 核心功能 / Core Features

📐 智能宽度适配

  • 自动将内容容器扩展到视口宽度的 90-95%
  • 宽屏(1920px+):容器扩展到约 1800px
  • 窄屏(<1200px):优雅降级保持可读性

🎯 稳健双栏布局

  • 基于 Flexbox 的布局,侧边栏永不掉到底部
  • 文章列:灵活宽度(最小 600px)
  • 侧边栏:固定 320px 宽度

🚀 轻量高性能

  • 脚本大小:~15KB
  • 加载时间:<2ms
  • CSS 驱动,无持续计算

🔧 技术实现 / Implementation

使用现代 CSS 技术:

  • Flexbox 布局.grid-16-8.clearfix 使用 display: flex
  • 响应式断点:1200px、768px、480px 三个断点
  • 动态样式注入:页面加载时自动应用
.grid-16-8.clearfix {
    display: flex !important;
    gap: 24px !important;
}

.article {
    flex: 1 1 70% !important;
    min-width: 600px !important;
}

.aside {
    flex: 0 0 320px !important;  /* 固定宽度 */
}

🔌 兼容性 / Compatibility

✅ 浏览器支持

  • Chrome 80+、Firefox 75+、Safari 13+、Edge 80+

✅ 用户脚本管理器

  • Tampermonkey(推荐)、Greasemonkey、Violentmonkey

✅ 兼容第三方脚本

本脚本与以下脚本完全兼容:

✅ 支持的页面

  • 电影/图书/音乐详情页和列表页
  • 小组讨论页
  • 用户个人页

⚠️ AI 生成声明

本项目在开发过程中使用了 AI 技术的辅助。所有代码和文档都经过人工审查和测试。

This project was developed with AI assistance. All code and documentation have been reviewed and tested by humans.


📄 许可证 / License

MIT License

Copyright (c) 2026 Better Douban Team

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


📈 版本历史

v1.0.4 (2026-06-08) - 当前版本

  • ✅ 修复宽屏下侧边栏掉到底部的问题
  • ✅ 使用 Flexbox 布局替代 float

v1.0.3 - 兼容 scripts1.json 和 scripts2.json

v1.0.2 - 详情页评分区域移至右侧

v1.0.1 - 修复选择器过于宽泛的问题

v1.0.0 - 初始版本


🔗 相关链接


最后更新:2026-06-08