This commit is contained in:
Kekskurse 2023-07-24 23:34:43 +02:00
commit 96e2c9c061
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
5 changed files with 36 additions and 0 deletions

1
Readme.md Normal file
View file

@ -0,0 +1 @@
Ist das kunst oder ein hetero?

16
hetero.js Normal file
View file

@ -0,0 +1,16 @@
function check() {
console.log("Check for Heteros")
res = document.getElementsByClassName("matchprofile-details-text")[0].innerHTML
if(res.includes("| hetero |")) {
document.getElementsByClassName("pass")[0].click()
}
}
function checkTimer() {
check()
setTimeout(function() {
checkTimer();
}, 1000)
}
checkTimer()

BIN
icons/herz-48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
icons/herz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

19
manifest.json Normal file
View file

@ -0,0 +1,19 @@
{
"manifest_version": 2,
"name": "Niemand mag Heteros",
"version": "1.0",
"description": "Adds a red border to all webpages matching mozilla.org.",
"icons": {
"48": "icons/herz-48.png"
},
"content_scripts": [
{
"matches": ["https://www.okcupid.com/discover"],
"js": ["hetero.js"]
}
]
}