找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1322|回复: 11

ChatGPT 故障,点击添加文件这个位置按钮,疯狂闪烁,

[复制链接]

7

主题

194

回帖

2604

积分

金牌会员

积分
2604
发表于 2026-8-9 17:56:23 | 显示全部楼层 |阅读模式
本帖最后由 8978去二娃阿 于 2026-8-9 21:29 编辑

ChatGPT  故障,ChatGPT 的对话框位置,点击添加文件这些按钮,疯狂闪烁,已测试重新下载百分浏览器,完全空白百分的,也是这样、别的浏览器正常!





AI了一套脚本,已解决ChatGPT按钮闪烁问题,这个BUG只能等百分浏览器大更新了。




// ==UserScript==
// @name         ChatGPT Cent Browser popover=hint 完整修复
// @namespace    centbrowser-chatgpt-fix
// @version      1.1
// @description  修复 Cent Browser / Chromium 134 下 ChatGPT popover="hint" 闪烁及底部残留细线
// @match        https://chatgpt.com/*
// @match        https://chat.openai.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    // ============================================================
    // 1. CSS 强制隐藏所有 popover="hint"
    //    防止 Chromium 134 top-layer 绘制造成闪烁/底部细线
    // ============================================================

    const style = document.createElement('style');

    style.textContent = `
        [popover="hint"] {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;

            border: 0 !important;
            outline: 0 !important;
            box-shadow: none !important;
            background: transparent !important;

            width: 0 !important;
            height: 0 !important;
            min-width: 0 !important;
            min-height: 0 !important;

            padding: 0 !important;
            margin: 0 !important;

            pointer-events: none !important;
        }

        [popover="hint"]::backdrop {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
            background: transparent !important;
        }
    `;

    function addStyle() {
        if (document.head) {
            document.head.appendChild(style);
        } else {
            document.documentElement.appendChild(style);
        }
    }

    addStyle();


    // ============================================================
    // 2. 在 hint 打开之前直接取消
    // ============================================================

    document.addEventListener(
        'beforetoggle',
        function (event) {

            if (event.newState !== 'open') return;

            const target = event.target;

            if (
                target instanceof HTMLElement &&
                target.getAttribute('popover') === 'hint'
            ) {
                event.preventDefault();
            }

        },
        true
    );


    // ============================================================
    // 3. 如果 Chromium 134 偶尔仍然错误打开 hint
    //    马上关闭
    // ============================================================

    document.addEventListener(
        'toggle',
        function (event) {

            const target = event.target;

            if (
                target instanceof HTMLElement &&
                target.getAttribute('popover') === 'hint'
            ) {

                try {
                    if (target.matches(':popover-open')) {
                        target.hidePopover();
                    }
                } catch (_) {
                    // Chromium 旧版本忽略
                }
            }

        },
        true
    );


    // ============================================================
    // 4. ChatGPT 是 React 动态页面
    //    对后来生成的 hint 再做一次保险处理
    // ============================================================

    const observer = new MutationObserver(function (mutations) {

        for (const mutation of mutations) {

            for (const node of mutation.addedNodes) {

                if (!(node instanceof HTMLElement)) continue;

                if (node.getAttribute('popover') === 'hint') {
                    suppressHint(node);
                }

                node.querySelectorAll?.('[popover="hint"]').forEach(
                    suppressHint
                );
            }
        }
    });


    function suppressHint(el) {

        try {
            if (el.matches(':popover-open')) {
                el.hidePopover();
            }
        } catch (_) {}

        // 再加一道保险
        el.style.setProperty('display', 'none', 'important');
        el.style.setProperty('visibility', 'hidden', 'important');
        el.style.setProperty('opacity', '0', 'important');
        el.style.setProperty('border', '0', 'important');
        el.style.setProperty('box-shadow', 'none', 'important');
        el.style.setProperty('outline', '0', 'important');
        el.style.setProperty('pointer-events', 'none', 'important');
    }


    function startObserver() {

        if (!document.documentElement) {
            requestAnimationFrame(startObserver);
            return;
        }

        observer.observe(document.documentElement, {
            childList: true,
            subtree: true
        });
    }

    startObserver();

    console.log(
        '[Cent Browser Fix] ChatGPT popover="hint" 闪烁/残留线修复已启用'
    );

})();

PixPin_2026-08-09_18-09-44.gif
回复

使用道具 举报

31

主题

1828

回帖

1万

积分

论坛元老

积分
10279
发表于 2026-8-9 18:49:23 | 显示全部楼层
表示没有这个问题,你应该检查你和别人哪里不一样,比如字体就明显不一样了
回复

使用道具 举报

7

主题

194

回帖

2604

积分

金牌会员

积分
2604
 楼主| 发表于 2026-8-9 19:11:00 | 显示全部楼层
gh0ul 发表于 2026-8-9 18:49
表示没有这个问题,你应该检查你和别人哪里不一样,比如字体就明显不一样了 ...

你可以试试看,不要直接点按按钮,就鼠标快速左右滑动过,这些按钮位置,有没有闪烁呢。
回复

使用道具 举报

7

主题

194

回帖

2604

积分

金牌会员

积分
2604
 楼主| 发表于 2026-8-9 19:15:44 | 显示全部楼层
gh0ul 发表于 2026-8-9 18:49
表示没有这个问题,你应该检查你和别人哪里不一样,比如字体就明显不一样了 ...

回复

使用道具 举报

12

主题

1万

回帖

2万

积分

超级版主

(^^ゞ

积分
28806
发表于 2026-8-9 20:20:04 | 显示全部楼层
似乎是 150 内核版本前 popover="hint" 属性的 bug,详情可参考:popover=hint has multiple weird and inconsistent behaviours。
¯\(°_o)/¯
回复

使用道具 举报

匿名  发表于 2026-8-9 20:23:29
只能换浏览器了,没办法
回复

使用道具

7

主题

194

回帖

2604

积分

金牌会员

积分
2604
 楼主| 发表于 2026-8-9 21:12:00 | 显示全部楼层
S8F8ry 发表于 2026-8-9 20:20
似乎是 150 内核版本前 popover="hint" 属性的 bug,详情可参考:popover=hint has multiple weird and in ...

那确实没办法了,只能等百分浏览器更新了。
回复

使用道具 举报

31

主题

1828

回帖

1万

积分

论坛元老

积分
10279
发表于 2026-8-9 22:50:47 | 显示全部楼层
8978去二娃阿 发表于 2026-8-9 19:11
你可以试试看,不要直接点按按钮,就鼠标快速左右滑动过,这些按钮位置,有没有闪烁呢。
...

我一直就没有点啊,就是从上面掠过,不闪啊

用stylus换字体,第一次略过会闪,后面不会闪
回复

使用道具 举报

24

主题

233

回帖

6734

积分

论坛元老

积分
6734
发表于 2026-8-10 03:10:25 | 显示全部楼层
哈哈哈,这不是巧了吗,我昨天也刚好在问这个问题,最终判断出来就是内核问题: PixPin_2026-08-10_03-09-49.png
回复

使用道具 举报

0

主题

779

回帖

4313

积分

论坛元老

积分
4313
发表于 2026-8-10 12:40:48 | 显示全部楼层
试了下 确实有 疯狂闪也没有吧
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|百分浏览器论坛

GMT+8, 2026-10-19 00:39 , Processed in 0.011281 second(s), 6 queries , Redis On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表