RedGif Embeded Video Fix

RedGif Embeded Video Fix!

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

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

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!)

Autor
bigbear2sfc
Denně instalací
3
Celkem instalací
3
Hodnocení
0 0 0
Verze
0.10
Vytvořeno
29. 03. 2026
Aktualizováno
29. 03. 2026
Size
6,8 KB
Licence
MIT
Spustit na

🎬 RedGif Embedded Video Fix

A Tampermonkey/Greasemonkey userscript that fixes various issues with RedGif videos embedded in third-party pages.

🌟 Features

  • Disables automatic loop - Videos no longer repeat endlessly
  • 🔊 Automatically enables audio - Clicks the sound button on startup
  • 🔗 Blocks navigation links - Prevents leaving the page when clicking on links
  • 🎮 Play/Stop Toggle - Click on the video backdrop to pause/play
  • 🔄 Dynamic detection - Handles dynamically loaded elements
  • 🐛 Debug mode - Toggle logs from console with toggleDebug()

📦 Installation

  1. Install Tampermonkey (Chrome/Edge) or Greasemonkey (Firefox)
  2. Click this link to install the script
  3. Or create a new script and paste the code manually

🎯 How it works

The script automatically intervenes when you visit a page with URL https://www.redgifs.com/ifr/* (typically RedGif embeds) and:

  1. Waits for the page to fully load
  2. Finds and disables the loop attribute on all video tags
  3. Locates and clicks the sound button (.SoundButton)
  4. Blocks all links pointing to /watch/ by replacing them with #
  5. Adds a listener to the backdrop for click-to-play/pause control
  6. Monitors for any dynamically loaded elements

🛠️ Usage

The script works completely automatically. No user interaction is required.

Debug mode

To see debug logs in the browser console:

// Enable/disable logs
toggleDebug()

// Current status will be shown:
// "Debug mode: ON" or "Debug mode: OFF"