您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
remove dingtalk boss image
当前为
// ==UserScript== // @name publink-remove-dingtalk-boss-image // @namespace http://tampermonkey.net/ // @version 0.4 // @description remove dingtalk boss image // @author huangbc // @include *://* // @license MIT // @icon https://www.google.com/s2/favicons?sz=64&domain=shb.ltd // @grant none // ==/UserScript== (function() { 'use strict'; function remove() { // 目标 URL const targetUrl = "https://static.dingtalk.com/media/lADPDhmOzyk-JUfNAbLNAbI"; // 获取所有 img 元素 const images = document.querySelectorAll('img'); console.log('images', images); // 遍历所有 img 元素 images.forEach((img) => { // 检查 img 的 src 属性是否包含目标 URL if (img.src.includes(targetUrl)) { // 删除该 img 元素 img.parentNode.remove(); } }); } const times = [0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000]; times.forEach((time) => { setTimeout(remove, time); }) })();