From 96516f113ae4c8699cdd2a362d23135968f95ede Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 18 Jun 2025 15:47:55 +0200 Subject: [PATCH] ReplaceGoogleSearch: fix broken icons --- src/plugins/implicitRelationships/index.ts | 15 +-------------- src/plugins/replaceGoogleSearch/index.tsx | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/plugins/implicitRelationships/index.ts b/src/plugins/implicitRelationships/index.ts index edaf4be9..4a8cf5fb 100644 --- a/src/plugins/implicitRelationships/index.ts +++ b/src/plugins/implicitRelationships/index.ts @@ -20,7 +20,7 @@ import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; import definePlugin, { OptionType } from "@utils/types"; import { findStoreLazy } from "@webpack"; -import { Constants, FluxDispatcher, GuildStore, RelationshipStore, RestAPI, SnowflakeUtils, UserStore } from "@webpack/common"; +import { Constants, FluxDispatcher, GuildStore, RelationshipStore, SnowflakeUtils, UserStore } from "@webpack/common"; import { Settings } from "Vencord"; const UserAffinitiesStore = findStoreLazy("UserAffinitiesV2Store"); @@ -121,19 +121,6 @@ export default definePlugin({ : comparator(row); }, - async refreshUserAffinities() { - try { - await RestAPI.get({ url: "/users/@me/affinities/users", retries: 3 }).then(({ body }) => { - FluxDispatcher.dispatch({ - type: "LOAD_USER_AFFINITIES_SUCCESS", - affinities: body, - }); - }); - } catch (e) { - // Not a critical error if this fails for some reason - } - }, - async fetchImplicitRelationships() { // Implicit relationships are defined as users that you: // 1. Have an affinity for diff --git a/src/plugins/replaceGoogleSearch/index.tsx b/src/plugins/replaceGoogleSearch/index.tsx index 593c9863..47952610 100644 --- a/src/plugins/replaceGoogleSearch/index.tsx +++ b/src/plugins/replaceGoogleSearch/index.tsx @@ -69,7 +69,7 @@ function makeSearchItem(src: string) { aria-hidden="true" height={16} width={16} - src={`https://www.google.com/s2/favicons?domain=${Engines[engine]}&sz=64`} + src={`https://icons.duckduckgo.com/ip3/${new URL(Engines[engine]).hostname}.ico`} /> {engine}