您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Elimina videos automáticamente desde tu perfil en TikTok Web
// ==UserScript==
// @name TikTok Auto Video Deleter
// @namespace https://tiktok.com/
// @version 1.0
// @description Elimina videos automáticamente desde tu perfil en TikTok Web
// @author ChatGPT
// @match https://www.tiktok.com/@*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let deleting = false;
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function deleteNextVideo() {
if (deleting) return;
deleting = true;
const videoThumbs = document.querySelectorAll('a[href*="/video/"]');
if (videoThumbs.length === 0) {
console.log("No hay más videos en pantalla.");
deleting = false;
return;
}
for (let i = 0; i < videoThumbs.length; i++) {
videoThumbs[i].click();
await sleep(3000);
// Haz clic en los 3 puntos
const moreOptions = document.querySelector('button[aria-label="More actions"]');
if (moreOptions) moreOptions.click();
await sleep(1000);
// Haz clic en "Eliminar"
const deleteButton = Array.from(document.querySelectorAll('div')).find(div => div.innerText === 'Eliminar');
if (deleteButton) deleteButton.click();
await sleep(1000);
// Confirma eliminación
const confirmButton = Array.from(document.querySelectorAll('button')).find(btn => btn.innerText === 'Eliminar');
if (confirmButton) confirmButton.click();
await sleep(3000);
// Cierra el modal o vuelve atrás
const closeBtn = document.querySelector('svg[aria-label="Close"]');
if (closeBtn) closeBtn.parentElement.click();
await sleep(2000);
}
deleting = false;
console.log("Proceso de eliminación finalizado.");
}
// Activa con tecla D
document.addEventListener('keydown', (e) => {
if (e.key === 'd' || e.key === 'D') {
console.log("Iniciando eliminación de videos...");
deleteNextVideo();
}
});
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址