Greasy Fork is available in English.

Replace NixOS Pride Logo

This script is for people who have trouble focusing on colorful icons, it replaces the icons with the NixOS theme color.

Versión del día 05/08/2025. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name        Replace NixOS Pride Logo
// @name:zh-CN  替换 NixOS 骄傲图标
// @namespace   http://tampermonkey.net/
// @match       https://search.nixos.org/*
// @grant       none
// @description This script is for people who have trouble focusing on colorful icons, it replaces the icons with the NixOS theme color.
// @description:zh-CN 此脚本适用于难以关注彩色图标的人,它用 NixOS 主题颜色替换图标。
// @version 0.0.2
// ==/UserScript==
     
    (function() {
        'use strict';
     
        document.addEventListener('DOMContentLoaded', function() {
            const images = document.querySelectorAll('img');
     
            images.forEach(img => {
                if (img.src.includes('/images/nix-logo-pride.png')) {
                    img.src = img.src.replace('/images/nix-logo-pride.png', '/images/nix-logo.png');
                }
            });
        });
    })();