Last active
February 14, 2020 05:26
-
-
Save phoebejaffe/3da720b62f28a6e55d63480c71893818 to your computer and use it in GitHub Desktop.
On OkCupid DoubleTake: Skips users who have their profile set to Monogamous, and alerts "OMG" when it finds users who are set to Non-Monogamous
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let alerted = false; | |
setInterval(() => { | |
const elem = document.getElementsByClassName('matchprofile-details-text')[0]; | |
if (elem && elem.textContent && elem.textContent.includes('Non-monogamous')) { | |
if (!alerted) { | |
alert('omg') | |
alerted = true; | |
} | |
} else if (elem && elem.textContent && elem.textContent.includes('Monogamous')) { | |
alerted = false; | |
const passButtons = document.getElementsByClassName('pass-pill-button'); | |
console.log('skip!') | |
console.log(passButtons.length) | |
if (passButtons.length === 1) { | |
passButtons[0].click(); | |
} | |
} else { | |
alerted = false; | |
} | |
}, 200); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use this:
Cmd-Opt-J
on Mac,Ctrl-Opt-J
on Windows, or you can use the menusView -> Developer -> JavaScript Console
)To reset, reload the page.