mirror of
https://github.com/younesaassila/ttv-lol-pro.git
synced 2025-04-29 14:04:26 +02:00
🚨 Fix linter warnings
This commit is contained in:
parent
82377e8ab3
commit
95939c6276
22
.github/ISSUE_TEMPLATE/bug_report.md
vendored
22
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -1,10 +1,9 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
title: ""
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
assignees: ""
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
@ -12,6 +11,7 @@ A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
|
5
.github/ISSUE_TEMPLATE/feature_request.md
vendored
5
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@ -1,10 +1,9 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
title: ""
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
assignees: ""
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
|
234
.prettierignore
Normal file
234
.prettierignore
Normal file
@ -0,0 +1,234 @@
|
||||
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,macos,node
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,macos,node
|
||||
|
||||
### macOS ###
|
||||
# General
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Icon must end with two \r
|
||||
Icon
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear in the root of a volume
|
||||
.DocumentRevisions-V100
|
||||
.fseventsd
|
||||
.Spotlight-V100
|
||||
.TemporaryItems
|
||||
.Trashes
|
||||
.VolumeIcon.icns
|
||||
.com.apple.timemachine.donotpresent
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
### macOS Patch ###
|
||||
# iCloud generated files
|
||||
*.icloud
|
||||
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# Snowpack dependency directory (https://snowpack.dev/)
|
||||
web_modules/
|
||||
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional stylelint cache
|
||||
.stylelintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# vuepress v2.x temp and cache directory
|
||||
.temp
|
||||
|
||||
# Docusaurus cache and generated files
|
||||
.docusaurus
|
||||
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
### Node Patch ###
|
||||
# Serverless Webpack directories
|
||||
.webpack/
|
||||
|
||||
# Optional stylelint cache
|
||||
|
||||
# SvelteKit build / generate output
|
||||
.svelte-kit
|
||||
|
||||
### VisualStudioCode ###
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/*.code-snippets
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
|
||||
### VisualStudioCode Patch ###
|
||||
# Ignore all local history of files
|
||||
.history
|
||||
.ionide
|
||||
|
||||
# Support for Project snippet scope
|
||||
.vscode/*.code-snippets
|
||||
|
||||
# Ignore code-workspaces
|
||||
*.code-workspace
|
||||
|
||||
### Windows ###
|
||||
# Windows thumbnail cache files
|
||||
Thumbs.db
|
||||
Thumbs.db:encryptable
|
||||
ehthumbs.db
|
||||
ehthumbs_vista.db
|
||||
|
||||
# Dump file
|
||||
*.stackdump
|
||||
|
||||
# Folder config file
|
||||
[Dd]esktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,macos,node
|
||||
|
||||
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
|
||||
|
||||
releases/
|
||||
manifest.json
|
@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
- Demonstrating empathy and kindness toward other people
|
||||
- Being respectful of differing opinions, viewpoints, and experiences
|
||||
- Giving and gracefully accepting constructive feedback
|
||||
- Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
and learning from the experience
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
- Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
- The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
- Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
- Public or private harassment
|
||||
- Publishing others' private information, such as a physical or email
|
||||
address, without their explicit permission
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
- Other conduct which could reasonably be considered inappropriate in a
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
|
||||
### 4. Permanent Ban
|
||||
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
|
38
FAQ.md
38
FAQ.md
@ -3,10 +3,12 @@
|
||||
## Installation
|
||||
|
||||
#### Q) I'm on 1.9.3 and the extension doesn't auto-update to the V2 branch, why?
|
||||
A) The V1 and V2 branches use different proxying systems, so we won't push any auto-updates to anyone if the V1 branch still works for them. We've also released the extension on Chrome Web Store and Firefox Addons Store to recieve auto-updates from there.
|
||||
|
||||
A) The V1 and V2 branches use different proxying systems, so we won't push any auto-updates to anyone if the V1 branch still works for them. We've also released the extension on Chrome Web Store and Firefox Addons Store to recieve auto-updates from there.
|
||||
|
||||
#### Q) Do you recommend me installing the extension from the stores or manually install it?
|
||||
A) We strongly encourage users to install the extension through the stores as they can deliver automatic updates to improve the overall experience.
|
||||
|
||||
A) We strongly encourage users to install the extension through the stores as they can deliver automatic updates to improve the overall experience.
|
||||
|
||||
Chrome Web Store: https://chrome.google.com/webstore/detail/ttv-lol-pro/bpaoeijjlplfjbagceilcgbkcdjbomjd
|
||||
|
||||
@ -15,19 +17,23 @@ Firefox Addons: https://addons.mozilla.org/addon/ttv-lol-pro/
|
||||
Outdated builds can give unexpected results, please update to the latest version!
|
||||
|
||||
#### Q) When I click the Options menu on the extension I still have V1 proxies on them.
|
||||
A) There's been some reports from users having this strange behavior. Please uninstall any other Twitch AdBlock extension before installing TTV LOL PRO. If you're installing TTV LOL PRO V2, please uninstall TTV LOL PRO V1 before installing it.
|
||||
|
||||
Alternatively, you can reset your settings to default provided on the Extension's Options Page.
|
||||
A) There's been some reports from users having this strange behavior. Please uninstall any other Twitch AdBlock extension before installing TTV LOL PRO. If you're installing TTV LOL PRO V2, please uninstall TTV LOL PRO V1 before installing it.
|
||||
|
||||
Alternatively, you can reset your settings to default provided on the Extension's Options Page.
|
||||
|
||||
#### Q) The V2 branch seems more updated, should I go for it?
|
||||
|
||||
A) Twitch does some really weird update rollouts. The V2 branch was created due to some users getting hit by ads using the V1 method.
|
||||
|
||||
We strongly recommend you trying out the V1 branch and only update to V2 if needed. V1 system is more reliable and works better than V2 using default proxies.
|
||||
|
||||
#### Q) Why does the Chrome extension need the permissions to read traffic on all websites?
|
||||
A) We require a very specific permission for the V2 system to work, `proxy`, as specified [here](src/manifest.chromium.json). Chrome does a really aggresive naming to that permission, as if it's used in a malicious manner, an extension could forward all the requests to a proxy server of his choice.
|
||||
|
||||
A) We require a very specific permission for the V2 system to work, `proxy`, as specified [here](src/manifest.chromium.json). Chrome does a really aggresive naming to that permission, as if it's used in a malicious manner, an extension could forward all the requests to a proxy server of his choice.
|
||||
|
||||
You can take a look at the extension's source code. We only proxy the following domains related to Twitch for the system to work:
|
||||
|
||||
- `video-weaver.*.hls.ttvnw.net` (Required)
|
||||
- `passport.twitch.tv` (Optional. Setting = ON by default)
|
||||
- `usher.ttvnw.net` (Optional. Setting = ON by default)
|
||||
@ -37,12 +43,14 @@ You can take a look at the extension's source code. We only proxy the following
|
||||
## Options Page
|
||||
|
||||
#### Q) What does `laissez-passer` mean and what it does?
|
||||
|
||||
A) We've been trying really hard to provide a reliable blocking method of ads on Twitch, but due to Twitch's specific countries rollouts, we needed to proxy more Twitch's traffic for those users.
|
||||
|
||||
By default we proxy `video-weaver.*.hls.ttvnw.net`, `passport.twitch.tv` and `usher.ttvnw.net` requests, altough there's some users that may still experience ads. We encourage those users to enable `laissez-passer` which enables proxying of two extra domains, `www.twitch.tv` (homepage only) and `gql.twitch.tv`. Enabling `laissez-passer` can enable some features which are not available in your country, please check disclaimer on the extension's Options Page.
|
||||
By default we proxy `video-weaver.*.hls.ttvnw.net`, `passport.twitch.tv` and `usher.ttvnw.net` requests, altough there's some users that may still experience ads. We encourage those users to enable `laissez-passer` which enables proxying of two extra domains, `www.twitch.tv` (homepage only) and `gql.twitch.tv`. Enabling `laissez-passer` can enable some features which are not available in your country, please check disclaimer on the extension's Options Page.
|
||||
|
||||
#### Q) Wow, you proxy a lot of my Twitch traffic, can my account be hijacked from this?
|
||||
A) Twitch has been using the HTTPS protocol for years now, such as basically every website on the planet. This means that the traffic is encrypted between you and Twitch's servers. The proxy server can't see anything based on your traffic. The only information that a proxy could obtain is that your public IP address is accessing `www.twitch.tv` (for example) at 3AM, there's no more information, as the proxy only acts as a "forwarding" server.
|
||||
|
||||
A) Twitch has been using the HTTPS protocol for years now, such as basically every website on the planet. This means that the traffic is encrypted between you and Twitch's servers. The proxy server can't see anything based on your traffic. The only information that a proxy could obtain is that your public IP address is accessing `www.twitch.tv` (for example) at 3AM, there's no more information, as the proxy only acts as a "forwarding" server.
|
||||
|
||||
The default provided proxies only stores logs of connections for 24h, after that they're all purged. This is done to improve the proxy performance as we can see usage stats based on that. If you don't like this, we suggest creating your own proxy server using the following [how-to](https://github.com/younesaassila/ttv-lol-pro/discussions/151),
|
||||
|
||||
@ -53,33 +61,37 @@ Keep in mind that all ISPs and providers can still see your IP address and domai
|
||||
### Firefox
|
||||
|
||||
#### Q) AdBlocking seems to partially work, I do get pre-rolls but not mid-rolls
|
||||
|
||||
A) This is easily fixed by enabling `laissez-passer`. Please read the disclaimer on the extension's Options Page
|
||||
|
||||
#### Q) I don't get any pre-rolls but I always get hit by mid-rolls
|
||||
A) Firefox's Extension has some techniques to optimize your requests to the proxy server. Some users may be affected by this, thus getting hit by mid-rolls. Reloading your Twitch page or resetting your player could get rid of those, but if you feel that it is annoying, we encourage you to switch to "Proxy all requests" on the Options Tab.
|
||||
|
||||
Proxying all requests will overload more the default proxy servers, thus we only recommend this as last resort.
|
||||
A) Firefox's Extension has some techniques to optimize your requests to the proxy server. Some users may be affected by this, thus getting hit by mid-rolls. Reloading your Twitch page or resetting your player could get rid of those, but if you feel that it is annoying, we encourage you to switch to "Proxy all requests" on the Options Tab.
|
||||
|
||||
Proxying all requests will overload more the default proxy servers, thus we only recommend this as last resort.
|
||||
|
||||
### Chrome
|
||||
|
||||
#### Q) I do still get ads after installing it, what should I do)
|
||||
|
||||
A) This is easily fixed by enabling `laissez-passer`. Please read the disclaimer on the extension's Options Page
|
||||
|
||||
### All platforms
|
||||
|
||||
#### Q) I have constant buffering, streams appear as offline, ...
|
||||
|
||||
A) Default proxies are provided with the best experience possible with a budget in mind. Public proxies are hosted in Europe, thus Europe users shouldn't have any issues, but America/Asia/... users can be affected from this on peak hours.
|
||||
|
||||
We're sorry for this, but the V2 system is very bandwidth/CPU intensive thus making it not budget-friendly to deploy on other regions.
|
||||
We're sorry for this, but the V2 system is very bandwidth/CPU intensive thus making it not budget-friendly to deploy on other regions.
|
||||
|
||||
You have the option to host your own proxy server using the following [guide](https://github.com/younesaassila/ttv-lol-pro/discussions/151), thus keep in mind that you're on your own.
|
||||
|
||||
If you feel like supporting the project and getting some sweet benefits, please consider sponsoring Younes or Marc. We do offer private proxies hosted in the EU and the US:
|
||||
If you feel like supporting the project and getting some sweet benefits, please consider sponsoring Younes or Marc. We do offer private proxies hosted in the EU and the US:
|
||||
|
||||
Support the extension development: https://github.com/sponsors/younesaassila
|
||||
|
||||
Support the proxies costs: https://github.com/sponsors/zGato
|
||||
|
||||
Please take a look at Marc's Sponsors page for the perks: https://github.com/sponsors/zGato. You can make the donation to either Younes or Marc, the perks will be the same.
|
||||
Please take a look at Marc's Sponsors page for the perks: https://github.com/sponsors/zGato. You can make the donation to either Younes or Marc, the perks will be the same.
|
||||
|
||||
Thank you for your support.
|
||||
Thank you for your support.
|
||||
|
@ -71,8 +71,9 @@ TTV LOL PRO removes _most_ livestream ads from Twitch. This is free, don't expec
|
||||
|
||||
- removes banner ads,
|
||||
- removes ads on VODs.
|
||||
|
||||
**Frequent Asked Questions (FAQ):**
|
||||
|
||||
**Frequent Asked Questions (FAQ):**
|
||||
|
||||
- [Click here](FAQ.md)
|
||||
|
||||
## Screenshots
|
||||
|
@ -22,8 +22,8 @@
|
||||
"predev:chromium": "npm run clean && shx cp src/manifest.chromium.json src/manifest.json",
|
||||
"dev:firefox": "parcel src/manifest.json --host localhost --target webext-dev --no-hmr",
|
||||
"dev:chromium": "parcel src/manifest.json --host localhost --target webext-dev --no-hmr",
|
||||
"lint": "prettier --check ./src",
|
||||
"lint:fix": "prettier --write ./src",
|
||||
"lint": "prettier --check .",
|
||||
"lint:fix": "prettier --write .",
|
||||
"prebuild:firefox": "npm run clean && shx cp src/manifest.firefox.json src/manifest.json",
|
||||
"prebuild:chromium": "npm run clean && shx cp src/manifest.chromium.json src/manifest.json",
|
||||
"build:firefox": "parcel build src/manifest.json --target webext-prod --no-source-maps",
|
||||
|
Loading…
x
Reference in New Issue
Block a user