stickerBotCDNChange

sticker Bot CDN Change

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Advertisement:

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Advertisement:

// ==UserScript==
// @name         stickerBotCDNChange
// @namespace    http://tampermonkey.net/
// @version      2024-03-26
// @description  sticker Bot CDN Change
// @author       Logo
// @match        https://beta.2fools.app/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=2fools.app
// @grant        none
// @license MIT
// ==/UserScript==
let imgLength = 0;
let fun = ()=>{
    let imgs = document.getElementsByTagName('img');
    if(imgLength!==imgs.length){
        for(let i = imgLength;i<imgs.length;i++){
            const match = /https:\/\/tgs-files.oss-accelerate.aliyuncs.com/.exec(imgs[i].src)
            if(match){
                imgs[i].src = imgs[i].src.replace('https://tgs-files.oss-accelerate.aliyuncs.com','https://tgs.sgp1.digitaloceanspaces.com')
            }
        }
        imgLength = imgs.length;
    }
}
setInterval(fun,1000);