Created
April 15, 2020 01:23
-
-
Save Bouh/697ad828d45b101978a24507bd9bb261 to your computer and use it in GitHub Desktop.
Tinder photos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Tinder script unblur photos. | |
//inject this in https://tinder.com/app/likes-you | |
var countProfilHidden = document.getElementsByClassName("Expand enterAnimationContainer").length-1; | |
var profiles = document.getElementsByClassName("Expand enterAnimationContainer"); | |
for(var i=0;i<countProfilHidden+1; i++){ | |
//unblur the photos | |
var unblurPic = profiles[i].getElementsByTagName("div")[0].className;//get the div and class | |
unblurPic = unblurPic.replace('Blur(12px)', 'Blur(0px)'); //reset the blur, hello girls! | |
profiles[i].getElementsByTagName("div")[0].className = unblurPic; //replace the class | |
//replace photos by HD photo | |
var turnPicHD = profiles[i].getElementsByTagName("div")[0].style.backgroundImage; // get url path | |
turnPicHD = turnPicHD.replace('/84x', '/320x'); //change width | |
turnPicHD = turnPicHD.replace('x84_', 'x320_'); // change height | |
turnPicHD = turnPicHD.replace('x106_', 'x400_'); //or bigger height | |
profiles[i].getElementsByTagName("div")[0].style.backgroundImage = turnPicHD; //replace the url HD | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment