O código JavaScript a seguir é um script projetado para desfocar as fotos do Tinder da seção "Gosto de você". Ele funciona buscando as imagens teaser da API do Tinder e atualizando dinamicamente o DOM para substituir as imagens desfocadas por imagens nítidas.
async function unblur() { // Fetch the teasers (users who liked your profile) from Tinder API const teasers = await fetch("https://api.gotinder.com/v2/fast-match/teasers", { headers: { // Uses the Tinder API token stored in the browser's localStorage "X-Auth-Token": localStorage.getItem("TinderWeb/APIToken"), platform: "android", }, }) // Parse the response as JSON and extract the results .then((res) => res.json()) .then((res) => res.data.results); // Select all blurred teaser elements from the Tinder page's DOM const teaserEls = document.querySelectorAll( ".Expand.enterAnimationContainer > div:nth-child(1)" ); // Loop through each teaser and replace the blurred image with the clear one teasers.forEach((teaser, index) => { const teaserEl = teaserEls[index]; const teaserImage = `https://preview.gotinder.com/${teaser.user._id}/original_${teaser.user.photos[0].id}.jpeg`; // Set the background image to the clear image URL teaserEl.style.backgroundImage = `url(${teaserImage})`; }); } // Call the unblur function unblur();
Buscando os teasers:
Selecionando os elementos DOM:
Substituindo imagens desfocadas:
Assíncrono/Aguardar:
Este script aproveita o poder das ferramentas de desenvolvedor do navegador e da API do Tinder para aprimorar a experiência do usuário, permitindo que você veja quem gostou de você sem precisar de uma assinatura paga.
? Repositório GitHub: Tinder Unblur - Revele suas curtidas no Tinder
Isenção de responsabilidade: Todos os recursos fornecidos são parcialmente provenientes da Internet. Se houver qualquer violação de seus direitos autorais ou outros direitos e interesses, explique os motivos detalhados e forneça prova de direitos autorais ou direitos e interesses e envie-a para o e-mail: [email protected]. Nós cuidaremos disso para você o mais rápido possível.
Copyright© 2022 湘ICP备2022001581号-3