使用 JavaScript 公开谁在 Tinder 上喜欢你。
我刚看到这篇文章。
根据文章所述,Tinder 使用了 CSS filter: blur(12px;)。
对于 Web 应用程序来说,这完全说得通,因为生成带掩码的图像需要一些工作。
我查看了网页版应用,发现 Tinder 使用的是某种加密方式react,导致无法直接访问“谁喜欢过我”页面。
- 请访问https://tinder.com/app/recs
- 点击侧边栏中的照片,前往https://tinder.com/app/likes-you
- 打开 Chrome 浏览器
Developer Tools - 将以下代码粘贴到控制台中。
const getPiclinks = () => {
const all = document.querySelectorAll(".StretchedBox");
const start = all.length/2; // divide by 2 because StretchedBox class is also used by the div in the side bar
const end = all.length;
for(let i=start; i<end; i++) {
const url = all[i].style.cssText.replace('background-image: url("', '').replace(")", '');
console.log(url);
}
}
-
在控制台上运行该函数
类型getPiclinks -
点击控制台显示的链接,
您将看到指向图像的链接。