Greasy Fork is available in English.
TikTok自动播放
// ==UserScript==
// @name TikTok网页自动播放
// @namespace 无
// @version 0.1
// @description TikTok自动播放
// @author Annie
// @match https://www.tiktok.com/*
// @icon https://www.tiktok.com/*
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
window.onload = f;
function f() {
var setInt = setInterval(function(){
var DYvideo = document.querySelector("video");
if(DYvideo){
if(DYvideo.ended){
var element = document.getElementsByClassName("tiktok-2xqv0y-ButtonBasicButtonContainer-StyledVideoSwitchV2")[0];
if (element) element.click();
}
}
},1)
}
})();