changeChatGPTImage

替换ChatGPT里ai的头像 代码是ChatGPT写的,我不会JS

目前为 2022-12-19 提交的版本。查看 最新版本

// ==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);
    
  });

});


QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址