Hide Useless Elements in Figma

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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