Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isevcik/606a52140590fc01de7595e2a13e9a0b to your computer and use it in GitHub Desktop.
Save isevcik/606a52140590fc01de7595e2a13e9a0b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Youtube - remove autoplay in user chanel
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/channel/*
// @match https://www.youtube.com/user/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const observer = new MutationObserver(function(mutations) {
const video = document.querySelector("video");
if (video) {
video.pause();
}
observer.observe(document, {attributes: false, childList: true, characterData: false, subtree: true});
})();
@dkdjjdhd
Copy link

dkdjjdhd commented Oct 4, 2020

Free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment