Compare commits

...

21 Commits

Author SHA1 Message Date
Younes Aassila
fa1c74e23e
Merge pull request #369 from younesaassila/v2.4.0
Release version 2.4.0
2025-02-13 15:11:32 +01:00
Younes Aassila
9d86b37d00
Upgrade dependencies 2025-02-13 15:04:46 +01:00
Younes Aassila
e7f00f4e56
Remove extra dot to avoid format confusion 2025-02-09 16:24:25 +01:00
Younes Aassila
4693ceb9a5
Fix export of allowOtherProxyProtocols setting 2025-02-09 16:21:05 +01:00
Younes Aassila
21fc889cbd
Upgrade dependencies 2025-02-09 15:12:36 +01:00
Younes Aassila
2cba7c1509
Improve UX of "Allow other protocols" option 2025-02-09 15:12:29 +01:00
Younes Aassila
6df1cc7638
Improve code 2025-02-07 20:11:53 +01:00
Younes Aassila
de97812b24
Reformat code, add toggle option for protocol support 2025-02-07 20:11:52 +01:00
Younes Aassila
b0b0cb09a9
Merge pull request #332 from tim-crisp/feature/proxy-protocol-support
Feature/proxy protocol support
2025-02-07 20:11:52 +01:00
Younes Aassila
f9fcce5cac
Update workflows 2025-02-07 20:11:52 +01:00
Younes Aassila
6fcae2eea1
Fix review comments 2025-02-07 20:11:40 +01:00
Younes Aassila
9f45b77b83
Upgrade dependencies 2025-02-07 20:11:39 +01:00
Younes Aassila
010265c8f0
Cleanup + fix warnings caused by clearStats 2025-02-07 20:11:38 +01:00
Younes Aassila
ac50e0c8b2
Improve implementation of auto whitelist feature 2025-02-07 20:11:38 +01:00
Younes Aassila
be39a5344f
Fix auto whitelist subs feature
- The token in the Usher req lies about the sub status (always false)
2025-02-07 20:11:38 +01:00
Younes Aassila
2a79647fae
Implement review changes 2025-02-07 20:11:38 +01:00
Younes Aassila
7ab206e3d8
Reduce log level for "no manifest for weaver" because of frequency due to ClearStats 2025-02-07 20:11:37 +01:00
Younes Aassila
66d3ef30b1
Add VOD check for auto whitelist sub channel feature 2025-02-07 20:11:37 +01:00
Tim
f2aee154ba fix: types 2024-09-24 13:09:45 +01:00
Tim
a7e7aa0e93 fix: fallback to protocols default port for onAuthRequired 2024-09-24 13:09:36 +01:00
Tim
62e34f55b0 feat: add support for additional proxy protocols 2024-09-24 13:09:03 +01:00
20 changed files with 325 additions and 216 deletions

View File

@ -6,11 +6,13 @@ on:
tags-ignore: ["**"]
pull_request:
branches: ["**"]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
concurrency: build-${{ github.ref }}
steps:

View File

@ -18,6 +18,7 @@ on:
pull_request:
# The branches below must be a subset of the branches above
branches: ["v2"]
types: [opened, synchronize, reopened, ready_for_review]
schedule:
- cron: "32 9 * * 6"
@ -25,6 +26,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
concurrency: codeql-${{ github.ref }}
permissions:
actions: read

View File

@ -5,14 +5,20 @@
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: "Dependency Review"
on: [pull_request]
on:
pull_request:
branches: ["**"]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
jobs:
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
concurrency: dependencies-${{ github.ref }}
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4

132
package-lock.json generated
View File

