aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-08-25 20:22:58 -0400
committerAjay <[email protected]>2023-08-25 20:22:58 -0400
commitfaa32591650373ee7e8fd5eb3439690375a59d9a (patch)
treebd6772f29fa13719a35e32a80b0158d1adeb902d
parentc96bafb6f75345045f652c657ed05c170e7ffec4 (diff)
downloadSponsorBlock-faa32591650373ee7e8fd5eb3439690375a59d9a.tar.gz
SponsorBlock-faa32591650373ee7e8fd5eb3439690375a59d9a.zip
Fix invidious support on Safari for iOS5.4.18
-rw-r--r--package-lock.json105
-rw-r--r--package.json2
-rw-r--r--src/background.ts2
3 files changed, 56 insertions, 53 deletions
diff --git a/package-lock.json b/package-lock.json
index efe23ed3..fedc69ef 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27,7 +27,7 @@
],
"license": "LGPL-3.0-or-later",
"dependencies": {
- "content-scripts-register-polyfill": "^4.0.2",
+ "@ajayyy/content-scripts-register-polyfill": "^4.0.2-safari-fix",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
@@ -65,6 +65,34 @@
"node": ">=16"
}
},
+ "node_modules/@ajayyy/content-scripts-register-polyfill": {
+ "version": "4.0.2-safari-fix",
+ "resolved": "https://registry.npmjs.org/@ajayyy/content-scripts-register-polyfill/-/content-scripts-register-polyfill-4.0.2-safari-fix.tgz",
+ "integrity": "sha512-okyqlFmLUmOZQrkZ6ChUbfcNXadamlaIGqzb6fi5MRnzvr+myoG4sK+whxhCY9hPmU///dqMGtV8FVom8sJpHA==",
+ "dependencies": {
+ "@ajayyy/webext-content-scripts": "^2.5.4-safari-fix",
+ "webext-patterns": "^1.3.0",
+ "webext-polyfill-kinda": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fregante"
+ }
+ },
+ "node_modules/@ajayyy/webext-content-scripts": {
+ "version": "2.5.4-safari-fix",
+ "resolved": "https://registry.npmjs.org/@ajayyy/webext-content-scripts/-/webext-content-scripts-2.5.4-safari-fix.tgz",
+ "integrity": "sha512-gn1PF4+dfld6whvmjjnYGvB26z9ja0SNIcgHVQl42Bh/lz89hviH8HWqi1p7XXN/p0BsOwJAx8jzqkmb2IAQvQ==",
+ "dependencies": {
+ "webext-patterns": "^1.3.0",
+ "webext-polyfill-kinda": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fregante"
+ }
+ },
"node_modules/@ampproject/remapping": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",
@@ -4254,19 +4282,6 @@
"url": "https://github.com/yeoman/configstore?sponsor=1"
}
},
- "node_modules/content-scripts-register-polyfill": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/content-scripts-register-polyfill/-/content-scripts-register-polyfill-4.0.2.tgz",
- "integrity": "sha512-8hDm+tu3BkxHZP7EUIIIo/495F6QNXF7cI9Lwr4PQaiohw2wWmi9k2SE4W4kNrAaLnFw6RZ2ev8EmrQb+sCoGQ==",
- "dependencies": {
- "webext-content-scripts": "^2.5.2",
- "webext-patterns": "^1.3.0",
- "webext-polyfill-kinda": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/fregante"
- }
- },
"node_modules/convert-source-map": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz",
@@ -12960,18 +12975,6 @@
"node": ">= 8"
}
},
- "node_modules/webext-content-scripts": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/webext-content-scripts/-/webext-content-scripts-2.5.2.tgz",
- "integrity": "sha512-N1Xq/E8dx0lVAOyPquuo+2Vj9Fx1GoqCFo79lWeJHbemaBJ53N3BHBmbJJYsQ8FOP1xiwN4bPRQY2dpSjHAD3Q==",
- "dependencies": {
- "webext-patterns": "^1.3.0",
- "webext-polyfill-kinda": "^1.0.0"
- },
- "funding": {
- "url": "https://github.com/sponsors/fregante"
- }
- },
"node_modules/webext-patterns": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/webext-patterns/-/webext-patterns-1.3.0.tgz",
@@ -12995,9 +12998,9 @@
}
},
"node_modules/webext-polyfill-kinda": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/webext-polyfill-kinda/-/webext-polyfill-kinda-1.0.0.tgz",
- "integrity": "sha512-Py/d3w/bC0KntuO60ePSWHsdrebZ3uYBLeFUjyPkDV3yTEQib0MRFvPh57t8XjImu4ylBoEAsFjzh/r22UtxMw==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/webext-polyfill-kinda/-/webext-polyfill-kinda-1.0.2.tgz",
+ "integrity": "sha512-rqQUKeBTOicej0tjDJWDQlOTnDcm9yYJTzgI+7rMdyYV4QHmYMRm+yjkcVgECkg/Wu9MboZ4lYeBPdp1Ep9WgQ==",
"funding": {
"url": "https://github.com/sponsors/fregante"
}
@@ -13575,6 +13578,25 @@
}
},
"dependencies": {
+ "@ajayyy/content-scripts-register-polyfill": {
+ "version": "4.0.2-safari-fix",
+ "resolved": "https://registry.npmjs.org/@ajayyy/content-scripts-register-polyfill/-/content-scripts-register-polyfill-4.0.2-safari-fix.tgz",
+ "integrity": "sha512-okyqlFmLUmOZQrkZ6ChUbfcNXadamlaIGqzb6fi5MRnzvr+myoG4sK+whxhCY9hPmU///dqMGtV8FVom8sJpHA==",
+ "requires": {
+ "@ajayyy/webext-content-scripts": "^2.5.4-safari-fix",
+ "webext-patterns": "^1.3.0",
+ "webext-polyfill-kinda": "^1.0.0"
+ }
+ },
+ "@ajayyy/webext-content-scripts": {
+ "version": "2.5.4-safari-fix",
+ "resolved": "https://registry.npmjs.org/@ajayyy/webext-content-scripts/-/webext-content-scripts-2.5.4-safari-fix.tgz",
+ "integrity": "sha512-gn1PF4+dfld6whvmjjnYGvB26z9ja0SNIcgHVQl42Bh/lz89hviH8HWqi1p7XXN/p0BsOwJAx8jzqkmb2IAQvQ==",
+ "requires": {
+ "webext-patterns": "^1.3.0",
+ "webext-polyfill-kinda": "^1.0.2"
+ }
+ },
"@ampproject/remapping": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz",
@@ -16734,16 +16756,6 @@
"xdg-basedir": "^5.0.1"
}
},
- "content-scripts-register-polyfill": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/content-scripts-register-polyfill/-/content-scripts-register-polyfill-4.0.2.tgz",
- "integrity": "sha512-8hDm+tu3BkxHZP7EUIIIo/495F6QNXF7cI9Lwr4PQaiohw2wWmi9k2SE4W4kNrAaLnFw6RZ2ev8EmrQb+sCoGQ==",
- "requires": {
- "webext-content-scripts": "^2.5.2",
- "webext-patterns": "^1.3.0",
- "webext-polyfill-kinda": "^1.0.0"
- }
- },
"convert-source-map": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz",
@@ -23095,15 +23107,6 @@
"integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==",
"dev": true
},
- "webext-content-scripts": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/webext-content-scripts/-/webext-content-scripts-2.5.2.tgz",
- "integrity": "sha512-N1Xq/E8dx0lVAOyPquuo+2Vj9Fx1GoqCFo79lWeJHbemaBJ53N3BHBmbJJYsQ8FOP1xiwN4bPRQY2dpSjHAD3Q==",
- "requires": {
- "webext-patterns": "^1.3.0",
- "webext-polyfill-kinda": "^1.0.0"
- }
- },
"webext-patterns": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/webext-patterns/-/webext-patterns-1.3.0.tgz",
@@ -23120,9 +23123,9 @@
}
},
"webext-polyfill-kinda": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/webext-polyfill-kinda/-/webext-polyfill-kinda-1.0.0.tgz",
- "integrity": "sha512-Py/d3w/bC0KntuO60ePSWHsdrebZ3uYBLeFUjyPkDV3yTEQib0MRFvPh57t8XjImu4ylBoEAsFjzh/r22UtxMw=="
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/webext-polyfill-kinda/-/webext-polyfill-kinda-1.0.2.tgz",
+ "integrity": "sha512-rqQUKeBTOicej0tjDJWDQlOTnDcm9yYJTzgI+7rMdyYV4QHmYMRm+yjkcVgECkg/Wu9MboZ4lYeBPdp1Ep9WgQ=="
},
"webidl-conversions": {
"version": "7.0.0",
diff --git a/package.json b/package.json
index 345cac80..295ddb21 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "",
"main": "background.js",
"dependencies": {
- "content-scripts-register-polyfill": "^4.0.2",
+ "@ajayyy/content-scripts-register-polyfill": "^4.0.2-safari-fix",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
diff --git a/src/background.ts b/src/background.ts
index d7d95819..9f6ce8d0 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -2,7 +2,7 @@ import * as CompileConfig from "../config.json";
import Config from "./config";
import { Registration } from "./types";
-import "content-scripts-register-polyfill";
+import "@ajayyy/content-scripts-register-polyfill";
import { sendRealRequestToCustomServer, setupBackgroundRequestProxy } from "../maze-utils/src/background-request-proxy";
import { setupTabUpdates } from "../maze-utils/src/tab-updates";
import { generateUserID } from "../maze-utils/src/setup";