您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix scroll issues on ChatGPT for Safari iOS 15/16
当前为
- // ==UserScript==
- // @name ChatGPT Scroll Fix 1
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Fix scroll issues on ChatGPT for Safari iOS 15/16
- // @author sharmanhall
- // @match https://chatgpt.com/*
- // @match https://chat.openai.com/*
- // @license MIT
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- // Allow scrolling on all possible containers
- const elements = [
- document.documentElement,
- document.body,
- document.querySelector('main'),
- document.querySelector('.overflow-hidden'),
- document.querySelector('[role="presentation"]'),
- ...document.querySelectorAll('.overflow-hidden'),
- ...document.querySelectorAll('[style*="overflow: hidden"]'),
- ...document.querySelectorAll('[style*="position: fixed"]')
- ];
- elements.forEach(el => {
- if (el) {
- el.style.cssText = `
- overflow: auto !important;
- position: relative !important;
- height: auto !important;
- max-height: none !important;
- overscroll-behavior: auto !important;
- -webkit-overflow-scrolling: touch !important;
- `;
- }
- });
- // Force layout recalculation
- window.dispatchEvent(new Event('resize'));
- // Remove any classes that might block scrolling
- document.querySelectorAll('*').forEach(el => {
- if (el.classList.contains('overflow-hidden')) {
- el.classList.remove('overflow-hidden');
- }
- });
- })();