Hide Octotree

It hides the Octotree button.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

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

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 Octotree
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  It hides the Octotree button.
// @author       You
// @match        https://github.com/*
// @icon         https://assets.stickpng.com/images/5847f98fcef1014c0b5e48c0.png
// @grant        none
// @license MIT
// ==/UserScript==

window.addEventListener("load", (event) => {
    const bar = document.getElementsByClassName("octotree-toggle");
    bar[0].style = "opacity: 0;position: absolute;width: 10px;height: 100%;left: 215px;"
});