您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
remove dingtalk boss image
- // ==UserScript==
- // @name publink-remove-dingtalk-boss-image
- // @namespace http://tampermonkey.net/
- // @version 0.6
- // @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');
- // 遍历所有 img 元素
- images.forEach((img) => {
- // 检查 img 的 src 属性是否包含目标 URL
- if (img.src.includes(targetUrl)) {
- // 删除该 img 元素
- img.parentNode.remove();
- }
- });
- }
- // 从 0 秒开始,每隔 100ms 执行一次 remove 函数
- let times = [0]
- for (let i = 0; i < 1000; i++) {
- times.push(i * 100);
- }
- times.forEach((time) => {
- setTimeout(remove, time);
- })
- setInterval(remove, 2000);
- remove();
- })();