隐藏 Figma 中的无用元素

隐藏 Figma 中的无用元素, 如悬浮帮助按钮, 付费升级提示, 免费团队标识

当前为 2022-11-11 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name               Hide Useless Elements in Figma
// @name:zh-CN         隐藏 Figma 中的无用元素
// @namespace          http://tampermonkey.net/
// @description        Hide useless elements in Figma, such as floating help button, upgrade section and free team badge
// @description:zh-CN  隐藏 Figma 中的无用元素, 如悬浮帮助按钮, 付费升级提示, 免费团队标识
// @version            0.1
// @author             ReekyStive
// @match              https://www.figma.com/*
// @icon               https://www.google.com/s2/favicons?sz=64&domain=figma.com
// @license            MIT
// @grant              none
// ==/UserScript==

(function() {
    'use strict';

    let hideHomeUpgradeSection = true;
    let hideHomeFreeTeamBadget = true;
    let hideHelpFloatButton = true;

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

    if (hideHomeUpgradeSection) {
        style.innerHTML += ' .upgrade_section--divider--2MVtg { display: none !important; } '
        style.innerHTML += ' .upgrade_section--redesignedUpgradeSection--1jT8s { display: none !important; } ';
    }
    if (hideHomeFreeTeamBadget) {
        style.innerHTML += ' .team_link--freeBadge--1RTa- { display: none !important; } '
    }
    if (hideHelpFloatButton) {
        style.innerHTML += ' .help_widget--helpWidgetContainer--2uGvh { display: none !important; } ';
    }

    document.body.appendChild(style);
})();