您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
TikTok Ads
// ==UserScript== // @name Hide Prefix Content on TikTok Ads // @namespace http://tampermonkey.net/ // @version 0.81 // @description TikTok Ads // @author handsomeboy // @match https://ads.tiktok.com/i18n/* // @grant GM_addStyle // @require https://code.jquery.com/jquery-3.6.0.min.js // ==/UserScript== (function() { 'use strict'; let timerExists = false; const observer = new MutationObserver(() => { document.querySelectorAll('.prefix-content').forEach(element => { element.style.display = 'none'; console.log("元素已隐藏"); }); if (timerExists) { console.log("已有定时器已清除"); clearTimeout(timeoutId); } timerExists = true; timeoutId = setTimeout(() => { observer.disconnect(); console.log("观察已停止"); timerExists = false; }, 5000); }); observer.observe(document.body, { childList: true, subtree: true }); })();