Skip to content

Commit

Permalink
Sync ddg v4.4.3 (#2)
Browse files Browse the repository at this point in the history
* rewrote CMP Ketch to include US in the rules (duckduckgo#171)

Co-authored-by: euw-arasolofotsara1 <arasolofotsara@duckduckgo.com>

* Bump @rollup/plugin-typescript from 11.1.0 to 11.1.1 (duckduckgo#161)

Bumps [@rollup/plugin-typescript](https://github.com/rollup/plugins/tree/HEAD/packages/typescript) from 11.1.0 to 11.1.1.
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/typescript/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/typescript-v11.1.1/packages/typescript)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-typescript"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @types/chrome from 0.0.235 to 0.0.237 (duckduckgo#173)

Bumps [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome) from 0.0.235 to 0.0.237.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome)

---
updated-dependencies:
- dependency-name: "@types/chrome"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tslib from 2.5.0 to 2.5.3 (duckduckgo#179)

Bumps [tslib](https://github.com/Microsoft/tslib) from 2.5.0 to 2.5.3.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](microsoft/tslib@2.5.0...v2.5.3)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/eslint-plugin from 5.59.5 to 5.59.11 (duckduckgo#182)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.59.5 to 5.59.11.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.59.11/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Added rule for cookiefirst (duckduckgo#177)

* Added rule for cookiefirst

* Updated eval condition to just check for the cookie existence

* added verification to check if user's optout on TrustArc CMP has been set (duckduckgo#159)

* added verification to check if user's optout on TrustArc CMP has been set

* Update lib/cmps/trustarc-top.ts

---------

Co-authored-by: Sam Macbeth <sammacbeth@users.noreply.github.com>

* Round 2: Add to US top sites optOut banners rules and tests (duckduckgo#175)

* Add to US top sites optOut banners rules and tests

* fix linting errors

* add healthline cmp rule and test

* add US condition to canva rule

* Make more specific onlyFans prehideSelectors

---------

Co-authored-by: euw-arasolofotsara1 <arasolofotsara@duckduckgo.com>

* Update CHANGELOG.md [skip ci]

* Bump version to: 4.2.0 [skip ci]

* add batch of rules and tests for banners reported by users (duckduckgo#181)

* add justwatch-com rules and test

* add 1password-com rules and test

* add agolde-com rules and test

* add altium-com rules and test

* add aquasana-com rules and test

* add athlinks-com rules and test

* add burpee-com rules and test

* add crossfit-com rules and test

* add flex-orange-pl rules and test

* itopvpn-com rules and test

* add macpaw-com rules and test

* add nrk-no rules and test

* add pinetools-com rules and test

* add similarweb-com rules and test

* add takealot-com rules and test

* add trader-joes-com rules and test

* add urbanarmorgear-com rules and test

* add tidbits-com automattic cmp site rules and test

* add cmp automattic rules and test

* add woo-commerce-com rules and test

* add xhamster-eu rules and test

* add tumblr-com rules and test

* fix complianz-optin rules and test

* add urlPattern to athlinks-com rule

* make automattic cmp and popUp more specific

* simplify optOut for complianz-optin

* change justwatch notice banner to optOut banner

* Remove orange.pl rule

---------

Co-authored-by: euw-arasolofotsara1 <arasolofotsara@duckduckgo.com>
Co-authored-by: Sam Macbeth <smacbeth@duckduckgo.com>

* Update CHANGELOG.md [skip ci]

* Bump version to: 4.3.0 [skip ci]

* added nba.com notice rule and test and modified oneTrust rule class (duckduckgo#172)

* added nba.com notice rule and modified oneTrust

* corrected NBA regex for OneTrust

---------

Co-authored-by: euw-arasolofotsara1 <arasolofotsara@duckduckgo.com>

* Bump @types/chai from 4.3.4 to 4.3.5 (duckduckgo#183)

Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint from 8.40.0 to 8.43.0 (duckduckgo#184)

Bumps [eslint](https://github.com/eslint/eslint) from 8.40.0 to 8.43.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.40.0...v8.43.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/parser from 5.59.2 to 5.60.0 (duckduckgo#185)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.59.2 to 5.60.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump @typescript-eslint/eslint-plugin from 5.59.11 to 5.60.0 (duckduckgo#186)

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.59.11 to 5.60.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.60.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update CHANGELOG.md [skip ci]

* Bump version to: 4.3.1 [skip ci]

* Limit triggering of nba.com rule (duckduckgo#187)

* Update CHANGELOG.md [skip ci]

* Bump version to: 4.3.2 [skip ci]

* Remove wait from detectCmp step (duckduckgo#189)

* Update CHANGELOG.md [skip ci]

* Bump version to: 4.3.3 [skip ci]

* add support of "runrooted" action for consent-o-matic

* implement "multiclick", "ifAllowAll", "ifAllowNone" & "nop" actions

* update build script to get latests rules

* add support of multiple "presentMatcher" & "showingMatcher" in COM rules

* handle empty "presentMatchers" or "showingMatchers" array

* add "sourcepoint" rules

* add dist

* remove "sourcepoint_popup" consent-o-matic rule because seems to be a duplicate

* DES-1065: add support of Instagram & Messenger using Consent-O-Matic (#1)

* DES-1065: fix params sent to "SAVE_CONSENT" actions

* DES-1065: add support of instagram

* DES-1065: add support of Facebook

* DES-1065: update dist

* DES-1065: add support for nike.com

* DES-1065: add support for aliexpress.com

* Update rules/autoconsent/aliexpress-com.json

Co-authored-by: Vladimir Zhuravlev <private.face@gmail.com>

---------

Co-authored-by: Vladimir Zhuravlev <private.face@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Amanda RASOLOFOTSARA <50955126+icodebyamanda@users.noreply.github.com>
Co-authored-by: euw-arasolofotsara1 <arasolofotsara@duckduckgo.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kunal Virk <kunal@websilt.com>
Co-authored-by: hyebahi <hyebahi@gmail.com>
Co-authored-by: Sam Macbeth <sammacbeth@users.noreply.github.com>
Co-authored-by: Sam Macbeth <runner@fv-az560-829.3gr401zidpzu5nut432h0k4zzg.cx.internal.cloudapp.net>
Co-authored-by: Sam Macbeth <smacbeth@duckduckgo.com>
Co-authored-by: Sam Macbeth <runner@fv-az795-392.xf54hq4xvzaujoiinxtcwc2bjc.dx.internal.cloudapp.net>
Co-authored-by: Sam Macbeth <runner@fv-az412-458.ap3zscylkjruhik2cxa3opwqzb.jx.internal.cloudapp.net>
Co-authored-by: Sam Macbeth <runner@fv-az251-156.mxawqghed13elcrenaof0mmu1b.bx.internal.cloudapp.net>
Co-authored-by: Vladimir Zhuravlev <private.face@gmail.com>
  • Loading branch information
13 people authored Jun 28, 2023
1 parent 8a6ead1 commit 9933404
Show file tree
Hide file tree
Showing 67 changed files with 888 additions and 204 deletions.
109 changes: 109 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,112 @@
# v4.3.3 (Thu Jun 22 2023)

#### 🐛 Bug Fix

- Remove wait from detectCmp step [#189](https://github.com/duckduckgo/autoconsent/pull/189) ([@sammacbeth](https://github.com/sammacbeth))

#### Authors: 1

- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))

---

# v4.3.2 (Wed Jun 21 2023)

#### 🐛 Bug Fix

- Limit triggering of nba.com rule [#187](https://github.com/duckduckgo/autoconsent/pull/187) ([@sammacbeth](https://github.com/sammacbeth))

#### Authors: 1

- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))

---

# v4.3.1 (Tue Jun 20 2023)

#### 🐛 Bug Fix

- Bump @typescript-eslint/eslint-plugin from 5.59.11 to 5.60.0 [#186](https://github.com/duckduckgo/autoconsent/pull/186) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @types/chai from 4.3.4 to 4.3.5 [#183](https://github.com/duckduckgo/autoconsent/pull/183) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- added nba.com notice rule and test and modified oneTrust rule class [#172](https://github.com/duckduckgo/autoconsent/pull/172) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))

#### 🔩 Dependency Updates

- Bump @typescript-eslint/parser from 5.59.2 to 5.60.0 [#185](https://github.com/duckduckgo/autoconsent/pull/185) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump eslint from 8.40.0 to 8.43.0 [#184](https://github.com/duckduckgo/autoconsent/pull/184) ([@dependabot[bot]](https://github.com/dependabot[bot]))

#### Authors: 3

- [@dependabot[bot]](https://github.com/dependabot[bot])
- Amanda RASOLOFOTSARA ([@icodebyamanda](https://github.com/icodebyamanda))
- euw-arasolofotsara1 (arasolofotsara@duckduckgo.com)

---

# v4.3.0 (Tue Jun 20 2023)

#### 🚀 Enhancement

- add batch of rules and tests for banners reported by users [#181](https://github.com/duckduckgo/autoconsent/pull/181) (arasolofotsara@duckduckgo.com [@sammacbeth](https://github.com/sammacbeth) [@icodebyamanda](https://github.com/icodebyamanda))

#### Authors: 3

- Amanda RASOLOFOTSARA ([@icodebyamanda](https://github.com/icodebyamanda))
- euw-arasolofotsara1 (arasolofotsara@duckduckgo.com)
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))

---

# v4.2.0 (Mon Jun 19 2023)

#### 🚀 Enhancement

- Bump @typescript-eslint/eslint-plugin from 5.45.1 to 5.59.2 [#143](https://github.com/duckduckgo/autoconsent/pull/143) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump web-ext from 7.4.0 to 7.6.2 [#145](https://github.com/duckduckgo/autoconsent/pull/145) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @typescript-eslint/parser from 5.51.0 to 5.59.2 [#146](https://github.com/duckduckgo/autoconsent/pull/146) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @playwright/test from 1.30.0 to 1.33.0 [#147](https://github.com/duckduckgo/autoconsent/pull/147) ([@dependabot[bot]](https://github.com/dependabot[bot]))

#### 🐛 Bug Fix

- Round 2: Add to US top sites optOut banners rules and tests [#175](https://github.com/duckduckgo/autoconsent/pull/175) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- added verification to check if user's optout on TrustArc CMP has been set [#159](https://github.com/duckduckgo/autoconsent/pull/159) ([@hyebahi](https://github.com/hyebahi) [@sammacbeth](https://github.com/sammacbeth))
- Added rule for cookiefirst [#177](https://github.com/duckduckgo/autoconsent/pull/177) ([@kunalvirk](https://github.com/kunalvirk))
- Bump @typescript-eslint/eslint-plugin from 5.59.5 to 5.59.11 [#182](https://github.com/duckduckgo/autoconsent/pull/182) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump tslib from 2.5.0 to 2.5.3 [#179](https://github.com/duckduckgo/autoconsent/pull/179) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @types/chrome from 0.0.235 to 0.0.237 [#173](https://github.com/duckduckgo/autoconsent/pull/173) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @rollup/plugin-typescript from 11.1.0 to 11.1.1 [#161](https://github.com/duckduckgo/autoconsent/pull/161) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- rewrote CMP Ketch to include US in the rules [#171](https://github.com/duckduckgo/autoconsent/pull/171) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- added 2 US CMP optOut rules and tests [#168](https://github.com/duckduckgo/autoconsent/pull/168) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- Round 2: added 5 notice banner rules and tests top US sites [#167](https://github.com/duckduckgo/autoconsent/pull/167) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- added 4 notice banner rules and tests top sites [#164](https://github.com/duckduckgo/autoconsent/pull/164) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- Add xhamster.com custom US notice banner rule and test [#154](https://github.com/duckduckgo/autoconsent/pull/154) (arasolofotsara@duckduckgo.com [@muodov](https://github.com/muodov) [@icodebyamanda](https://github.com/icodebyamanda))
- Add youporn custom notice banner's rule and test [#158](https://github.com/duckduckgo/autoconsent/pull/158) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- Add pornpics custom US notice banner rule and test [#156](https://github.com/duckduckgo/autoconsent/pull/156) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- Add whitepages custom US notice banner rule and test [#155](https://github.com/duckduckgo/autoconsent/pull/155) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- Add the cmp wpcc rule and test to notice banners [#157](https://github.com/duckduckgo/autoconsent/pull/157) (arasolofotsara@duckduckgo.com [@icodebyamanda](https://github.com/icodebyamanda))
- Bump @types/chrome from 0.0.234 to 0.0.235 [#149](https://github.com/duckduckgo/autoconsent/pull/149) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @types/chrome from 0.0.206 to 0.0.234 [#144](https://github.com/duckduckgo/autoconsent/pull/144) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Tweak the Civic rule [#131](https://github.com/duckduckgo/autoconsent/pull/131) ([@muodov](https://github.com/muodov))

#### 🔩 Dependency Updates

- Bump auto from 10.42.0 to 10.46.0 [#162](https://github.com/duckduckgo/autoconsent/pull/162) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump eslint from 8.36.0 to 8.40.0 [#153](https://github.com/duckduckgo/autoconsent/pull/153) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @typescript-eslint/eslint-plugin from 5.59.2 to 5.59.5 [#152](https://github.com/duckduckgo/autoconsent/pull/152) ([@dependabot[bot]](https://github.com/dependabot[bot]))
- Bump @rollup/plugin-typescript from 11.0.0 to 11.1.0 [#151](https://github.com/duckduckgo/autoconsent/pull/151) ([@dependabot[bot]](https://github.com/dependabot[bot]))

#### Authors: 7

- [@dependabot[bot]](https://github.com/dependabot[bot])
- [@hyebahi](https://github.com/hyebahi)
- Amanda RASOLOFOTSARA ([@icodebyamanda](https://github.com/icodebyamanda))
- euw-arasolofotsara1 (arasolofotsara@duckduckgo.com)
- Kunal Virk ([@kunalvirk](https://github.com/kunalvirk))
- Maxim Tsoy ([@muodov](https://github.com/muodov))
- Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))

---

# v4.1.3 (Tue Feb 14 2023)

#### 🐛 Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion addon/manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Autoconsent",
"version": "2023.2.14",
"version": "2023.6.22",
"background": {
"scripts": [
"background.bundle.js"
Expand Down
2 changes: 1 addition & 1 deletion addon/manifest.mv3.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Autoconsent",
"version": "2023.2.14",
"version": "2023.6.22",
"background": {
"service_worker": "background.bundle.js"
},
Expand Down
5 changes: 5 additions & 0 deletions lib/cmps/onetrust.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { click, doEval, elementExists, elementVisible, wait, waitForElement } from "../rule-executors";
import { RunContext } from "../rules";
import { waitFor } from "../utils";
import AutoConsentCMPBase from "./base";

Expand All @@ -10,6 +11,10 @@ export default class Onetrust extends AutoConsentCMPBase {
super("Onetrust");
}

runContext: RunContext = {
urlPattern: '^(?!.*https://www\\.nba\\.com/)'
}

get hasSelfTest(): boolean {
return true;
}
Expand Down
7 changes: 4 additions & 3 deletions lib/cmps/trustarc-top.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { click, elementExists, elementVisible } from "../rule-executors";
import { click, doEval, elementExists, elementVisible } from "../rule-executors";
import { RunContext } from "../rules";
import { getStyleElement, hideElements } from "../utils";
import AutoConsentCMPBase from "./base";
Expand Down Expand Up @@ -95,7 +95,8 @@ export default class TrustArcTop extends AutoConsentCMPBase {
}

async test() {
// TODO: find out how to test TrustArc
return true;
//Test JS variable to check the user's preference
//PrefCookie = undefined means no consent is set, PrefCookie = '0' means consent is set to required only
return await doEval("window && window.truste && window.truste.eu.bindMap.prefCookie === '0'");
}
}
Loading

0 comments on commit 9933404

Please sign in to comment.