Tinder anti-blur

Script that removes blur from liked profiles on Tinder ;)

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 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     Tinder anti-blur
// @version  1.2
// @grant    none
// @match    *://tinder.com/*
// @description Script that removes blur from liked profiles on Tinder ;)
// @namespace https://greasyfork.org/users/321352
// ==/UserScript==

function findReplacement(bi){
  bi = bi.split(" ")[0];
  let strs = [];
  let dims = ["320x400", "172x216", "84x106"];
  for (let dim of dims){
    strs.push(bi.replace(/(\d+x\d+)/g, match => dim));
  }
  return strs.join(", ");
}

setInterval(()=>{
  for (let e of document.querySelectorAll("[class*=Blur]"))
    for (let k of e.classList)
      if (k.startsWith("Blur"))
        e.classList.remove(k);
  for (let a of document.querySelectorAll("[style*=\"background-image: url\"]")){
  	a.style.backgroundImage = findReplacement(a.style.backgroundImage);
  }
}, 300)