Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tampermonkey script for pausing autoplaying videos on pinterest only
// ==UserScript==
// @name Pinterest Autoplay Remover
// @namespace
// @version 0.1
// @description pauses autoplaying / looping videos
// @author @noopkat
// @match
// @grant none
// ==/UserScript==
// beware: this is quick and dirty because it gets the job done and that's all I care about.
(function() {
'use strict';
const observer = new MutationObserver((mutations) => document.querySelectorAll('video').forEach(video => video.pause()));
const observerConfig = {
childList: true,
subtree: true
const targetNode = document.body;
observer.observe(targetNode, observerConfig);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.