init
This commit is contained in:
commit
96e2c9c061
|
@ -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()
|
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -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 New Issue