Skip to content

Instantly share code, notes, and snippets.

@n1k0

n1k0/unblur.md

Last active Oct 22, 2020
Embed
What would you like to do?
Unblur bookmarlklet

Unblur bookmarklet

Too many websites rely on the CSS blur filter to cheaply obfuscate contents. Here's a bookmarklet to reset all active blur styles from the current page DOM.

(function() {
  for (const x of document.querySelectorAll("*")) {
    const s = getComputedStyle(x);
    for (const k in s) {
      if (k.includes("filter") && s.filter.includes("blur")) {
        x.style.filter = "";
      }
    }
  }
})();

Feel free to create a convenient bookmarklet out of this snippet using this tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.