您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When using Tinder on desktop there is need to manually open each new candidates profiles and browse their photos. This script automates it! Just enjoy swaping with just left and right arrows :)
// ==UserScript== // @name Tinder for Desktop. Automates profile browsing! // @namespace https://greasyfork.org/en/scripts/36887/versions/new // @version 1.7 // @description When using Tinder on desktop there is need to manually open each new candidates profiles and browse their photos. This script automates it! Just enjoy swaping with just left and right arrows :) // @author https://github.com/trzye // @license Do What The F*ck You Want To Public License // @match tinder.com // @match tinder.com/app/recs // @match tinder.com/app/recs/profile // @match tinder.com/app/matches // @grant none // ==/UserScript== let isOn = true; let slow = 750 let fast = 1750 let actualSpeed = fast let startupInterval = window.setInterval(startup, actualSpeed); function startup(){ let navElement = document.getElementsByTagName("nav")[0]; if(navElement != undefined){ let tinderScript = window.setInterval(tinderscript, actualSpeed); let onOffButton = document.createElement("button"); onOffButton.innerHTML = "Click HERE to turn ON/OFF TinderScript"; onOffButton.onclick = function(){isOn = !isOn;}; navElement.appendChild(onOffButton); navElement.insertBefore(onOffButton, navElement.firstChild); let speedButton = document.createElement("button"); speedButton.innerHTML = "Click HERE to change TinderScript speed"; speedButton.onclick = function(){ if(actualSpeed == fast) { actualSpeed = slow; } else { actualSpeed = fast; } window.clearInterval(tinderScript); tinderScript = window.setInterval(tinderscript, actualSpeed); }; navElement.appendChild(speedButton); navElement.insertBefore(speedButton, navElement.firstChild); window.clearInterval(startupInterval); } } function tinderscript() { let element = document.querySelectorAll("[class*=sendMessageForm__input]")[0]; if(!element && isOn){ element = document.querySelectorAll("[class*=recCard__openProfile]")[0]; if(element !== undefined) { element.click(); } else { element = document.querySelectorAll("[class*=pageButton]")[1]; if(element !== undefined) { element.click(); } } } }