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 browing!
// @namespace https://greasyfork.org/en/scripts/36887/versions/new
// @version 1.4
// @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
// @grant none
// ==/UserScript==
var intervalID = window.setInterval(myCallback, 666);
var isOn = true;
function myCallback() {
if(isOn){
var element = document.querySelectorAll("[class*=recCard]")[0];
if(element !== undefined)
element.click();
else {
while(element === undefined){
element = document.querySelectorAll("[class*=pageButton]")[1];
element.click();
}
}
}
}
window.setTimeout(shit, 1000);
function shit(){
var button = document.createElement("button");
button.innerHTML = "Click HERE to turn ON/OFF TinderScript";
button.onclick = function(){
isOn = !isOn; console.log('onClick');
};
var x = document.getElementsByTagName("nav")[0];
x.appendChild(button);
x.insertBefore(button, x.firstChild);
}