您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Microsoft Copilot website is more suitable for wide screens.
当前为
- /* ==UserStyle==
- @name Microsoft Copilot responsive + customizations
- @version 1.0.1
- @description Microsoft Copilot website is more suitable for wide screens.
- @author BreatFR (https://breat.fr)
- @namespace https://gitlab.com/breatfr
- @homepageURL https://gitlab.com/breatfr/microsoft-copilot
- @supportURL https://discord.gg/Q8KSHzdBxs
- @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
- @preprocessor stylus
- @var checkbox chatmode "Chat mode" 1
- @var text fontsize "Font size" 1.2rem
- @var checkbox hidecopilotpro "Hide Copilot Pro" 1
- @var checkbox hidedownloadapp "Hide Download Application" 1
- @var checkbox widemode "Wide mode" 1
- ==/UserStyle== */
- /* === Credits ===
- Website https://breat.fr
- facebook https://www.facebook.com/breatfroff
- mastodon https://mastodon.social/@breat_fr
- telegram https://t.me/breatfr
- vk https://vk.com/breatfroff
- X (twitter) https://x.com/breatfroff
- === Credits === */
- @-moz-document domain("copilot.microsoft.com") {
- /* =============================================
- Whole website
- ============================================= */
- /* Font size */
- .text-3xs,
- .text-base,
- .text-sm,
- p,
- span {
- font-size: fontsize !important;
- line-height: 1.5 !important;
- }
- /* Fix background for source number with bigger font size */
- .dark\\:bg-slate-750:is([data-theme=dark] *),
- .light\\:bg-slate-750:is([data-theme=light] *) {
- height: auto;
- padding: 0 .5em;
- }
- if hidecopilotpro {
- [data-testid="settings-menu"] > div > div:nth-of-type(1) {
- display: none;
- }
- }
- if hidedownloadapp {
- [data-testid="settings-menu"] > div > button[data-testid="promotion-button"],
- [data-testid="settings-menu"] > div > div:nth-of-type(4) {
- display: none;
- }
- }
- if widemode {
- [data-testid="composer"] > div:nth-of-type(2) > div,
- [data-testid="composer"] > div:nth-of-type(2) > div > div:nth-of-type(2) > div > div {
- max-width: 100%;
- width: 100%
- }
- [data-testid="settings-menu"] > div > div:last-child {
- flex-wrap: nowrap;
- white-space: nowrap;
- }
- [data-testid="settings-menu"] > div > div:last-child > a:first-child {
- order: 3;
- }
- }
- }
- @-moz-document url("https://copilot.microsoft.com/") {
- /* ===================================================
- Discover page
- =================================================== */
- if widemode {
- [data-testid="discover-page"] > div {
- max-width: 100%;
- width: 100%
- }
- [data-testid="discover-page"] > div > section > div {
- display: flex;
- flex-wrap: wrap;
- gap: 2em;
- justify-content: center;
- }
- [data-testid="discover-page"] > div > section > div > button,
- [data-testid="discover-page"] > div > section > div > div {
- width: 30%;
- }
- [data-testid="discover-page"] > div > section > div > button > div,
- [data-testid="discover-page"] > div > section > div > div > div {
- flex-direction: column;
- }
- [data-testid="discover-page"] > div > section > div > button > div > div,
- [data-testid="discover-page"] > div > section > div > div > div > div {
- font-size: 1.5rem;
- font-variation-settings: "opsz" 40, "wght" 440;
- justify-content: center;
- line-height: 1.9375rem;
- letter-spacing: -.01em;
- padding-inline-end: 1rem;
- padding-bottom: 1.25rem;
- }
- [data-testid="discover-page"] > div > section > div > button > div > div > h2,
- [data-testid="discover-page"] > div > section > div > div > div > div > h2 {
- text-align: center;
- }
- [data-testid="discover-page"] > div > section > div > button > div > img,
- [data-testid="discover-page"] > div > section > div > div > div > img {
- flex-shrink: 1;
- object-fit: cover;
- width: 100%
- }
- }
- }
- @-moz-document url-prefix("https://copilot.microsoft.com/chats/") {
- /* ================================================================
- Chats
- ================================================================ */
- if chatmode {
- [data-content="ai-message"] {
- max-width: 80%;
- }
- }
- if widemode {
- [data-content="conversation"]{
- max-width: 100%;
- width: 100%
- }
- }
- }