ChatGPT Remove Profile Picture

Remove profile picture in chatgpt site

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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 removeImages = () => {
    const imgs = Array.from(document.querySelectorAll(`img[alt*="@"]`));
    imgs.forEach(img => img.remove())
}

const waitForElementToExist = (selector, action) => {
    const elm = document.querySelector(selector);

    if (elm !== null) return action(elm);
    setTimeout(waitForElementToExist.bind(null, selector, action), 1000);
};

const main = () => {
    waitForElementToExist(`img[alt*="@"]`, removeImages);
}

main();