Greasy Fork is available in English.
替换ChatGPT里ai的头像 代码是ChatGPT写的,我不会JS
当前为
// ==UserScript==
// @name changeChatGPTImage
// @namespace changeChatGPTImage
// @version 0.2
// @description 替换ChatGPT里ai的头像 代码是ChatGPT写的,我不会JS
// @author mei
// @match https://chat.openai.com/chat
// @icon https://chat.openai.com/apple-touch-icon.png
// @grant none
// @license MIT
// ==/UserScript==
var link = "https://s3.bmp.ovh/imgs/2022/12/18/f2294e4eb27e9161.jpg";
//👆请自行替换图片链接
var change = false;
document.addEventListener("DOMNodeInserted", function() {
let elements = document.querySelectorAll('.flex.flex-col.relative.items-end svg');
elements.forEach(function(element) {
var imgElement = document.createElement("img");
imgElement.src = link;
element.parentNode.replaceChild(imgElement, element);
});
});