Greasy Fork is available in English.
Automatically set playback rate to 1.5x on Vidplay and MyCloud videos
当前为
// ==UserScript==
// @name Vidplay / MyCloud Auto Playback Rate 1.5x
// @version 0.1
// @description Automatically set playback rate to 1.5x on Vidplay and MyCloud videos
// @author TellerTellerMoose
// @match https://mcloud.bz/*
// @match https://vid142.site/*
// @match https://megacloud.tv/*
// @icon https://static.vecteezy.com/system/resources/previews/003/833/977/non_2x/fast-delivery-icon-with-timer-fast-stopwatch-line-icon-fast-delivery-shipping-service-sign-speed-clock-symbol-urgency-deadline-time-management-competition-sign-stock-vector.jpg
// @license MIT
// @namespace https://github.com
// ==/UserScript==
(function() {
'use strict';
// Function to set playback rate
function setPlaybackRate(rate) {
let video = document.querySelector('video');
if (video) {
video.playbackRate = rate;
console.log(`Playback rate set to ${rate}`);
} else {
console.log("Video element not found.");
}
}
// Wait for the video element to load and then set the playback rate
function waitForVideo() {
let video = document.querySelector('video');
if (video) {
setPlaybackRate(1.5); // Set your desired playback rate here
} else {
setTimeout(waitForVideo, 1000); // Check again in 1 second
}
}
// Initiate the wait for video function
waitForVideo();
})();