Greasy Fork 还支持 简体中文。

Claude Artifact Width Fix

Override Tailwind's max-w-3xl class to remove width restrictions

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Claude Artifact Width Fix
// @namespace    https://github.com/nandonakisg
// @version      1.0
// @description  Override Tailwind's max-w-3xl class to remove width restrictions
// @author       nandonakis
// @match       https://claude.ai/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=claude.ai
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
	'use strict';
	
	// Create style element
	const style = document.createElement('style');
	style.textContent = `
		/* Override Tailwind max-w-3xl class */
		.max-w-3xl {
			max-width: none !important;
		}
	`;
	
	// Add style to document - wait for head to exist
	if (document.head) {
		document.head.appendChild(style);
	} else {
		// At document-start, head might not exist yet - observe until it does
		const observer = new MutationObserver(() => {
			if (document.head) {
				document.head.appendChild(style);
				observer.disconnect();
			}
		});
		observer.observe(document.documentElement, { childList: true });
	}
})();