Skip to content

Commit

Permalink
Create Tinder
Browse files Browse the repository at this point in the history
Criação do Arquivo com o Código.
  • Loading branch information
JulioCesarXY authored Sep 12, 2024
1 parent 8401cb3 commit 4673c91
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Tinder
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
async function unblur() {

const teasers = await fetch("https://api.gotinder.com/v2/fast-match/teasers", {

headers: {

"X-Auth-Token": localStorage.getItem("TinderWeb/APIToken"),

platform: "android",

},

})

.then((res) => res.json())

.then((res) => res.data.results);

const teaserEls = document.querySelectorAll(

".Expand.enterAnimationContainer > div:nth-child(1)"

);

teasers.forEach((teaser, index) => {

const teaserEl = teaserEls[index];

const teaserImage = `https://preview.gotinder.com/${teaser.user._id}/original_${teaser.user.photos[0].id}.jpeg`;

teaserEl.style.backgroundImage = `url(${teaserImage})`;

});

}

unblur();

0 comments on commit 4673c91

Please sign in to comment.