Hide Useless Elements in Figma

Hide useless elements in Figma, such as floating help button, upgrade section and free team badge

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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

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

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

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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);
})();