Unblurs those who like you on OkCupid
So the updated code would look like:
(function() {
'use strict';
function waitForElementToDisplay(selector, time) {
if(document.querySelector(selector)!=null) {
const childElement = document.querySelector('.likes-you-paywall-with-likes-link > *');
childElement.style.overflow = 'unset';
childElement.style.width = '100%';
childElement.style.height = 'unset';
childElement.style.maxHeight = 'unset';
const xpathResult = document.evaluate('//*[@id="userRows-app"]/div/div[2]/div/a/div[1]/div[1]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
const element = xpathResult.singleNodeValue;
element.style.background = 'unset';
changeFilterProperty();
hideElement();
return;
}
else {
setTimeout(function() {
waitForElementToDisplay(selector, time);
}, time);
}
}
function changeFilterProperty(){
// Get the elements by class name
let elements = document.querySelectorAll(".usercard-placeholder-thumb");
// Loop over elements and change the filter property to none
elements.forEach(function(element) {
element.style.filter = "none";
});
}
function hideElement(){
// Get the element to hide
let elementToHide = document.querySelector(".likes-you-paywall-explainer-cta");
// Check if the element exists
if(elementToHide) {
// Hide the element
elementToHide.style.display = "none";
}
}
waitForElementToDisplay(".userrows-main", 4000);
})()
Hi, the preview is limited (background blurr at the bottom, limited profile views,...) You can change that by adding the following code: