MCPcopy Index your code
hub / github.com/hoothin/UserScripts / pauseVideo

Function pauseVideo

Pagetual/pagetual.user.js:105–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103(function() {
104 'use strict';
105 const pauseVideo = () => {
106 setTimeout(() => {
107 [].forEach.call(document.querySelectorAll("video"), video => {
108 video.removeAttribute && video.removeAttribute("autoplay");
109 video.pause && video.pause();
110 video.muted = true;
111 });
112 }, 1000);
113 };
114 if (window.name === 'pagetual-iframe' || (window.frameElement && window.frameElement.name === 'pagetual-iframe')) {
115 [].forEach.call(document.querySelectorAll("iframe"), iframe => {
116 iframe.name = 'pagetual-iframe';

Callers 1

pagetual.user.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected