Skip to content

Commit d1b3cf7

Browse files
authored
revert scriptlet feature (#1927)
1 parent b2fdebf commit d1b3cf7

File tree

12 files changed

+3
-109
lines changed

12 files changed

+3
-109
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ docs/**/*
44
injected/src/types
55
special-pages/pages/**/types
66
injected/integration-test/extension/contentScope.js
7-
injected/src/features/Scriptlets
87
**/*.json
98
**/*.md
109
!injected/docs/**/*.md

.stylelintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": ["stylelint-config-standard"],
33
"plugins": ["stylelint-csstree-validator"],
4-
"ignoreFiles": ["build/**/*.css", "Sources/**/*.css", "docs/**/*.css", "special-pages/pages/**/*/dist/*.css", "injected/src/features/Scriptlets/**/*"],
4+
"ignoreFiles": ["build/**/*.css", "Sources/**/*.css", "docs/**/*.css", "special-pages/pages/**/*/dist/*.css"],
55
"rules": {
66
"csstree/validator": {
77
"ignoreProperties": ["text-wrap", "view-transition-name"]

build-output.eslint.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// https://github.com/eslint/eslint/discussions/18806#discussioncomment-10848750
33

44
export default [
5-
{
6-
ignores: ['injected/src/features/Scriptlets', 'injected/src/features/scriptlets.js'],
7-
},
85
{
96
languageOptions: {
107
ecmaVersion: 'latest',

eslint.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export default tseslint.config(
2222
'playwright-report',
2323
'test-results',
2424
'injected/src/types',
25-
'injected/src/features/Scriptlets',
26-
'injected/src/features/scriptlets.js',
2725
'.idea',
2826
],
2927
},

injected/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,4 @@ This will create platform specific code within the `build` folder (that is not c
109109
npm run build
110110
```
111111

112-
## Third-Party Libraries
113-
We make use of the following submodules:
114-
- [Adguard Scriptlets](https://github.com/AdguardTeam/Scriptlets)
115-
116112
For detailed information about any specific topic, please refer to the [documentation](./docs/).

injected/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"scripts": {
44
"postinstall": "npm run copy-sjcl",
55
"copy-sjcl": "node scripts/generateSJCL.js",
6-
"checkout-submodules": "git submodule update --init --recursive --no-fetch",
7-
"build": "npm run checkout-submodules && npm run build-types && npm run build-locales && npm run bundle-trackers && npm run bundle-entry-points",
6+
"build": "npm run build-types && npm run build-locales && npm run bundle-trackers && npm run bundle-entry-points",
87
"bundle-config": "node scripts/bundleConfig.mjs",
98
"bundle-entry-points": "node scripts/entry-points.js",
109
"build-chrome-mv3": "node scripts/entry-points.js",

injected/src/features.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ const otherFeatures = /** @type {const} */ ([
3030
'autofillPasswordImport',
3131
'favicon',
3232
'webTelemetry',
33-
'scriptlets',
3433
]);
3534

3635
/** @typedef {baseFeatures[number]|otherFeatures[number]} FeatureName */
3736
/** @type {Record<string, FeatureName[]>} */
3837
export const platformSupport = {
39-
apple: ['webCompat', 'duckPlayerNative', 'scriptlets', ...baseFeatures],
38+
apple: ['webCompat', 'duckPlayerNative', ...baseFeatures],
4039
'apple-isolated': [
4140
'duckPlayer',
4241
'duckPlayerNative',

injected/src/features/Scriptlets

Lines changed: 0 additions & 1 deletion
This file was deleted.

injected/src/features/scriptlets.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)