commit 96e2c9c061a58a45e1fc8116158cb7214548afca Author: kekskurse Date: Mon Jul 24 23:34:43 2023 +0200 init diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..f130a45 --- /dev/null +++ b/Readme.md @@ -0,0 +1 @@ +Ist das kunst oder ein hetero? \ No newline at end of file diff --git a/hetero.js b/hetero.js new file mode 100644 index 0000000..38926cc --- /dev/null +++ b/hetero.js @@ -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() \ No newline at end of file diff --git a/icons/herz-48.png b/icons/herz-48.png new file mode 100644 index 0000000..15d638e Binary files /dev/null and b/icons/herz-48.png differ diff --git a/icons/herz.png b/icons/herz.png new file mode 100644 index 0000000..6c79758 Binary files /dev/null and b/icons/herz.png differ diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..b192f99 --- /dev/null +++ b/manifest.json @@ -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"] + } + ] + } + \ No newline at end of file