Skip to content

Instantly share code, notes, and snippets.

@lainegrace
lainegrace / YouTubeDarkNoAutoplay.user.js
Last active April 4, 2023 18:33
A simple userscript with one line of code that sets a cookie on youtube to disable autoplay and switch to the new material dark theme.
// ==UserScript==
// @name YouTube: Dark, No autoplay
// @description A simple userscript with one line of code that sets a cookie on youtube to disable autoplay and switch to the new material dark theme.
// @namespace https://github.com/lainegrace
// @version 1.0
// @author Laine
// @match *://www.youtube.com/*
// @exclude *://www.youtube.com/tv*
// @exclude *://www.youtube.com/embed/*
// @run-at document-start