-
Notifications
You must be signed in to change notification settings - Fork 20
/
google-rejected.js
28 lines (27 loc) · 1.06 KB
/
google-rejected.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
import ContentFeature from '../content-feature'
export default class GoogleRejected extends ContentFeature {
init () {
try {
if ('browsingTopics' in Document.prototype) {
delete Document.prototype.browsingTopics
}
if ('joinAdInterestGroup' in Navigator.prototype) {
delete Navigator.prototype.joinAdInterestGroup
}
if ('leaveAdInterestGroup' in Navigator.prototype) {
delete Navigator.prototype.leaveAdInterestGroup
}
if ('updateAdInterestGroups' in Navigator.prototype) {
delete Navigator.prototype.updateAdInterestGroups
}
if ('runAdAuction' in Navigator.prototype) {
delete Navigator.prototype.runAdAuction
}
if ('adAuctionComponents' in Navigator.prototype) {
delete Navigator.prototype.adAuctionComponents
}
} catch {
// Throw away this exception, it's likely a confict with another extension
}
}
}