-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforeground.js
66 lines (50 loc) · 1.31 KB
/
foreground.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Document.querySelectorAll function. DRY!
function selectEm(site){
document.querySelectorAll(site).forEach((cookie)=>{
cookie.remove();
})
}
// General approach
selectEm("[id='cookie']");
selectEm('[id="cookie-notice"]');
selectEm('[id="cookie-banner-root"]');
// Works on:
// https://www.cashper.de/
selectEm("[role='dialog']");
// Works on:
// https://eu.usatoday.com/
selectEm("[class='ot-sdk-row']");
// Works on:
// https://naga.com/de/
selectEm("[id='CybotCookiebotDialog']");
// Works on:
//https://www.formula1.com/
selectEm("[id='cookie-banner']");
// Works on:
// https://www.europcar.com/
selectEm("[id='tc-privacy-wrapper']");
// Works on:
// https://www.europeocars.com/
selectEm('[class="cc_banner-wrapper "]');
//Works on:
// https://www.investing.com/
selectEm("[id='onetrust-consent-sdk']");
// Works on:
// https://www.germany-finance.com/
selectEm("[id='uc-banner-modal']");
// Works on:
// https://www.cnbc.com/
selectEm("[id='onetrust-consent-sdk']");
// Works on:
//https://www.ft.com/
selectEm("[class='o-cookie-message__outer']");
// Works on:
// https://www.howtoforge.com/
selectEm("[id='ez-cookie-dialog-wrapper']");
// Work on:
// https://www.sixt.com/
selectEm("[class='SX68']");
// Works on:
// https://www.nike.com/de/
selectEm("[data-pre='Modal']");
console.log("Task achieved");