كود JavaScript التالي عبارة عن برنامج نصي مصمم لإلغاء تعتيم صور Tinder من قسم "الإعجاب بك". وهو يعمل عن طريق جلب الصور التشويقية من واجهة برمجة التطبيقات الخاصة بـ Tinder وتحديث DOM ديناميكيًا لاستبدال الصور غير الواضحة بصور واضحة.
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();
جلب الإعلانات التشويقية:
تحديد عناصر DOM:
استبدال الصور غير الواضحة:
غير متزامن/انتظار:
يستفيد هذا البرنامج النصي من قوة أدوات مطور المتصفح وواجهة برمجة تطبيقات Tinder لتحسين تجربة المستخدم من خلال السماح لك برؤية الأشخاص الذين أعجبوا بك دون الحاجة إلى اشتراك مدفوع.
؟ GitHub Repo: Tinder Unblur - اكشف عن إعجاباتك بـ Tinder
تنصل: جميع الموارد المقدمة هي جزئيًا من الإنترنت. إذا كان هناك أي انتهاك لحقوق الطبع والنشر الخاصة بك أو الحقوق والمصالح الأخرى، فيرجى توضيح الأسباب التفصيلية وتقديم دليل على حقوق الطبع والنشر أو الحقوق والمصالح ثم إرسالها إلى البريد الإلكتروني: [email protected]. سوف نتعامل مع الأمر لك في أقرب وقت ممكن.
Copyright© 2022 湘ICP备2022001581号-3