Greasy Fork is available in English.

Replace NixOS colorful Logo

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

// ==UserScript==
// @name        Replace NixOS colorful 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');
                }
            });
        });
    })();