Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

A JS bookmarklet that auto-pass matches on OkCupid for a list of given cities

License

Notifications You must be signed in to change notification settings

Lucas-C/okcupid-auto-pass-cities

Repository files navigation

OkCupid is great!

One things that annoys me a little though, is that I often get matches for people too far away from where I live, even with the distance filter set in my Settings:

Hence I wrote some simple Javascript code that auto-pass matches for a list of given cities.

Javascript snippet
const CITIES = 'London,Paris';
function autoPassCities() {
    const loc = document.getElementsByClassName('card-content-header__location')[0].textContent;
    if (CITIES.split(',').some(city => loc.endsWith(city))) {
        console.log('AutoPass:', loc);
        document.getElementsByClassName('pass')[0].click();
    }
    setTimeout(autoPassCities, 500);
}
autoPassCities();

You can generate your own bookmarklet for the cities you wish to exclude on this page: https://lucas-c.github.io/okcupid-auto-pass-cities/

Of course it should be easy to extend this filtering to other criteria: age, details...