Larger Twitch squad player

Removes the title bar in Twitch squad streams to increase the player size

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Larger Twitch squad player
// @description Removes the title bar in Twitch squad streams to increase the player size
// @namespace   https://github.com/Sv443/larger-twitch-squad-player
// @match       *://www.twitch.tv/*/squad
// @grant       none
// @license     MIT
// @version     1.2
// @author      Sv443
// @run-at      document-start
// @icon        https://icons.duckduckgo.com/ip3/twitch.tv.ico
// @require     https://update.greasyfork.org/scripts/472956/1279362/UserUtils.js
// ==/UserScript==

"use strict";

document.addEventListener("DOMContentLoaded", removeBar);

function removeBar() {
  try {
    const obs = new UserUtils.SelectorObserver(document.body);
    obs.enable();

    obs.addListener(".squad-stream-top-bar__container", {
      listener: (bar) => {
        bar.remove();
        console.info("Removed title bar.\nUserscript by Sv443: https://github.com/Sv443/larger-twitch-squad-player");
      }
    });
  }
  catch(err) {
    console.error("Couldn't remove title bar:", err);
  }
}