Grok SVG Width Fix

Find specific path and set its parent SVG width to 100%

Устаревшая версия за 06.07.2025. Перейдите к последней версии.

// ==UserScript==
// @name         Grok SVG Width Fix
// @description  Find specific path and set its parent SVG width to 100%
// @match        *://*.grok.com/*
// @version 0.0.1.20250706021635
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function() {
  document.addEventListener('DOMContentLoaded', () => {
    const path = document.querySelector('path[d^="M76.4462"]');
    if (!path) return;
    const svg = path.closest('svg');
    if (!svg) return;
    svg.style.setProperty('width', '100%', 'important');
  });
})();