@ -15,8 +15,8 @@
},
"devDependencies": {
"@parcel/config-webextension": "^2.13.3",
"@types/chrome": "^0.0.300",
"@types/node": "^22.13.0",
"@types/chrome": "^0.0.304",
"@types/node": "^22.13.2",
"@types/webextension-polyfill": "^0.12.1",
"buffer": "^6.0.3",
"parcel": "^2.13.3",
@ -1833,9 +1833,9 @@
}
},
"node_modules/@swc/core": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core/-/core-1.10.12.tgz",
"integrity": "sha512-+iUL0PYpPm6N9AdV1wvafakvCqFegQus1aoEDxgFsv3/uNVNIyRaupf/v/Zkp5hbep2EzhtoJR0aiJIzDbXWHg==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core/-/core-1.10.16.tgz",
"integrity": "sha512-nOINg/OUcZazCW7B55QV2/UB8QAqz9FYe4+z229+4RYboBTZ102K7ebOEjY5sKn59JgAkhjZTz+5BKmXpDFopw==",
"dev": true,
"hasInstallScript": true,
"license": "Apache-2.0",
@ -1851,16 +1851,16 @@
"url": "https://opencollective.com/swc"
},
"optionalDependencies": {
"@swc/core-darwin-arm64": "1.10.12",
"@swc/core-darwin-x64": "1.10.12",
"@swc/core-linux-arm-gnueabihf": "1.10.12",
"@swc/core-linux-arm64-gnu": "1.10.12",
"@swc/core-linux-arm64-musl": "1.10.12",
"@swc/core-linux-x64-gnu": "1.10.12",
"@swc/core-linux-x64-musl": "1.10.12",
"@swc/core-win32-arm64-msvc": "1.10.12",
"@swc/core-win32-ia32-msvc": "1.10.12",
"@swc/core-win32-x64-msvc": "1.10.12"
"@swc/core-darwin-arm64": "1.10.16",
"@swc/core-darwin-x64": "1.10.16",
"@swc/core-linux-arm-gnueabihf": "1.10.16",
"@swc/core-linux-arm64-gnu": "1.10.16",
"@swc/core-linux-arm64-musl": "1.10.16",
"@swc/core-linux-x64-gnu": "1.10.16",
"@swc/core-linux-x64-musl": "1.10.16",
"@swc/core-win32-arm64-msvc": "1.10.16",
"@swc/core-win32-ia32-msvc": "1.10.16",
"@swc/core-win32-x64-msvc": "1.10.16"
},
"peerDependencies": {
"@swc/helpers": "*"
@ -1872,9 +1872,9 @@
}
},
"node_modules/@swc/core-darwin-arm64": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.10.12.tgz",
"integrity": "sha512-pOANQegUTAriW7jq3SSMZGM5l89yLVMs48R0F2UG6UZsH04SiViCnDctOGlA/Sa++25C+rL9MGMYM1jDLylBbg==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.10.16.tgz",
"integrity": "sha512-iikIxwqCQ4Bvz79vJ4ELh26efPf1u5D9TFdmXSJUBs7C3mmMHvk5zyWD9A9cTowXiW6WHs2gE58U1R9HOTTIcg==",
"cpu": [
"arm64"
],
@ -1889,9 +1889,9 @@
}
},
"node_modules/@swc/core-darwin-x64": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.10.12.tgz",
"integrity": "sha512-m4kbpIDDsN1FrwfNQMU+FTrss356xsXvatLbearwR+V0lqOkjLBP0VmRvQfHEg+uy13VPyrT9gj4HLoztlci7w==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.10.16.tgz",
"integrity": "sha512-R2Eb9aktWd62vPfW9H/c/OaQ0e94iURibBo4uzUUcgxNNmB4+wb6piKbHxGdr/5bEsT+vJ1lwZFSRzfb45E7DA==",
"cpu": [
"x64"
],
@ -1906,9 +1906,9 @@
}
},
"node_modules/@swc/core-linux-arm-gnueabihf": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.10.12.tgz",
"integrity": "sha512-OY9LcupgqEu8zVK+rJPes6LDJJwPDmwaShU96beTaxX2K6VrXbpwm5WbPS/8FfQTsmpnuA7dCcMPUKhNgmzTrQ==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.10.16.tgz",
"integrity": "sha512-mkqN3HBAMnuiSGZ/k2utScuH8rAPshvNj0T1LjBWon+X9DkMNHSA+aMLdWsy0yZKF1zjOPc4L3Uq2l2wzhUlzA==",
"cpu": [
"arm"
],
@ -1923,9 +1923,9 @@
}
},
"node_modules/@swc/core-linux-arm64-gnu": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.10.12.tgz",
"integrity": "sha512-nJD587rO0N4y4VZszz3xzVr7JIiCzSMhEMWnPjuh+xmPxDBz0Qccpr8xCr1cSxpl1uY7ERkqAGlKr6CwoV5kVg==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.10.16.tgz",
"integrity": "sha512-PH/+q/L5nVZJ91CU07CL6Q9Whs6iR6nneMZMAgtVF9Ix8ST0cWVItdUhs6D38kFklCFhaOrpHhS01HlMJ72vWw==",
"cpu": [
"arm64"
],
@ -1940,9 +1940,9 @@
}
},
"node_modules/@swc/core-linux-arm64-musl": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.10.12.tgz",
"integrity": "sha512-oqhSmV+XauSf0C//MoQnVErNUB/5OzmSiUzuazyLsD5pwqKNN+leC3JtRQ/QVzaCpr65jv9bKexT9+I2Tt3xDw==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.10.16.tgz",
"integrity": "sha512-1169+C9XbydKKc6Ec1XZxTGKtHjZHDIFn0r+Nqp/QSVwkORrOY1Vz2Hdu7tn/lWMg36ZkGePS+LnnyV67s/7yg==",
"cpu": [
"arm64"
],
@ -1957,9 +1957,9 @@
}
},
"node_modules/@swc/core-linux-x64-gnu": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.10.12.tgz",
"integrity": "sha512-XldSIHyjD7m1Gh+/8rxV3Ok711ENLI420CU2EGEqSe3VSGZ7pHJvJn9ZFbYpWhsLxPqBYMFjp3Qw+J6OXCPXCA==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.10.16.tgz",
"integrity": "sha512-n2rV0XwkjoHn4MDJmpYp5RBrnyi94/6GsJVpbn6f+/eqSrZn3mh3dT7pdZc9zCN1Qp9eDHo+uI6e/wgvbL22uA==",
"cpu": [
"x64"
],
@ -1974,9 +1974,9 @@
}
},
"node_modules/@swc/core-linux-x64-musl": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.10.12.tgz",
"integrity": "sha512-wvPXzJxzPgTqhyp1UskOx1hRTtdWxlyFD1cGWOxgLsMik0V9xKRgqKnMPv16Nk7L9xl6quQ6DuUHj9ID7L3oVw==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.10.16.tgz",
"integrity": "sha512-EevCpwreBrkPrJjQVIbiM81lK42ukNNSlBmrSRxxbx2V9VGmOd5qxX0cJBn0TRRSLIPi62BuMS76F9iYjqsjgg==",
"cpu": [
"x64"
],
@ -1991,9 +1991,9 @@
}
},
"node_modules/@swc/core-win32-arm64-msvc": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.10.12.tgz",
"integrity": "sha512-TUYzWuu1O7uyIcRfxdm6Wh1u+gNnrW5M1DUgDOGZLsyQzgc2Zjwfh2llLhuAIilvCVg5QiGbJlpibRYJ/8QGsg==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.10.16.tgz",
"integrity": "sha512-BvE7RWAnKJeELVQWLok6env5I4GUVBTZSvaSN/VPgxnTjF+4PsTeQptYx0xCYhp5QCv68wWYsBnZKuPDS+SBsw==",
"cpu": [
"arm64"
],
@ -2008,9 +2008,9 @@
}
},
"node_modules/@swc/core-win32-ia32-msvc": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.10.12.tgz",
"integrity": "sha512-4Qrw+0Xt+Fe2rz4OJ/dEPMeUf/rtuFWWAj/e0vL7J5laUHirzxawLRE5DCJLQTarOiYR6mWnmadt9o3EKzV6Xg==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.10.16.tgz",
"integrity": "sha512-7Jf/7AeCgbLR/JsQgMJuacHIq4Jeie3knf6+mXxn8aCvRypsOTIEu0eh7j24SolOboxK1ijqJ86GyN1VA2Rebg==",
"cpu": [
"ia32"
],
@ -2025,9 +2025,9 @@
}
},
"node_modules/@swc/core-win32-x64-msvc": {
"version": "1.10.12",
"resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.10.12.tgz",
"integrity": "sha512-YiloZXLW7rUxJpALwHXaGjVaAEn+ChoblG7/3esque+Y7QCyheoBUJp2DVM1EeVA43jBfZ8tvYF0liWd9Tpz1A==",
"version": "1.10.16",
"resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.10.16.tgz",
"integrity": "sha512-p0blVm0R8bjaTtmW+FoPmLxLSQdRNbqhuWcR/8g80OzMSkka9mk5/J3kn/5JRVWh+MaR9LHRHZc1Q1L8zan13g==",
"cpu": [
"x64"
],
@ -2079,9 +2079,9 @@
}
},
"node_modules/@types/chrome": {
"version": "0.0.300",
"resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.300.tgz",
"integrity": "sha512-vS5bUmNjMrbPut43Q8plS8GTAiJE+pBOxw1ovGC4LcwiGNKTithAH7TxhzHeX4wNq/FsaLj5KaW7riI0CgYjIg==",
"version": "0.0.304",
"resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.304.tgz",
"integrity": "sha512-ms9CLILU+FEMK7gcmgz/Mtn2E81YQWiMIzCFF8ktp98EVNIIfoqaDTD4+ailOCq1sGjbnEmfJxQ1FAsQtk5M3A==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -2114,9 +2114,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "22.13.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.0.tgz",
"integrity": "sha512-ClIbNe36lawluuvq3+YYhnIN2CELi+6q8NpnM7PYp4hBn/TatfboPgVSm2rwKRfnV2M+Ty9GWDFI64KEe+kysA==",
"version": "22.13.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.2.tgz",
"integrity": "sha512-Z+r8y3XL9ZpI2EY52YYygAFmo2/oWfNSj4BCpAXE2McAexDk8VcnBMGC9Djn9gTKt4d2T/hhXqmPzo4hfIXtTg==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -2311,9 +2311,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001696",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001696.tgz",
"integrity": "sha512-pDCPkvzfa39ehJtJ+OwGT/2yvT2SbjfHhiIW2LWOAcMQ7BzwxT/XuyUp4OTOd0XFWA6BKw0JalnBHgSi5DGJBQ==",
"version": "1.0.30001699",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001699.tgz",
"integrity": "sha512-b+uH5BakXZ9Do9iK+CkDmctUSEqZl+SP056vc5usa0PL+ev5OHw003rZXcnjNDv3L8P5j6rwT6C0BPKSikW08w==",
"dev": true,
"funding": [
{
@ -2642,9 +2642,9 @@
}
},
"node_modules/electron-to-chromium": {
"version": "1.5.90",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.90.tgz",
"integrity": "sha512-C3PN4aydfW91Natdyd449Kw+BzhLmof6tzy5W1pFC5SpQxVXT+oyiyOG9AgYYSN9OdA/ik3YkCrpwqI8ug5Tug==",
"version": "1.5.98",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.98.tgz",
"integrity": "sha512-bI/LbtRBxU2GzK7KK5xxFd2y9Lf9XguHooPYbcXWy6wUoT8NMnffsvRhPmSeUHLSDKAEtKuTaEtK4Ms15zkIEA==",
"dev": true,
"license": "ISC"
},
@ -2892,9 +2892,9 @@
"license": "BSD-3-Clause"
},
"node_modules/import-fresh": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
"integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
"integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -3651,9 +3651,9 @@
}
},
"node_modules/postcss": {
"version": "8.5.1",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.1.tgz",
"integrity": "sha512-6oz2beyjc5VMn/KV1pPw8fliQkhBXrVn1Z3TVyqZxU8kZpzEKhBdmCFqI6ZbmGtamQvQGuU1sgPTk8ZrXDD7jQ==",
"version": "8.5.2",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.2.tgz",
"integrity": "sha512-MjOadfU3Ys9KYoX0AdkBlFEF1Vx37uCCeN4ZHnmwm9FfpbsGWMZeBLMmmpY+6Ocqod7mkdZ0DT31OlbsFrLlkA==",
"dev": true,
"funding": [
{
@ -4022,9 +4022,9 @@
"license": "MIT"
},
"node_modules/semver": {
"version": "7.7.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.0.tgz",
"integrity": "sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ==",
"version": "7.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
"integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
"dev": true,
"license": "ISC",
"bin": {

View File

@ -48,8 +48,8 @@
},
"devDependencies": {
"@parcel/config-webextension": "^2.13.3",
"@types/chrome": "^0.0.300",
"@types/node": "^22.13.0",
"@types/chrome": "^0.0.304",
"@types/node": "^22.13.2",
"@types/webextension-polyfill": "^0.12.1",
"buffer": "^6.0.3",
"parcel": "^2.13.3",

View File

@ -4,7 +4,8 @@ export default function isChannelWhitelisted(
channelName: string | null
): boolean {
if (!channelName) return false;
const channelNameLower = channelName.toLowerCase();
return store.state.whitelistedChannels.some(
c => c.toLowerCase() === channelName.toLowerCase()
channel => channel.toLowerCase() === channelNameLower
);
}

View File

@ -1,9 +1,24 @@
import { Address6 } from "ip-address";
import type { ProxyInfo } from "../../types";
import type { ProxyInfo, ProxyType } from "../../types";
const DEFAULT_PORTS: Readonly<Record<ProxyType, number>> = Object.freeze({
direct: 0,
http: 80,
https: 443,
socks: 1080,
socks4: 1080,
});
export function getProxyInfoFromUrl(
url: string
): ProxyInfo & { type: "http"; host: string; port: number } {
): ProxyInfo & { host: string; port: number } {
let type: ProxyType | undefined = undefined;
if (url.includes("://")) {
const [protocol] = url.split("://", 1);
type = protocol as ProxyType;
url = url.substring(protocol.length + 3, url.length);
}
const lastIndexOfAt = url.lastIndexOf("@");
const hostname = url.substring(lastIndexOfAt + 1, url.length);
const lastIndexOfColon = getLastIndexOfColon(hostname);
@ -12,7 +27,7 @@ export function getProxyInfoFromUrl(
let port: number | undefined = undefined;
if (lastIndexOfColon === -1) {
host = hostname;
port = 3128; // Default port
port = type ? DEFAULT_PORTS[type] : 3128; // Default port
} else {
host = hostname.substring(0, lastIndexOfColon);
port = Number(hostname.substring(lastIndexOfColon + 1, hostname.length));
@ -31,7 +46,7 @@ export function getProxyInfoFromUrl(
}
return {
type: "http",
type: type ?? "http",
host,
port,
username,

View File

@ -1,5 +1,5 @@
import store from "../../store";
import { ProxyRequestType } from "../../types";
import { ProxyRequestType, ProxyType } from "../../types";
import isRequestTypeProxied from "./isRequestTypeProxied";
import { getProxyInfoFromUrl, getUrlFromProxyInfo } from "./proxyInfo";
import {
@ -11,6 +11,14 @@ import {
} from "./regexes";
import updateDnsResponses from "./updateDnsResponses";
const PROXY_TYPE_MAP: Readonly<Record<ProxyType, string>> = Object.freeze({
direct: "DIRECT",
http: "PROXY",
https: "HTTPS",
socks: "SOCKS5",
socks4: "SOCKS4",
});
export function updateProxySettings(requestFilter?: ProxyRequestType[]) {
const { optimizedProxiesEnabled, passportLevel } = store.state;
@ -92,7 +100,7 @@ function getProxyInfoStringFromUrls(urls: string[]): string {
return [
...urls.map(url => {
const proxyInfo = getProxyInfoFromUrl(url);
return `PROXY ${getUrlFromProxyInfo({
return `${PROXY_TYPE_MAP[proxyInfo.type]} ${getUrlFromProxyInfo({
...proxyInfo,
// Don't include username/password in PAC script.
username: undefined,

View File

@ -1,7 +1,7 @@
export const passportHostRegex = /^passport\.twitch\.tv$/i;
export const twitchApiChannelNameRegex = /\/hls\/(.+)\.m3u8/i;
export const twitchChannelNameRegex =
/^https?:\/\/(?:www|m)\.twitch\.tv\/(?:videos\/|popout\/|moderator\/)?((?!(?:directory|jobs|p|privacy|store|turbo)\b)\w+)/i;
/^https?:\/\/(?:www|m)\.twitch\.tv\/(?:videos\/|popout\/|moderator\/)?((?!(?:directory|downloads|jobs|p|privacy|search|settings|store|turbo)\b)\w+)/i;
export const twitchGqlHostRegex = /^gql\.twitch\.tv$/i;
export const twitchTvHostRegex = /^(?:www|m)\.twitch\.tv$/i;
export const usherHostRegex = /^usher\.ttvnw\.net$/i;

View File

@ -1,10 +0,0 @@
import store from "../../store";
export default function wasChannelSubscriber(
channelName: string | null
): boolean {
if (!channelName) return false;
return store.state.activeChannelSubscriptions.some(
c => c.toLowerCase() === channelName.toLowerCase()
);
}

View File

@ -47,10 +47,13 @@ function onStoreLoad() {
/**
* Clear stats for stream on page load/reload.
* @param channelName
* @param delayMs
* @returns
*/
function clearStats(channelName: string | null) {
async function clearStats(channelName: string | null, delayMs?: number) {
if (!channelName) return;
if (delayMs) await new Promise(resolve => setTimeout(resolve, delayMs));
const channelNameLower = channelName.toLowerCase();
if (store.state.streamStatuses.hasOwnProperty(channelNameLower)) {
delete store.state.streamStatuses[channelNameLower];
@ -102,7 +105,7 @@ function onPageMessage(event: MessageEvent) {
return;
}
const { message, responseType, responseMessageType } = event.data;
const { message } = event.data;
if (!message) return;
if (message.type === MessageType.GetStoreState) {
@ -142,48 +145,50 @@ function onPageMessage(event: MessageEvent) {
}
// ---
else if (message.type === MessageType.ChannelSubStatusChange) {
const { channelName, wasSubscribed, isSubscribed } = message;
const isWhitelisted = isChannelWhitelisted(channelName);
const { channelNameLower, wasSubscribed, isSubscribed } = message;
const isWhitelisted = isChannelWhitelisted(channelNameLower);
console.log("[TTV LOL PRO] ChannelSubStatusChange", {
channelName,
channelNameLower,
wasSubscribed,
isSubscribed,
isWhitelisted,
});
if (store.state.whitelistChannelSubscriptions && channelName != null) {
const currentChannelNameLower = findChannelFromTwitchTvUrl(
location.href
)?.toLowerCase();
if (store.state.whitelistChannelSubscriptions && channelNameLower != null) {
if (!wasSubscribed && isSubscribed) {
store.state.activeChannelSubscriptions.push(channelName);
store.state.activeChannelSubscriptions.push(channelNameLower);
// Add to whitelist.
if (!isWhitelisted) {
console.log(`[TTV LOL PRO] Adding '${channelName}' to whitelist.`);
store.state.whitelistedChannels.push(channelName);
console.log(
`[TTV LOL PRO] Adding '${channelNameLower}' to whitelist.`
);
store.state.whitelistedChannels.push(channelNameLower);
if (channelNameLower === currentChannelNameLower) {
location.reload();
}
}
} else if (wasSubscribed && !isSubscribed) {
store.state.activeChannelSubscriptions =
store.state.activeChannelSubscriptions.filter(
c => c.toLowerCase() !== channelName.toLowerCase()
channel => channel.toLowerCase() !== channelNameLower
);
// Remove from whitelist.
if (isWhitelisted) {
console.log(
`[TTV LOL PRO] Removing '${channelName}' from whitelist.`
`[TTV LOL PRO] Removing '${channelNameLower}' from whitelist.`
);
store.state.whitelistedChannels =
store.state.whitelistedChannels.filter(
c => c.toLowerCase() !== channelName.toLowerCase()
channel => channel.toLowerCase() !== channelNameLower
);
if (channelNameLower === currentChannelNameLower) {
location.reload();
}
}
}
}
window.postMessage({
type: responseType,
message: {
type: responseMessageType,
whitelistedChannels: JSON.parse(
JSON.stringify(store.state.whitelistedChannels)
),
},
});
}
// ---
else if (message.type === MessageType.UsherResponse) {
@ -208,6 +213,6 @@ function onPageMessage(event: MessageEvent) {
}
// ---
else if (message.type === MessageType.ClearStats) {
clearStats(message.channelName);
clearStats(message.channelName, 2000);
}
}

View File

@ -28,7 +28,7 @@ type ListOptions = {
getPromptPlaceholder(insertMode: InsertMode): string;
isAddAllowed(text: string): AllowedResult;
isEditAllowed(text: string): AllowedResult;
onEdit?(text: string): void;
onChange?(oldText: string | undefined, newText: string): void;
focusPrompt: boolean;
hidePromptMarker: boolean;
insertMode: InsertMode;
@ -85,6 +85,9 @@ const optimizedProxiesListElement = $(
) as HTMLOListElement;
const normalProxiesInputElement = $("#normal") as HTMLInputElement;
const normalProxiesListElement = $("#normal-proxies-list") as HTMLOListElement;
const otherProtocolsCheckboxElement = $(
"#other-protocols-checkbox"
) as HTMLInputElement;
// Ad log
const adLogEnabledCheckboxElement = $(
"#ad-log-enabled-checkbox"
@ -159,12 +162,6 @@ function main() {
}
return [true];
},
isEditAllowed(text) {
if (!/^[a-z0-9_]+$/i.test(text)) {
return [false, `'${text}' is not a valid channel name`];
}
return [true];
},
});
whitelistSubscriptionsCheckboxElement.checked =
store.state.whitelistChannelSubscriptions;
@ -180,44 +177,21 @@ function main() {
if (store.state.optimizedProxiesEnabled)
optimizedProxiesInputElement.checked = true;
else normalProxiesInputElement.checked = true;
const onProxyTypeChange = () => {
const onProxyModeChange = () => {
store.state.optimizedProxiesEnabled = optimizedProxiesInputElement.checked;
if (isChromium && store.state.chromiumProxyActive) {
updateProxySettings();
}
updateProxyUsage();
};
optimizedProxiesInputElement.addEventListener("change", onProxyTypeChange);
normalProxiesInputElement.addEventListener("change", onProxyTypeChange);
listInit(optimizedProxiesListElement, "optimizedProxies", {
getPromptPlaceholder: insertMode => {
if (insertMode == "prepend") return "Enter a proxy URL… (Primary)";
return "Enter a proxy URL… (Fallback)";
},
isAddAllowed: isOptimizedProxyUrlAllowed,
isEditAllowed: isOptimizedProxyUrlAllowed,
onEdit() {
if (isChromium && store.state.chromiumProxyActive) {
updateProxySettings();
}
},
hidePromptMarker: true,
insertMode: "both",
});
listInit(normalProxiesListElement, "normalProxies", {
getPromptPlaceholder: insertMode => {
if (insertMode == "prepend") return "Enter a proxy URL… (Primary)";
return "Enter a proxy URL… (Fallback)";
},
isAddAllowed: isNormalProxyUrlAllowed,
isEditAllowed: isNormalProxyUrlAllowed,
onEdit() {
if (isChromium && store.state.chromiumProxyActive) {
updateProxySettings();
}
},
hidePromptMarker: true,
insertMode: "both",
optimizedProxiesInputElement.addEventListener("change", onProxyModeChange);
normalProxiesInputElement.addEventListener("change", onProxyModeChange);
loadProxiesLists();
otherProtocolsCheckboxElement.checked = store.state.allowOtherProxyProtocols;
otherProtocolsCheckboxElement.addEventListener("change", () => {
store.state.allowOtherProxyProtocols =
otherProtocolsCheckboxElement.checked;
loadProxiesLists();
});
// Ad log
adLogEnabledCheckboxElement.checked = store.state.adLogEnabled;
@ -304,6 +278,37 @@ function updateProxyUsage() {
}
}
function loadProxiesLists() {
listInit(optimizedProxiesListElement, "optimizedProxies", {
getPromptPlaceholder: insertMode => {
if (insertMode == "prepend") return "Enter a proxy URL… (Primary)";
return "Enter a proxy URL… (Fallback)";
},
isAddAllowed: isOptimizedProxyUrlAllowed,
onChange() {
if (isChromium && store.state.chromiumProxyActive) {
updateProxySettings();
}
},
hidePromptMarker: true,
insertMode: "both",
});
listInit(normalProxiesListElement, "normalProxies", {
getPromptPlaceholder: insertMode => {
if (insertMode == "prepend") return "Enter a proxy URL… (Primary)";
return "Enter a proxy URL… (Fallback)";
},
isAddAllowed: isNormalProxyUrlAllowed,
onChange() {
if (isChromium && store.state.chromiumProxyActive) {
updateProxySettings();
}
},
hidePromptMarker: true,
insertMode: "both",
});
}
function isOptimizedProxyUrlAllowed(url: string): AllowedResult {
const urlLower = url.toLowerCase();
@ -336,8 +341,17 @@ function isOptimizedProxyUrlAllowed(url: string): AllowedResult {
return [false, "TTV LOL PRO v1 proxies are not compatible"];
}
if (/^https?:\/\//i.test(url)) {
return [false, "Proxy URLs must not contain a protocol (e.g. 'http://')"];
if (url.includes("://")) {
const [protocol] = url.split("://", 1);
if (!store.state.allowOtherProxyProtocols) {
return [
false,
"Proxy URLs are not allowed to contain a protocol (e.g. 'http://')",
];
} else if (!["http", "https", "socks", "socks4"].includes(protocol)) {
return [false, `'${protocol}' is not a supported protocol`];
}
url = url.substring(protocol.length + 3, url.length);
}
if (url.includes("/")) {
@ -401,6 +415,7 @@ function listInit(
storeKey: StoreStringArrayKey,
options: Partial<ListOptions> = {}
) {
listElement.innerHTML = ""; // Reset list element.
const listOptions: ListOptions = { ...DEFAULT_LIST_OPTIONS, ...options };
for (const text of store.state[storeKey]) {
_listAppend(listElement, storeKey, text, {
@ -460,18 +475,19 @@ function _listAppend(
return console.error(`Item '${text}' not found in '${storeKey}' array`);
const textInput = e.target as HTMLInputElement;
const oldText = text;
const newText = textInput.value.trim();
// Remove item if text is empty.
if (newText === "") {
store.state[storeKey].splice(itemIndex, 1);
listItem.remove();
if (options.onEdit) options.onEdit(newText);
if (options.onChange) options.onChange(oldText, newText);
return;
}
// Check if text is valid.
const [allowed, error] = options.isEditAllowed(newText);
const [allowed, error] = options.isAddAllowed(newText);
if (!allowed) {
alert(error || "You cannot edit this item");
alert(error || "You cannot add this item");
textInput.value = text;
return;
}
@ -480,7 +496,7 @@ function _listAppend(
textInput.placeholder = options.getItemPlaceholder(newText);
textInput.value = newText; // Update text in case it was trimmed.
text = newText; // Update current text variable.
if (options.onEdit) options.onEdit(newText);
if (options.onChange) options.onChange(oldText, newText);
});
listItem.append(textInput);
@ -535,7 +551,7 @@ function _listPrompt(
if (options.insertMode === "prepend") newArray.unshift(text);
else newArray.push(text);
store.state[storeKey] = newArray;
if (options.onEdit) options.onEdit(text);
if (options.onChange) options.onChange(undefined, text);
listItem.remove();
_listAppend(listElement, storeKey, text, options);
@ -556,6 +572,7 @@ function _listPrompt(
exportButtonElement.addEventListener("click", () => {
const state: Partial<State> = {
adLogEnabled: store.state.adLogEnabled,
allowOtherProxyProtocols: store.state.allowOtherProxyProtocols,
anonymousMode: store.state.anonymousMode,
normalProxies: store.state.normalProxies,
optimizedProxies: store.state.optimizedProxies,

View File

@ -200,6 +200,34 @@
>List of other proxies</a
>" discussion on TTV LOL PRO's GitHub repository.
</small>
<br /><br />
<ul class="options-list">
<li>
<input
type="checkbox"
name="other-protocols-checkbox"
id="other-protocols-checkbox"
/>
<label for="other-protocols-checkbox">
Allow the use of other protocols
</label>
<span class="tag">For advanced users only</span>
<br />
<small>
This option allows you to use protocols other than HTTP.
</small>
<br />
<small>
Supported protocols are HTTPS (<code>https://</code>), SOCKS4
(<code>socks4://</code>), and SOCKS5 (<code>socks://</code>).
</small>
<br />
<small>
To provide a protocol, use the format
<code>protocol://hostname:port</code>
</small>
</li>
</ul>
</section>
<!-- Ad log -->

View File

@ -44,14 +44,10 @@ export function getFetch(pageState: PageState): typeof fetch {
cachedPlaybackTokenRequestHeaders,
cachedPlaybackTokenRequestBody
);
const message = {
pageState.sendMessageToWorkerScripts(pageState.twitchWorkers, {
type: MessageType.NewPlaybackAccessTokenResponse,
newPlaybackAccessToken,
};
pageState.sendMessageToWorkerScripts(
pageState.twitchWorkers,
message
);
});
break;
}
});
@ -75,9 +71,13 @@ export function getFetch(pageState: PageState): typeof fetch {
console.log("[TTV LOL PRO] Cleared stats (getFetch).");
if (!message.channelName) break;
const channelNameLower = message.channelName.toLowerCase();
usherManifests = usherManifests.filter(
manifest => manifest.channelName !== channelNameLower
);
for (let i = 0; i < usherManifests.length; i++) {
if (
usherManifests[i].channelName?.toLowerCase() === channelNameLower
) {
usherManifests[i].deleted = true;
}
}
if (cachedPlaybackTokenRequestBody?.includes(channelNameLower)) {
cachedPlaybackTokenRequestHeaders = null;
cachedPlaybackTokenRequestBody = null;
@ -199,7 +199,7 @@ export function getFetch(pageState: PageState): typeof fetch {
pageState.state?.anonymousMode === true ||
(shouldFlagRequest && willFailIntegrityCheckIfProxied);
if (shouldOverrideRequest) {
const newRequest = await getDefaultPlaybackAccessTokenRequest(
const newRequest = getDefaultPlaybackAccessTokenRequest(
channelName,
pageState.state?.anonymousMode === true
);
@ -268,36 +268,6 @@ export function getFetch(pageState: PageState): typeof fetch {
encodeURIComponent('"player_type":"frontpage"')
);
const channelName = findChannelFromUsherUrl(url);
if (
pageState.state?.whitelistChannelSubscriptions &&
channelName != null
) {
const wasSubscribed = wasChannelSubscriber(channelName, pageState);
const isSubscribed = url.includes(
encodeURIComponent('"subscriber":true')
);
const hasSubStatusChanged =
(wasSubscribed && !isSubscribed) || (!wasSubscribed && isSubscribed);
if (hasSubStatusChanged) {
try {
const response =
await pageState.sendMessageToContentScriptAndWaitForResponse(
pageState.scope,
{
type: MessageType.ChannelSubStatusChange,
channelName,
wasSubscribed,
isSubscribed,
},
MessageType.ChannelSubStatusChangeResponse
);
if (typeof response.whitelistedChannels === "object") {
pageState.state.whitelistedChannels =
response.whitelistedChannels;
}
} catch {}
}
}
const isWhitelisted = isChannelWhitelisted(channelName, pageState);
if (!isLivestream || isFrontpage || isWhitelisted) {
console.log(
@ -433,6 +403,68 @@ export function getFetch(pageState: PageState): typeof fetch {
//#region Responses
graphqlRes: if (
host != null &&
twitchGqlHostRegex.test(host) &&
response.status < 400
) {
await waitForStore(pageState);
if (!pageState.state?.whitelistChannelSubscriptions) break graphqlRes;
responseBody ??= await readResponseBody();
// Preliminary check to avoid parsing the response body if possible.
if (
!responseBody.includes('"UserSelfConnection"') ||
!responseBody.includes('"subscriptionBenefit"') ||
!responseBody.includes('"login"')
) {
break graphqlRes;
}
try {
let channelName: string;
let isSubscribed: boolean;
const body = JSON.parse(responseBody);
if (Array.isArray(body)) {
const match = body.find(
(obj: any) =>
obj.data &&
obj.data.user &&
obj.data.user.login != null &&
obj.data.user.self &&
"subscriptionBenefit" in obj.data.user.self
);
if (match == null) break graphqlRes;
channelName = match.data.user.login;
isSubscribed = match.data.user.self.subscriptionBenefit != null;
} else {
const isMatch =
body.data &&
body.data.user &&
body.data.user.login != null &&
body.data.user.self &&
"subscriptionBenefit" in body.data.user.self;
if (!isMatch) break graphqlRes;
channelName = body.data.user.login;
isSubscribed = body.data.user.self.subscriptionBenefit != null;
}
if (!channelName) break graphqlRes;
const isLivestream = !/^\d+$/.test(channelName); // VODs have numeric IDs.
if (!isLivestream) break graphqlRes;
const wasSubscribed = wasChannelSubscriber(channelName, pageState);
const hasSubStatusChanged =
(wasSubscribed && !isSubscribed) || (!wasSubscribed && isSubscribed);
if (hasSubStatusChanged) {
pageState.sendMessageToContentScript({
type: MessageType.ChannelSubStatusChange,
channelNameLower: channelName.toLowerCase(),
wasSubscribed,
isSubscribed,
});
}
} catch (error) {
console.error("[TTV LOL PRO] Failed to parse GraphQL response:", error);
}
}
// Twitch Usher responses.
usherRes: if (
host != null &&
@ -440,6 +472,7 @@ export function getFetch(pageState: PageState): typeof fetch {
response.status < 400
) {
//#region Usher responses.
// No need to wait for store here because all Usher requests have already waited for it.
const isLivestream = !url.includes("/vod/");
const isFrontpage = url.includes(
encodeURIComponent('"player_type":"frontpage"')
@ -449,6 +482,7 @@ export function getFetch(pageState: PageState): typeof fetch {
if (!isLivestream) break usherRes;
responseBody ??= await readResponseBody();
usherManifests = usherManifests.filter(manifest => !manifest.deleted); // Clean up deleted manifests.
const assignedMap = parseUsherManifest(responseBody);
if (assignedMap != null) {
console.debug(
@ -461,9 +495,12 @@ export function getFetch(pageState: PageState): typeof fetch {
replacementMap: null,
consecutiveMidrollResponses: 0,
consecutiveMidrollCooldown: 0,
deleted: false,
});
} else {
console.debug("[TTV LOL PRO] Received Usher response.");
console.error(
"[TTV LOL PRO] Received Usher response but failed to parse it."
);
}
// Send Video Weaver URLs to content script.
const videoWeaverUrls = [...(assignedMap?.values() ?? [])];
@ -509,14 +546,11 @@ export function getFetch(pageState: PageState): typeof fetch {
console.log("[TTV LOL PRO] Midroll ad detected.");
manifest.consecutiveMidrollResponses += 1;
manifest.consecutiveMidrollCooldown = 15;
const isWhitelisted = isChannelWhitelisted(
manifest.channelName,
pageState
);
await waitForStore(pageState);
const shouldUpdateReplacementMap =
pageState.state?.optimizedProxiesEnabled === true &&
manifest.consecutiveMidrollResponses <= 2 && // Avoid infinite loop.
!isWhitelisted;
!videoWeaverUrlsToNotProxy.has(url);
if (shouldUpdateReplacementMap) {
const success = await updateVideoWeaverReplacementMap(
pageState,
@ -649,9 +683,10 @@ function isChannelWhitelisted(
pageState: PageState
): boolean {
if (!channelName) return false;
const channelNameLower = channelName.toLowerCase();
return (
pageState.state?.whitelistedChannels.some(
c => c.toLowerCase() === channelName.toLowerCase()
channel => channel.toLowerCase() === channelNameLower
) ?? false
);
}
@ -661,9 +696,10 @@ function wasChannelSubscriber(
pageState: PageState
): boolean {
if (!channelName) return false;
const channelNameLower = channelName.toLowerCase();
return (
pageState.state?.activeChannelSubscriptions.some(
c => c.toLowerCase() === channelName.toLowerCase()
channel => channel.toLowerCase() === channelNameLower
) ?? false
);
}
@ -719,10 +755,6 @@ function cancelRequest(): never {
throw new Error();
}
async function sleep(ms: number): Promise<void> {
return new Promise(resolve => setTimeout(resolve, ms));
}
//#region Video Weaver URL replacement
/**
@ -731,10 +763,10 @@ async function sleep(ms: number): Promise<void> {
* @param anonymousMode
* @returns
*/
async function getDefaultPlaybackAccessTokenRequest(
function getDefaultPlaybackAccessTokenRequest(
channel: string | null = null,
anonymousMode: boolean = false
): Promise<Request | null> {
): Request | null {
// We can use `location.href` because we're in the page script.
const channelName = channel ?? findChannelFromTwitchTvUrl(location.href);
if (!channelName) return null;
@ -790,7 +822,7 @@ async function fetchReplacementPlaybackAccessToken(
): Promise<PlaybackAccessToken | null> {
// Not using the cached request because we'd need to check if integrity requests are proxied.
try {
let request = await getDefaultPlaybackAccessTokenRequest(
let request = getDefaultPlaybackAccessTokenRequest(
null,
pageState.state?.anonymousMode === true
);

View File

@ -39,6 +39,7 @@ const pageState: PageState = {
sendMessageToWorkerScriptsAndWaitForResponse,
};
const NATIVE_FETCH = window.fetch;
window.fetch = getFetch(pageState);
const NATIVE_WORKER = window.Worker;

View File

@ -32,9 +32,7 @@ async function sendMessageAndWaitForResponse(
): Promise<any> {
return new Promise((resolve, reject) => {
if (!recipient) {
console.error("[TTV LOL PRO] Message recipient is undefined.");
resolve(undefined);
return;
return reject(new Error("Message recipient is undefined."));
}
const listener = (event: MessageEvent) => {

View File

@ -36,6 +36,7 @@ export interface UsherManifest {
replacementMap: Map<string, string> | null; // Same as above, but with new URLs.
consecutiveMidrollResponses: number; // Used to avoid infinite loops.
consecutiveMidrollCooldown: number; // Used to avoid infinite loops.
deleted: boolean; // Deletion flag for cleanup.
}
export interface PlaybackAccessToken {

View File

@ -7,6 +7,7 @@ export default function getDefaultState() {
adLog: [],
adLogEnabled: true,
adLogLastSent: 0,
allowOtherProxyProtocols: false,
anonymousMode: true,
chromiumProxyActive: false,
dnsResponses: [],

View File

@ -10,6 +10,7 @@ export interface State {
adLog: AdLogEntry[];
adLogEnabled: boolean;
adLogLastSent: number;
allowOtherProxyProtocols: boolean;
anonymousMode: boolean;
chromiumProxyActive: boolean;
dnsResponses: DnsResponse[];

View File

@ -3,9 +3,11 @@ export type KeyOfType<T, V> = keyof {
[P in keyof T as T[P] extends V ? P : never]: any;
};
export type ProxyType = "direct" | "http" | "https" | "socks" | "socks4";
// From https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/ProxyInfo
export interface ProxyInfo {
type: "direct" | "http" | "https" | "socks" | "socks4";
type: ProxyType;
host?: string;
port?: number;
username?: string;
@ -79,11 +81,10 @@ export const enum MessageType {
EnableFullMode = "TLP_EnableFullMode",
EnableFullModeResponse = "TLP_EnableFullModeResponse",
DisableFullMode = "TLP_DisableFullMode",
ChannelSubStatusChange = "TLP_ChannelSubStatusChange",
ChannelSubStatusChangeResponse = "TLP_ChannelSubStatusChangeResponse",
UsherResponse = "TLP_UsherResponse",
NewPlaybackAccessToken = "TLP_NewPlaybackAccessToken",
NewPlaybackAccessTokenResponse = "TLP_NewPlaybackAccessTokenResponse",
ChannelSubStatusChange = "TLP_ChannelSubStatusChange",
MultipleAdBlockersInUse = "TLP_MultipleAdBlockersInUse",
ClearStats = "TLP_ClearStats",
}