Skip to content

Instantly share code, notes, and snippets.

@abhisri1997
Forked from tajnymag/tinder.user.js
Created March 14, 2022 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisri1997/396bb0e7eb8ece88338d857e8572230c to your computer and use it in GitHub Desktop.
Save abhisri1997/396bb0e7eb8ece88338d857e8572230c to your computer and use it in GitHub Desktop.
Tinder Deblur Userscript
// ==UserScript==
// @name Tinder Deblur
// @namespace Violentmonkey Scripts
// @match https://tinder.com/*
// @grant none
// @version 1.3
// @author Tajnymag
// @downloadURL https://gist.githubusercontent.com/Tajnymag/9de74305f9bb09aa940d26418bd508f1/raw/tinder.user.js
// @description Simple script using the official Tinde API to get clean photos of the users who liked you
// ==/UserScript==
async function unblur() {
const teasers = await fetch("https://api.gotinder.com/v2/fast-match/teasers", { "headers": { "X-Auth-Token": localStorage.getItem('TinderWeb/APIToken') }}).then(res => res.json()).then(res => res.data.results);
const teaserEls = document.querySelectorAll('.Expand.enterAnimationContainer > div:nth-child(1)');
for (let i = 0; i < teaserEls.length; ++i) {
const teaser = teasers[i];
const teaserEl = teaserEls[i];
const teaserImage = teaser.user.photos[0].url;
teaserEl.style.backgroundImage = `url(${teaserImage})`;
}
}
setInterval(() => {
if (['/app/likes-you', '/app/gold-home'].includes(location.pathname)) {
unblur();
}
}, 5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment