Icon test

Check icon support in purge icon or not.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Icon test
// @namespace    http://tampermonkey.net/
// @version      0.1
// @license      MIT
// @description  Check icon support in purge icon or not.
// @author       tom.dai
// @match        https://icon-sets.iconify.design/*
// @icon         https://icon-sets.iconify.design/favicon.svg
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    const CollectionIds = [
        "ic",
        "mdi",
        "ph",
        "ri",
        "carbon",
        "bi",
        "tabler",
        "ion",
        "uil",
        "teenyicons",
        "clarity",
        "iconoir",
        "majesticons",
        "zondicons",
        "ant-design",
        "bx",
        "bxs",
        "gg",
        "cil",
        "lucide",
        "pixelarticons",
        "system-uicons",
        "ci",
        "akar-icons",
        "typcn",
        "radix-icons",
        "ep",
        "mdi-light",
        "fe",
        "eos-icons",
        "line-md",
        "charm",
        "prime",
        "heroicons-outline",
        "heroicons-solid",
        "uiw",
        "uim",
        "uit",
        "uis",
        "maki",
        "gridicons",
        "mi",
        "quill",
        "gala",
        "fluent",
        "icon-park-outline",
        "icon-park",
        "vscode-icons",
        "jam",
        "codicon",
        "pepicons",
        "bytesize",
        "ei",
        "fa6-solid",
        "fa6-regular",
        "octicon",
        "ooui",
        "nimbus",
        "openmoji",
        "twemoji",
        "noto",
        "noto-v1",
        "emojione",
        "emojione-monotone",
        "emojione-v1",
        "fxemoji",
        "bxl",
        "logos",
        "simple-icons",
        "cib",
        "fa6-brands",
        "arcticons",
        "file-icons",
        "brandico",
        "entypo-social",
        "cryptocurrency",
        "flag",
        "circle-flags",
        "flagpack",
        "cif",
        "gis",
        "map",
        "geo",
        "fad",
        "academicons",
        "wi",
        "healthicons",
        "medical-icon",
        "la",
        "eva",
        "dashicons",
        "flat-color-icons",
        "entypo",
        "foundation",
        "raphael",
        "icons8",
        "iwwa",
        "fa-solid",
        "fa-regular",
        "fa-brands",
        "fa",
        "fontisto",
        "icomoon-free",
        "ps",
        "subway",
        "oi",
        "wpf",
        "simple-line-icons",
        "et",
        "el",
        "vaadin",
        "grommet-icons",
        "whh",
        "si-glyph",
        "zmdi",
        "ls",
        "bpmn",
        "flat-ui",
        "vs",
        "topcoat",
        "il",
        "websymbol",
        "fontelico",
        "feather",
        "mono-icons",
    ]
    function checkPureIcon() {
        Array.from(document.querySelectorAll('.if--items-grid-rows a')).forEach(a => {
            if(CollectionIds.includes(a.href.split('/').slice(-3)[0])) {
                a.style.border = '1px dashed red';
            }
        })
    }

    const timer = setInterval(() => {
        if (!document.querySelector('.if--items-grid-row.items')) return;
        clearInterval(timer);
        const observe = new MutationObserver(function(mutations, observer){
            checkPureIcon();
        });
        observe.observe(document.querySelector('.if--items-grid-row.items'),{ childList: true });
        checkPureIcon();
    }, 500);
})();