Skip to content

Instantly share code, notes, and snippets.

@PeteHaughie
Last active August 20, 2025 12:27
Show Gist options
  • Select an option

  • Save PeteHaughie/410c76c29ca113d0c0ba05488b01dd0f to your computer and use it in GitHub Desktop.

Select an option

Save PeteHaughie/410c76c29ca113d0c0ba05488b01dd0f to your computer and use it in GitHub Desktop.
Disable Reddit Video Autoplay Tampermonkey Script
// ==UserScript==
// @name Disable Reddit Video Autoplay
// @namespace http://tampermonkey.net/
// @version 2025-08-20
// @description A simple script to disable the media autoplay on Reddit.com which they refuse to fix for desktop
// @author Pete Haughie
// @match https://www.reddit.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
let mediaElements = document.querySelectorAll("shreddit-player-2");
mediaElements.forEach(el => {
el.removeAttribute("autoplay");
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment