video operation

some video operation

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

Advertisement:

// ==UserScript==
// @name         video operation
// @namespace    https://greasyfork.org/zh-CN/users/927158-gueson
// @version      0.1
// @description  some video operation
// @author       gueson
// @match        *://www.ys900.com/v_play/*
// @match        *://www.naifei.org/vodplay/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...setInterval setTimeout
    setInterval(() => {
        console.log('number', Math.random() * 10)
        const videos = document.getElementsByTagName('video')
        console.log('videos', JSON.stringify(videos))
        const iframe = document.getElementsByTagName('iframe')
        console.log('iframe', JSON.stringify(iframe))
        console.log('document1', JSON.stringify(document))
        console.log('body', JSON.stringify(document.body))
        console.log('window', JSON.stringify(window))

        for (var i = 0; i < videos.length; i++) {
				var current_video = videos[i]
                console.log('test', i)
				// 静音
				current_video.volume = 10
				// 2倍速
				 current_video.playbackRate = 3.0
				if (current_video.paused) {
					current_video.play()
				}
			}
    }, 1000)
})();