Skip to content

Commit 43ab6ed

Browse files
Release build 4.6.0 [ci release]
1 parent 3e9a73f commit 43ab6ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+5417
-1534
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
build/
2+
docs/
23
lib/
34
Sources/ContentScopeScripts/dist/
45
integration-test/extension/contentScope.js
6+
packages/special-pages/pages/**/public

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
${{ runner.os }}-node-
2020
- run: npm install
2121
- run: npm run build
22+
- run: npm run docs
2223
- run: npm run lint
2324
- run: npm run test-unit
2425
- name: "Clean tree"
@@ -43,4 +44,6 @@ jobs:
4344
sudo apt-get install xvfb
4445
npm install
4546
npm run build
47+
- name: Install Playwright Browsers
48+
run: npx playwright install --with-deps
4649
- run: npm run test-int-x

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ node_modules/
33
.swiftpm
44
.env
55
build/
6-
Sources/ContentScopeScripts/dist/
6+
docs/
7+
Sources/ContentScopeScripts/dist/

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Each platform calls into the API exposed by content-scope-features.js where the
88

99
The exposed API is a global called contentScopeFeatures and has three methods:
1010
- load
11-
- Calls the load method on all of the features
11+
- Calls the load method on all the features
1212
- init
13-
- Calls the init method on all of the features
13+
- Calls the init method on all the features
1414
- This should be passed the arguments object which has the following keys:
1515
- 'platform' which is an object with:
1616
- 'name' which is a string of 'android', 'ios', 'macos' or 'extension'
17-
- 'debug' true if debuging should be enabled
17+
- 'debug' true if debugging should be enabled
1818
- 'globalPrivacyControlValue' false if the user has disabled GPC.
1919
- 'sessionKey' a unique session based key.
2020
- 'cookie' TODO
@@ -24,7 +24,7 @@ The exposed API is a global called contentScopeFeatures and has three methods:
2424
- 'domain' the hostname of the site in the URL bar
2525
- 'enabledFeatures' this is an array of features/ to enable
2626
- update
27-
- Calls the update method on all of the features
27+
- Calls the update method on all the features
2828

2929
## Features
3030

@@ -51,7 +51,7 @@ The [inject/](https://github.com/duckduckgo/content-scope-scripts/tree/main/inje
5151
- In Firefox the code is loaded as a standard extension content script.
5252
- For Apple, Windows and Android the code is a UserScript that has some string replacements for properties and loads in as the page scope.
5353
- Note: currently we don't implement the update calls as it's only required by cookie protections which we don't implement.
54-
- All other browsers the code is stringified, base64 encoded and injected in as a self deleting <script> tag.
54+
- All other browsers the code is stringified, base64 encoded and injected in as a self deleting `<script>` tag.
5555

5656
In the built output you will see these dramatic differences in the bundled code which is created into: /build
5757

@@ -60,10 +60,10 @@ In the built output you will see these dramatic differences in the bundled code
6060
- `$CONTENT_SCOPE$` - raw remote config object
6161
- `$USER_UNPROTECTED_DOMAINS$` - an array of user allowlisted domains
6262
- `$USER_PREFERENCES$` - an object containing:
63-
- platform: { name: '<ios | macos | extension | android>' }
63+
- platform: `{ name: '<ios | macos | extension | android>' }`
6464
- debug: boolean
6565
- globalPrivacyControlValue: boolean
66-
- sessionKey: <CSRNG UUID 4 string> (used for fingerprinting) - this should regnerate on browser close or every 24 hours.
66+
- sessionKey: `<CSRNG UUID 4 string>` (used for fingerprinting) - this should regenerate on browser close or every 24 hours.
6767

6868
### Features scope injection utilities
6969

Sources/ContentScopeScripts/dist/contentScope.js

Lines changed: 140 additions & 138 deletions
Large diffs are not rendered by default.

build/android/contentScope.js

Lines changed: 140 additions & 138 deletions
Large diffs are not rendered by default.

build/chrome-mv3/inject.js

Lines changed: 117 additions & 75 deletions
Large diffs are not rendered by default.

build/chrome/inject.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/firefox/inject.js

Lines changed: 173 additions & 131 deletions
Large diffs are not rendered by default.

build/integration/contentScope.js

Lines changed: 164 additions & 138 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)