临时修复CPA在较小屏幕上显示问题的油猴脚本

2026-04-11 11:210阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

CPA的认证文件管理对笔记本屏幕不太友好,临时用油猴修复了一下(仅针对简洁模式),现在简洁模式能看了

修复前

修复前1605×888 116 KB

修复后

修复后1580×848 116 KB

油猴脚本

// ==UserScript== // @name CPA布局优化 // @namespace https://CPA.YOUR_SITE.com/ // @version 1.0.0 // @description 调整文件网格、筛选区和侧边栏宽度,缓解元素挤在一起的问题 // @match https://CPA.YOUR_SITE.com/* // @run-at document-idle // @grant none // ==/UserScript== (function () { 'use strict'; const STYLE_ID = 'relay-layout-optimization-style'; function injectStyle() { if (document.getElementById(STYLE_ID)) return; const style = document.createElement('style'); style.id = STYLE_ID; style.textContent = ` /* 1) 文件网格:4列改为3列 */ [class^="AuthFilesPage-module__fileGridCompact___"], [class*=" AuthFilesPage-module__fileGridCompact___"] {

阅读全文
问题描述:

CPA的认证文件管理对笔记本屏幕不太友好,临时用油猴修复了一下(仅针对简洁模式),现在简洁模式能看了

修复前

修复前1605×888 116 KB

修复后

修复后1580×848 116 KB

油猴脚本

// ==UserScript== // @name CPA布局优化 // @namespace https://CPA.YOUR_SITE.com/ // @version 1.0.0 // @description 调整文件网格、筛选区和侧边栏宽度,缓解元素挤在一起的问题 // @match https://CPA.YOUR_SITE.com/* // @run-at document-idle // @grant none // ==/UserScript== (function () { 'use strict'; const STYLE_ID = 'relay-layout-optimization-style'; function injectStyle() { if (document.getElementById(STYLE_ID)) return; const style = document.createElement('style'); style.id = STYLE_ID; style.textContent = ` /* 1) 文件网格:4列改为3列 */ [class^="AuthFilesPage-module__fileGridCompact___"], [class*=" AuthFilesPage-module__fileGridCompact___"] {

阅读全文