New Userscript

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 :)

当前为 2017-12-30 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         New Userscript
// @namespace    http://github.com/trzye
// @version      1.0
// @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       trzye
// @match        tinder.com
// @grant        none
// ==/UserScript==

var intervalID = window.setInterval(myCallback, 666);

function myCallback() {


	var element = document.getElementsByClassName("recCard__openProfile Trsdu($normal) W(40px) H(40px) Bgc(#000.4) Lh(40px) Bdrs(50%) Cur(p) Ta(c) Fl(end) Scale(1.2):h Bgc(#fff.5):h")[1];
	if(element !== undefined)
		element.click();
	else {
		while(element === undefined){
			element = document.getElementsByClassName("pageButton D(n)--s CenterAlign W(40px) H(40px) H(28px)--ml W(28px)--ml Trsdu($normal) Trstf(e) Trfo(c) Bdrs(50%) Cur(p) D(f) Jc(c) Bgc($c-pink):h Bgc(#000.12)")[1];
			element.click();
		}
	}

}