All Anonymizer

Hide your name and icon from all pages.

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!)

Advertisement:

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!)

Advertisement:

// ==UserScript==
// @name         All Anonymizer
// @namespace    https://greasyfork.org/users/815990
// @version      0.1
// @description  Hide your name and icon from all pages.
// @author       Anonymous
// @match        *://*/*
// @license      MIT
// ==/UserScript==
 
(function() {
    'use strict';
 
    const txt_patterns = [
        // Enter your name...
    ];
    const img_patterns = [
        // Enter a substring of the URL of your icon that identifies it from others...
    ];
 
    const txt_replacement = "Anonymous";
    const img_replacement = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAACKFBMVEXM1t3K1Nu7xs6tusOisLqYprGMm6eGlaJ/j5x4iZZzhJJuf45sfYzJ09vBzNSsucKXprGEk6B0hJJmeIdld4bAy9OlsryLmqZxgpC3w8uXpbC+ydGZp7J0hZPL1dyrt8GAkJ3H0tmeq7ZwgZDG0NiaqLNtfoygrbhtfo2jsLtqfIrDzdWDk6CyvsdvgI6cqrTJ09qJmKTDztV8jJm/ytK8x8+6xs66xc5vgI+9ydHBzNN3iJWNnKe3wstneYjG0dhyg5GJmaWotL5sfoyHl6PI0tqap7Jpe4mNnKhneIeIl6OKmaWRoKtrfIuhrrigrrh2h5S1wMm0wMmOnaiFlaFoeomntL5rfYuToq3Ez9aqt8CQn6t6ipezv8icqrWIl6R2hpR1hpTI09qms72WpK+HlqN3h5VpeonCzdSRn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gUUUHWRpC1knrUXxFBVtQXFOQ+gfvxmRTxSRa/0wFR4qJ0JIGRMTiJ4cnvrCOwTk6PYQRgmJggDwjAgyJ54CdHF8F5TMtp0wAAAABJRU5ErkJggg==";
 
    function traverse(startNode) {
        const stack = [startNode];
        while (stack.length > 0) {
            const node = stack.pop();
            if (node.nodeType === node.TEXT_NODE) {
                for (const txt_pattern of txt_patterns) {
                    if (node.textContent.includes(txt_pattern)) {
                        node.textContent = node.textContent.replaceAll(txt_pattern, txt_replacement);
                    }
                }
            } else {
                if (node.tagName === "IMG") {
                    for (const img_pattern of img_patterns) {
                        if (node.src.includes(img_pattern)) {
                            node.src = img_replacement;
                        }
                    }
                }
                if (node instanceof Element && getComputedStyle(node).backgroundImage !== "none") {
                    for (const img_pattern of img_patterns) {
                        if (getComputedStyle(node).backgroundImage.includes(img_pattern)) {
                            node.style.backgroundImage = `url(${img_replacement})`;
                        }
                    }
                }
                for (const childNode of node.childNodes) {
                    stack.push(childNode);
                }
            }
        }
    }
 
    const observer = new MutationObserver(() => {
        traverse(document);
    });
 
    traverse(document);
    observer.observe(document, {
        childList: true,
        subtree: true,
    });
})();