您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Unblur Tinder teaser images
当前为
// ==UserScript== // @name Tinder Unblur // @namespace http://tampermonkey.net/ // @version 1.1 // @description Unblur Tinder teaser images // @author You // @match https://tinder.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function waitForElement(selector, callback) { const interval = setInterval(() => { if (document.querySelector(selector)) { clearInterval(interval); callback(); } }, 100); } 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})`; }); } // Wait for the elements to be present before executing unblur waitForElement(".Expand.enterAnimationContainer > div:nth-child(1)", unblur); })();