Duckduckgo remove images blur

Remove images blur on Duckduckgo in All tab

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

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

// ==UserScript==
// @name               Duckduckgo remove images blur
// @namespace          https://greasyfork.org/users/821661
// @version            0.1
// @description        Remove images blur on Duckduckgo in All tab
// @author             hdyzen
// @match              https://duckduckgo.com/*
// @run-at             document-end
// @icon               https://www.google.com/s2/favicons?domain=duckduckgo.com
// @grant              none
// @license            MIT
// ==/UserScript==

document.addEventListener("readystatechange", () => {
    if (document.readyState !== "complete") return;

    const nodes = document.querySelectorAll("img[src*='external-content.duckduckgo.com/iu/?u=']");
    for (const node of nodes) {
        const src = new URL(node.src);
        const u = src.searchParams.get("u");

        const url = new URL(u);
        const mParam = url.searchParams.has("m");
        if (!mParam) continue;

        url.searchParams.delete("m");
        src.searchParams.set("u", url.toString());
        node.src = src.toString();
    }
});