您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove profile picture in chatgpt site
当前为
// ==UserScript== // @name ChatGPT Remove Profile Picture // @namespace fabulous.cupcake.jp.net // @version 2023.04.08.1 // @author FabulousCupcake // @description Remove profile picture in chatgpt site // @license MIT // @icon https://chat.openai.com/favicon.ico // @match https://chat.openai.com/chat* // @run-at document-idle // ==/UserScript== const blurImages = () => { const randomDeg = parseInt(Math.random() * 360,10); const style = `filter: invert(48%) sepia(68%) saturate(3337%) hue-rotate(${randomDeg}deg) brightness(66%) contrast(103%); border-radius: 50%;`; const imgs = Array.from(document.querySelectorAll(`img[alt*="@"]`)); imgs.forEach(img => { const origStyle = img.getAttribute("style"); img.setAttribute("style", `${origStyle};${style}`); }); } const waitForElementToExist = (selector, action) => { const elm = document.querySelector(selector); if (elm !== null) return action(elm); setTimeout(waitForElementToExist.bind(null, selector, action), 200); }; const main = () => { waitForElementToExist(`img[alt*="@"]`, blurImages); } main();