init
This commit is contained in:
commit
96e2c9c061
5 changed files with 36 additions and 0 deletions
1
Readme.md
Normal file
1
Readme.md
Normal file
|
@ -0,0 +1 @@
|
|||
Ist das kunst oder ein hetero?
|
16
hetero.js
Normal file
16
hetero.js
Normal 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
BIN
icons/herz-48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
BIN
icons/herz.png
Normal file
BIN
icons/herz.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
19
manifest.json
Normal file
19
manifest.json
Normal 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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in a new issue