您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces all images (including JPG, PNG, GIF, etc.) on the page with an animated smiley.
- // ==UserScript==
- // @name Replace Images with Animated Smiley
- // @namespace your-namespace
- // @version 1.0
- // @description Replaces all images (including JPG, PNG, GIF, etc.) on the page with an animated smiley.
- // @author Your Name
- // @match https://zelenka.guru/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var smileyImageUrl = 'https://lztcdn.com/files/310336b3-c10e-4ad1-8fdf-0bbe73835ca1.webp';
- function replaceImagesWithSmiley() {
- var images = document.querySelectorAll('img, span.img.m');
- for (var i = 0; i < images.length; i++) {
- if (images[i].tagName === 'IMG') {
- images[i].src = smileyImageUrl;
- } else if (images[i].style.backgroundImage) {
- images[i].style.backgroundImage = 'url(' + smileyImageUrl + ')';
- }
- }
- }
- replaceImagesWithSmiley(); // Replace images initially
- // Set an interval to check and replace images every second
- setInterval(replaceImagesWithSmiley, 1000);
- })();