您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
LZTCDN Mirror 02.10.23
- // ==UserScript==
- // @name LZTCDN Mirror
- // @namespace LZTCDN Mirror
- // @version 0.2
- // @description LZTCDN Mirror 02.10.23
- // @author Toil
- // @match https://zelenka.guru/*
- // @match https://lolz.live/*
- // @match https://lolz.guru/*
- // @match https://lzt.market/*
- // @match https://lolz.market/*
- // @match https://zelenka.market/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=zelenka.guru
- // @license MIT
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- function init() {
- const images = document.getElementsByTagName('img');
- for (var i = 0; i < images.length; i++) {
- const img = images[i];
- const src = img.getAttribute('src');
- if (src && src.includes('lztcdn.com')) {
- const newSrc = src.replace('lztcdn.com', 'nztcdn.com');
- img.setAttribute('src', newSrc);
- }
- }
- }
- const observer = new MutationObserver((mutationsList, observer) => {
- for (const mutation of mutationsList) {
- if (mutation.type === 'childList') {
- setTimeout(function() {
- init();
- },1000);
- }
- }
- });
- const config = { childList: true, subtree: true };
- observer.observe(document.body, config);
- init();
- })();