Remove Twitch AutoPlay

Removes the annoying auto-playing stream that takes up half the screen in a category

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

लेखक
Ryder7223
दैनिक इंस्टॉल
0
एकूण इंस्टॉल
14
रेटिंग
0 0 0
आवृत्ती
1.2
बनवली
2025-04-02
अपडेट केली
2025-04-02
आकार
1.05 KB
License
CC BY-ND 4.0; You may use this script but not modify or distribute modified versions.
यांवर लागू होते:

Remove Twitch Short

Overview

This userscript removes the annoying auto-playing stream that takes up a large portion of the screen in Twitch category pages. It works by detecting and removing the intrusive element as soon as it appears.

Features

  • Automatically removes the auto-playing stream in Twitch category pages.
  • Works dynamically with MutationObserver, ensuring the element is deleted even if loaded later.
  • Lightweight and efficient, stops observing after 30 seconds to prevent unnecessary performance impact.

Installation

  1. Install Tampermonkey (or a compatible userscript manager).
  2. Click here to install
  3. Enjoy a cleaner Twitch browsing experience!

Supported URLs

Technical Details

This script uses:

  • querySelectorAll to find and remove the targeted element.
  • MutationObserver to detect and remove dynamically loaded elements.
  • A 30-second timeout to prevent infinite observation.

Source Code

(function() {
  'use strict';

  function removeElements() {
    const els = document.querySelectorAll('div.Layout-sc-1xcs6mc-0.kyIYma');
    els.forEach(el => el.remove());
  }

  // Run once in case the element is already loaded
  removeElements();

  // Create a MutationObserver to watch for dynamically loaded elements
  const observer = new MutationObserver(() => removeElements());

  observer.observe(document.body, { childList: true, subtree: true });

  // Stop observing after a while (optional, to prevent infinite observation)
  setTimeout(() => observer.disconnect(), 30 * 1000); // Stops after 30 seconds
})();