mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 10:21:22 +01:00
Fixes after merges, prettier globally applied
This commit is contained in:
1 parent
58161ac123
commit
b0cb173830
45 files changed
+1419
-1178
No files matched your search
@@ -3,65 +3,63 @@ description: File a bug report!
|
|||||||
# title: "(Bug): "
|
# title: "(Bug): "
|
||||||
labels: ["bug"]
|
labels: ["bug"]
|
||||||
body:
|
body:
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Browser
|
label: Browser
|
||||||
description: Which browser are you using?
|
description: Which browser are you using?
|
||||||
placeholder: "Example: Google Chrome"
|
placeholder: "Example: Google Chrome"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Browser Version
|
label: Browser Version
|
||||||
description: Which browser version are you using?
|
description: Which browser version are you using?
|
||||||
placeholder: "Example: Chromium v95"
|
placeholder: "Example: Chromium v95"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
attributes:
|
attributes:
|
||||||
label: "Extension or Userscript?"
|
label: "Extension or Userscript?"
|
||||||
options:
|
options:
|
||||||
- Extension
|
- Extension
|
||||||
- Userscript
|
- Userscript
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Extension/Userscript Version
|
label: Extension/Userscript Version
|
||||||
description: Which extension/userscript version are you using?
|
description: Which extension/userscript version are you using?
|
||||||
placeholder: "Example: Version 0.0.0.1"
|
placeholder: "Example: Version 0.0.0.1"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: Video link where you see the problem
|
label: Video link where you see the problem
|
||||||
description: Video link where you see the problem
|
description: Video link where you see the problem
|
||||||
placeholder: "Example: https://www.youtube.com/watch?v=s4-gMgdsnHQ"
|
placeholder: "Example: https://www.youtube.com/watch?v=s4-gMgdsnHQ"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: What happened?
|
label: What happened?
|
||||||
description: Also tell us, what did you expect to happen?
|
description: Also tell us, what did you expect to happen?
|
||||||
placeholder: Tell us what you see!
|
placeholder: Tell us what you see!
|
||||||
value: "A bug happened!"
|
value: "A bug happened!"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: How to reproduce/recreate?
|
label: How to reproduce/recreate?
|
||||||
description: Detailed steps to reproduce/recreate it.
|
description: Detailed steps to reproduce/recreate it.
|
||||||
placeholder: "We need to be able to reproduce/recreate that bug/event in order to fix it. Please write the steps in detail."
|
placeholder: "We need to be able to reproduce/recreate that bug/event in order to fix it. Please write the steps in detail."
|
||||||
value: "Tell us how it happened with detailed steps for us."
|
value: "Tell us how it happened with detailed steps for us."
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
attributes:
|
attributes:
|
||||||
label: "Will you be available for follow-up questions to help developers diagnose & fix the issue?"
|
label: "Will you be available for follow-up questions to help developers diagnose & fix the issue?"
|
||||||
options:
|
options:
|
||||||
- "Yes"
|
- "Yes"
|
||||||
- "No"
|
- "No"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
||||||
@@ -3,37 +3,36 @@ description: Request or suggest a new feature!
|
|||||||
# title: "(Feature Request): "
|
# title: "(Feature Request): "
|
||||||
labels: ["enhancement"]
|
labels: ["enhancement"]
|
||||||
body:
|
body:
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
attributes:
|
attributes:
|
||||||
label: Extension or Userscript?
|
label: Extension or Userscript?
|
||||||
options:
|
options:
|
||||||
- Extension
|
- Extension
|
||||||
- Userscript
|
- Userscript
|
||||||
- Both
|
- Both
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Request or suggest a new feature!
|
label: Request or suggest a new feature!
|
||||||
placeholder: I want to suggest...
|
placeholder: I want to suggest...
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Ways to implement this!
|
label: Ways to implement this!
|
||||||
placeholder: We can implement it by...
|
placeholder: We can implement it by...
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
attributes:
|
attributes:
|
||||||
label: Can you work on this?
|
label: Can you work on this?
|
||||||
options:
|
options:
|
||||||
- label: "Yes"
|
- label: "Yes"
|
||||||
- label: "No"
|
- label: "No"
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
attributes:
|
attributes:
|
||||||
label: "Will you be available for follow-up questions to help developers implement this?"
|
label: "Will you be available for follow-up questions to help developers implement this?"
|
||||||
options:
|
options:
|
||||||
- "Yes"
|
- "Yes"
|
||||||
- "No"
|
- "No"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
@@ -5,7 +5,6 @@ on:
|
|||||||
types: created
|
types: created
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
assign-commenter:
|
assign-commenter:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: |
|
if: |
|
||||||
|
|||||||
@@ -4,23 +4,22 @@ name: Website Lint
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- Website/**
|
- Website/**
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- Website/**
|
- Website/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
weblint:
|
weblint:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- run: npm install
|
- run: npm install
|
||||||
working-directory: Website
|
working-directory: Website
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
working-directory: Website
|
working-directory: Website
|
||||||
+8
-1
@@ -5,6 +5,7 @@ Read this in other languages: [Français](CONTRIBUTINGfr.md)
|
|||||||
Thank you for investing your time in contributing to our project! All your changes will be reflected in the next version of the extension (or the [website](https://www.returnyoutubedislike.com/)).
|
Thank you for investing your time in contributing to our project! All your changes will be reflected in the next version of the extension (or the [website](https://www.returnyoutubedislike.com/)).
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
Please use Prettier with default settings for formatting.
|
Please use Prettier with default settings for formatting.
|
||||||
|
|
||||||
#### Prerequisites
|
#### Prerequisites
|
||||||
@@ -38,22 +39,28 @@ Congratulations, You are now ready to develop!
|
|||||||
|
|
||||||
If you are new to developing Chrome extensions, or need extra help, please see [this YouTube tutorial](https://www.youtube.com/watch?v=mdOj6HYE3_0)
|
If you are new to developing Chrome extensions, or need extra help, please see [this YouTube tutorial](https://www.youtube.com/watch?v=mdOj6HYE3_0)
|
||||||
|
|
||||||
|
|
||||||
### Issues
|
### Issues
|
||||||
|
|
||||||
#### Opening a new issue
|
#### Opening a new issue
|
||||||
|
|
||||||
If you have any issues with the extension, please search to make sure the issue isn't already reported. If it isn't, open an issue, using the issue form is highly recommended but not mandatory.
|
If you have any issues with the extension, please search to make sure the issue isn't already reported. If it isn't, open an issue, using the issue form is highly recommended but not mandatory.
|
||||||
|
|
||||||
#### Solving an issue
|
#### Solving an issue
|
||||||
|
|
||||||
If you found an issue that you feel you might be able to solve, don't be shy. Open a PR with the fix and make sure to mention the issue you are fixing.
|
If you found an issue that you feel you might be able to solve, don't be shy. Open a PR with the fix and make sure to mention the issue you are fixing.
|
||||||
|
|
||||||
### Feature Request
|
### Feature Request
|
||||||
|
|
||||||
#### Opening a new feature request
|
#### Opening a new feature request
|
||||||
|
|
||||||
If you have an idea for the extension, feel free to open a feature request, but please search it before to make sure the feature isn't already suggested. Using the feature form is highly recommended but not mandatory
|
If you have an idea for the extension, feel free to open a feature request, but please search it before to make sure the feature isn't already suggested. Using the feature form is highly recommended but not mandatory
|
||||||
|
|
||||||
#### Implementing a feature request
|
#### Implementing a feature request
|
||||||
|
|
||||||
If you found a feature that you feel you might be able to implement, don't be shy. Open a PR with the fix and make sure to mention the feature you are implementing.
|
If you found a feature that you feel you might be able to implement, don't be shy. Open a PR with the fix and make sure to mention the feature you are implementing.
|
||||||
|
|
||||||
### What PRs do we accept?
|
### What PRs do we accept?
|
||||||
|
|
||||||
- Issue fixes.
|
- Issue fixes.
|
||||||
- Feature implementation.
|
- Feature implementation.
|
||||||
- Typos or better and easier words to use.
|
- Typos or better and easier words to use.
|
||||||
|
|||||||
+9
-1
@@ -5,9 +5,11 @@ Lisez ceci dans d'autres langues : [English](CONTRIBUTING.md)
|
|||||||
Merci d'investir votre temps pour contribuer à notre projet ! Toutes vos modifications seront prises en compte dans la prochaine version de l'extension (ou du site web).
|
Merci d'investir votre temps pour contribuer à notre projet ! Toutes vos modifications seront prises en compte dans la prochaine version de l'extension (ou du site web).
|
||||||
|
|
||||||
## Pour commencer
|
## Pour commencer
|
||||||
|
|
||||||
Veuillez utiliser [Prettier](https://prettier.io/) avec les paramètres par défaut pour le formatage du code.
|
Veuillez utiliser [Prettier](https://prettier.io/) avec les paramètres par défaut pour le formatage du code.
|
||||||
|
|
||||||
#### Prérequis
|
#### Prérequis
|
||||||
|
|
||||||
Vous devez avoir installé node et npm pour créer la version bundle depuis le code source.
|
Vous devez avoir installé node et npm pour créer la version bundle depuis le code source.
|
||||||
|
|
||||||
Versions utilisées lors de la mise en place :
|
Versions utilisées lors de la mise en place :
|
||||||
@@ -37,22 +39,28 @@ Félicitations, vous êtes maintenant prêt·e à développer !
|
|||||||
|
|
||||||
Si vous n'avez jamais développé d'extensions pour Chrome ou si vous avez besoin d'une aide supplémentaire, consultez [ce tutoriel YouTube](https://www.youtube.com/watch?v=mdOj6HYE3_0) (en anglais).
|
Si vous n'avez jamais développé d'extensions pour Chrome ou si vous avez besoin d'une aide supplémentaire, consultez [ce tutoriel YouTube](https://www.youtube.com/watch?v=mdOj6HYE3_0) (en anglais).
|
||||||
|
|
||||||
|
|
||||||
### Problèmes (aussi appelé issues en anglais)
|
### Problèmes (aussi appelé issues en anglais)
|
||||||
|
|
||||||
#### Signaler un problème
|
#### Signaler un problème
|
||||||
|
|
||||||
Si vous rencontrez des problèmes avec l'extension, vérifiez que le problème n'a pas déjà été signalé. Si ce n'est pas le cas, [signalez le problème](https://github.com/Anarios/return-youtube-dislike/issues/new?assignees=&labels=bug&template=bug.yml&title=%28Bug%29%3A+), en utilisant le formulaire qui est fortement recommandé mais pas obligatoire.
|
Si vous rencontrez des problèmes avec l'extension, vérifiez que le problème n'a pas déjà été signalé. Si ce n'est pas le cas, [signalez le problème](https://github.com/Anarios/return-youtube-dislike/issues/new?assignees=&labels=bug&template=bug.yml&title=%28Bug%29%3A+), en utilisant le formulaire qui est fortement recommandé mais pas obligatoire.
|
||||||
|
|
||||||
#### Résoudre un problème
|
#### Résoudre un problème
|
||||||
|
|
||||||
Si vous avez trouvé un problème que vous pensez pouvoir résoudre, ne soyez pas timide. Ouvrez une [PR](https://github.com/Anarios/return-youtube-dislike/pulls) [(C'est quoi ?)](https://blog.zenika.com/2017/01/24/pull-request-demystifie/) avec la solution et assurez-vous de mentionner le problème que vous résolvez (écrivez # puis le numéro de l'issue).
|
Si vous avez trouvé un problème que vous pensez pouvoir résoudre, ne soyez pas timide. Ouvrez une [PR](https://github.com/Anarios/return-youtube-dislike/pulls) [(C'est quoi ?)](https://blog.zenika.com/2017/01/24/pull-request-demystifie/) avec la solution et assurez-vous de mentionner le problème que vous résolvez (écrivez # puis le numéro de l'issue).
|
||||||
|
|
||||||
### Demande de fonctionnalité (aussi appelé feature request en anglais)
|
### Demande de fonctionnalité (aussi appelé feature request en anglais)
|
||||||
|
|
||||||
#### Ouverture d'une nouvelle demande de fonctionnalité
|
#### Ouverture d'une nouvelle demande de fonctionnalité
|
||||||
|
|
||||||
Si vous avez une idée pour l'extension, n'hésitez pas à [ouvrir une demande de fonctionnalité](https://github.com/Anarios/return-youtube-dislike/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=%28Feature+Request%29%3A+), mais veuillez effectuer une recherche préalable pour vous assurer que la fonctionnalité n'est pas déjà proposée. L'utilisation du formulaire de demande de fonctionnalité est fortement recommandée mais pas obligatoire.
|
Si vous avez une idée pour l'extension, n'hésitez pas à [ouvrir une demande de fonctionnalité](https://github.com/Anarios/return-youtube-dislike/issues/new?assignees=&labels=enhancement&template=feature-request.yml&title=%28Feature+Request%29%3A+), mais veuillez effectuer une recherche préalable pour vous assurer que la fonctionnalité n'est pas déjà proposée. L'utilisation du formulaire de demande de fonctionnalité est fortement recommandée mais pas obligatoire.
|
||||||
|
|
||||||
#### Implémenter une demande de fonctionnalité
|
#### Implémenter une demande de fonctionnalité
|
||||||
|
|
||||||
Si vous avez trouvé une fonctionnalité que vous pensez pouvoir mettre en œuvre, ne soyez pas timide. Ouvrez une [PR](https://github.com/Anarios/return-youtube-dislike/pulls) [(C'est quoi ?)](https://blog.zenika.com/2017/01/24/pull-request-demystifie/) avec le correctif et assurez-vous de mentionner la fonctionnalité que vous implémentez (écrivez # puis le numéro de l'issue).
|
Si vous avez trouvé une fonctionnalité que vous pensez pouvoir mettre en œuvre, ne soyez pas timide. Ouvrez une [PR](https://github.com/Anarios/return-youtube-dislike/pulls) [(C'est quoi ?)](https://blog.zenika.com/2017/01/24/pull-request-demystifie/) avec le correctif et assurez-vous de mentionner la fonctionnalité que vous implémentez (écrivez # puis le numéro de l'issue).
|
||||||
|
|
||||||
### Quels PR acceptons-nous ?
|
### Quels PR acceptons-nous ?
|
||||||
|
|
||||||
- Correction de problèmes.
|
- Correction de problèmes.
|
||||||
- Implémentation de fonctionnalités.
|
- Implémentation de fonctionnalités.
|
||||||
- Fautes de frappe ou utilisation de mots plus simples et plus efficaces.
|
- Fautes de frappe ou utilisation de mots plus simples et plus efficaces.
|
||||||
|
|||||||
+8
-1
@@ -5,6 +5,7 @@
|
|||||||
Благодарим вас за то, что вы потратили своё время на участие в нашем проекте! Все ваши изменения будут отражены в следующей версии расширения (или на [сайте](https://www.returnyoutubedislike.com/)).
|
Благодарим вас за то, что вы потратили своё время на участие в нашем проекте! Все ваши изменения будут отражены в следующей версии расширения (или на [сайте](https://www.returnyoutubedislike.com/)).
|
||||||
|
|
||||||
## Приступая к работе
|
## Приступая к работе
|
||||||
|
|
||||||
Пожалуйста, используйте Prettier с настройками по умолчанию для форматирования кода.
|
Пожалуйста, используйте Prettier с настройками по умолчанию для форматирования кода.
|
||||||
|
|
||||||
#### Необходимое
|
#### Необходимое
|
||||||
@@ -38,22 +39,28 @@ npm run build // для создания файла(ов) сборки один
|
|||||||
|
|
||||||
Если вы новичок в разработке расширений Chrome или вам нужна дополнительная помощь, посмотрите [это руководство на YouTube (англ.)](https://www.youtube.com/watch?v=mdOj6HYE3_0)
|
Если вы новичок в разработке расширений Chrome или вам нужна дополнительная помощь, посмотрите [это руководство на YouTube (англ.)](https://www.youtube.com/watch?v=mdOj6HYE3_0)
|
||||||
|
|
||||||
|
|
||||||
### Вопросы
|
### Вопросы
|
||||||
|
|
||||||
#### Открытие нового вопроса/проблемы
|
#### Открытие нового вопроса/проблемы
|
||||||
|
|
||||||
Если у вас возникли проблемы с расширением, пожалуйста, поищите, чтобы убедиться, что о проблеме ещё не сообщалось. Если это не так, откройте вопрос(issue), использование формы проблемы настоятельно рекомендуется, но не является обязательным.
|
Если у вас возникли проблемы с расширением, пожалуйста, поищите, чтобы убедиться, что о проблеме ещё не сообщалось. Если это не так, откройте вопрос(issue), использование формы проблемы настоятельно рекомендуется, но не является обязательным.
|
||||||
|
|
||||||
#### Решение вопроса
|
#### Решение вопроса
|
||||||
|
|
||||||
Если вы нашли проблему, которую, как вам кажется, вы можете решить, не стесняйтесь. Откройте запрос на извлечение(pull request) с исправлением и обязательно укажите вопрос, который вы устраняете.
|
Если вы нашли проблему, которую, как вам кажется, вы можете решить, не стесняйтесь. Откройте запрос на извлечение(pull request) с исправлением и обязательно укажите вопрос, который вы устраняете.
|
||||||
|
|
||||||
### Запрос функции
|
### Запрос функции
|
||||||
|
|
||||||
#### Открытие запроса на новую функцию
|
#### Открытие запроса на новую функцию
|
||||||
|
|
||||||
Если у вас есть идея для расширения, не стесняйтесь открыть запрос на функцию, но, пожалуйста, прежде поищите другие запросы, чтобы убедиться, что функция уже не предложена. Использование формы запроса функции настоятельно рекомендуется, но не является обязательным
|
Если у вас есть идея для расширения, не стесняйтесь открыть запрос на функцию, но, пожалуйста, прежде поищите другие запросы, чтобы убедиться, что функция уже не предложена. Использование формы запроса функции настоятельно рекомендуется, но не является обязательным
|
||||||
|
|
||||||
#### Внедрение запроса на функцию
|
#### Внедрение запроса на функцию
|
||||||
|
|
||||||
Если вы нашли функцию, которую, как вам кажется, вы могли бы реализовать, не стесняйтесь. Откройте запрос на извлечение(pull request) с исправлением и обязательно укажите функцию, которую вы реализуете.
|
Если вы нашли функцию, которую, как вам кажется, вы могли бы реализовать, не стесняйтесь. Откройте запрос на извлечение(pull request) с исправлением и обязательно укажите функцию, которую вы реализуете.
|
||||||
|
|
||||||
### Какие запросы на извлечение(pull request) мы принимаем?
|
### Какие запросы на извлечение(pull request) мы принимаем?
|
||||||
|
|
||||||
- Исправления проблем.
|
- Исправления проблем.
|
||||||
- Внедрения новых функций.
|
- Внедрения новых функций.
|
||||||
- Исправления опечаток и упрощение текста.
|
- Исправления опечаток и упрощение текста.
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
Read this in other languages: [Français](FAQfr.md)
|
Read this in other languages: [Français](FAQfr.md)
|
||||||
|
|
||||||
# Frequently Asked Questions
|
# Frequently Asked Questions
|
||||||
|
|
||||||
## Before asking a question on GitHub or Discord, please refer to this.
|
## Before asking a question on GitHub or Discord, please refer to this.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### **1. Where does this extension get the data?**
|
### **1. Where does this extension get the data?**
|
||||||
|
|
||||||
A Combination of Google APIs and scraped data.
|
A Combination of Google APIs and scraped data.
|
||||||
|
|
||||||
We save all available data to our DB for it to be available after Google shuts down dislike counts in their API.
|
We save all available data to our DB for it to be available after Google shuts down dislike counts in their API.
|
||||||
@@ -13,6 +15,7 @@ We save all available data to our DB for it to be available after Google shuts d
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
### **2. Video dislike count doesn't update**
|
### **2. Video dislike count doesn't update**
|
||||||
|
|
||||||
Right now video dislikes are cached, and aren't updated very frequenly. Once every 2-3 days, not more often.
|
Right now video dislikes are cached, and aren't updated very frequenly. Once every 2-3 days, not more often.
|
||||||
|
|
||||||
Yeah, it's not ideal, but it is what it is. Working on improving how often we can update them.
|
Yeah, it's not ideal, but it is what it is. Working on improving how often we can update them.
|
||||||
@@ -20,11 +23,13 @@ Yeah, it's not ideal, but it is what it is. Working on improving how often we ca
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
### **3. How does this work?**
|
### **3. How does this work?**
|
||||||
|
|
||||||
The extension collects the video id of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then stores the data in a database for caching (cached for around 2-3 days) and archiving purposes and returns it to you. The extension then displays the dislikes to you.
|
The extension collects the video id of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then stores the data in a database for caching (cached for around 2-3 days) and archiving purposes and returns it to you. The extension then displays the dislikes to you.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
### **4. What will happen after the YouTube API stops returning the dislike count?**
|
### **4. What will happen after the YouTube API stops returning the dislike count?**
|
||||||
|
|
||||||
The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives.
|
The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
@@ -52,4 +57,5 @@ This in video form
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
## I have security / privacy concerns
|
## I have security / privacy concerns
|
||||||
|
|
||||||
See [this page](SECURITY-FAQ.md) for more info.
|
See [this page](SECURITY-FAQ.md) for more info.
|
||||||
@@ -1,23 +1,29 @@
|
|||||||
Lisez ceci dans d'autres langues : [English](FAQ.md)
|
Lisez ceci dans d'autres langues : [English](FAQ.md)
|
||||||
|
|
||||||
# Foire Aux Questions
|
# Foire Aux Questions
|
||||||
|
|
||||||
## Avant de poser une question sur GitHub ou Discord, veuillez vous référer à ceci.
|
## Avant de poser une question sur GitHub ou Discord, veuillez vous référer à ceci.
|
||||||
|
|
||||||
### **1. Où cette extension obtient-elle les données ?**
|
### **1. Où cette extension obtient-elle les données ?**
|
||||||
|
|
||||||
Une combinaison d'API de Google et de données scrapées.
|
Une combinaison d'API de Google et de données scrapées.
|
||||||
|
|
||||||
Nous sauvegardons toutes les données disponibles dans notre base de données pour qu'elles soient disponibles après que Google ait supprimé le compteur de dislikes dans son API.
|
Nous sauvegardons toutes les données disponibles dans notre base de données pour qu'elles soient disponibles après que Google ait supprimé le compteur de dislikes dans son API.
|
||||||
|
|
||||||
### **2. Le nombre de dislikes sur les vidéos n'est pas mis à jour**
|
### **2. Le nombre de dislikes sur les vidéos n'est pas mis à jour**
|
||||||
|
|
||||||
Actuellement, les dislike sont mis en cache et ne sont pas mis à jour très fréquemment. Une fois tous les 2-3 jours, pas plus souvent.
|
Actuellement, les dislike sont mis en cache et ne sont pas mis à jour très fréquemment. Une fois tous les 2-3 jours, pas plus souvent.
|
||||||
|
|
||||||
Oui, ce n'est pas idéal, mais c'est ce que c'est. Nous travaillons à améliorer la fréquence des mises à jour.
|
Oui, ce n'est pas idéal, mais c'est ce que c'est. Nous travaillons à améliorer la fréquence des mises à jour.
|
||||||
|
|
||||||
### **3. Comment cela fonctionne-t-il ?**
|
### **3. Comment cela fonctionne-t-il ?**
|
||||||
|
|
||||||
L'extension collecte l'ID de la vidéo que vous regardez, récupère les dislikes (et d'autres champs comme les vues, les likes etc.) en utilisant notre API, si c'est la première fois que la vidéo a été récupérée par notre API, elle utilisera l'API YouTube pour obtenir les données, puis stocke les données dans une base de données pour la mise en cache (mise en cache pendant environ 2-3 jours) et à des fins d'archivage et vous les renvoie. L'extension vous affiche ensuite les dislikes.
|
L'extension collecte l'ID de la vidéo que vous regardez, récupère les dislikes (et d'autres champs comme les vues, les likes etc.) en utilisant notre API, si c'est la première fois que la vidéo a été récupérée par notre API, elle utilisera l'API YouTube pour obtenir les données, puis stocke les données dans une base de données pour la mise en cache (mise en cache pendant environ 2-3 jours) et à des fins d'archivage et vous les renvoie. L'extension vous affiche ensuite les dislikes.
|
||||||
|
|
||||||
### **4. Que se passera-t-il lorsque l'API YouTube ne renverra plus le nombre de dislikes ?**
|
### **4. Que se passera-t-il lorsque l'API YouTube ne renverra plus le nombre de dislikes ?**
|
||||||
|
|
||||||
Le backend utilisera une combinaison de statistiques du nombre de dislikes archivées, d'estimations extrapolées à partir des données d'extension des utilisateurs et d'estimations basées sur les ratios vues/likes pour les vidéos dont les dislikes n'ont pas été archivées et pour les archives dont le nombre de dislikes est obsolète.
|
Le backend utilisera une combinaison de statistiques du nombre de dislikes archivées, d'estimations extrapolées à partir des données d'extension des utilisateurs et d'estimations basées sur les ratios vues/likes pour les vidéos dont les dislikes n'ont pas été archivées et pour les archives dont le nombre de dislikes est obsolète.
|
||||||
|
|
||||||
## Je suis préoccupé par la sécurité / la confidentialité
|
## Je suis préoccupé par la sécurité / la confidentialité
|
||||||
|
|
||||||
Voir [cette page](SECURITY-FAQfr.md) pour plus d'informations.
|
Voir [cette page](SECURITY-FAQfr.md) pour plus d'informations.
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
**Contents**
|
**Contents**
|
||||||
|
|
||||||
- [Downloading](#downloading)
|
- [Downloading](#downloading)
|
||||||
@@ -193,7 +191,6 @@ For now, you can try this
|
|||||||
|
|
||||||
- Although app(s) which use this API exist, they aren't official.
|
- Although app(s) which use this API exist, they aren't official.
|
||||||
|
|
||||||
|
|
||||||
##### On Firefox
|
##### On Firefox
|
||||||
|
|
||||||
1. Install Firefox Nightly. Refer to this blog post for the procedure: [Expanded extension support in Firefox for Android Nightly](https://blog.mozilla.org/addons/2020/09/29/expanded-extension-support-in-firefox-for-android-nightly/)
|
1. Install Firefox Nightly. Refer to this blog post for the procedure: [Expanded extension support in Firefox for Android Nightly](https://blog.mozilla.org/addons/2020/09/29/expanded-extension-support-in-firefox-for-android-nightly/)
|
||||||
@@ -316,13 +313,8 @@ But still - here are the steps:
|
|||||||
<!-- links -->
|
<!-- links -->
|
||||||
|
|
||||||
[1]: https://chrome.google.com/webstore/detail/return-youtube-dislike/gebbhagfogifgggkldgodflihgfeippi
|
[1]: https://chrome.google.com/webstore/detail/return-youtube-dislike/gebbhagfogifgggkldgodflihgfeippi
|
||||||
|
|
||||||
[2]: https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/
|
[2]: https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/
|
||||||
|
|
||||||
[3]: https://github.com/Anarios/return-youtube-dislike/raw/main/Extensions/UserScript/Return%20Youtube%20Dislike.user.js
|
[3]: https://github.com/Anarios/return-youtube-dislike/raw/main/Extensions/UserScript/Return%20Youtube%20Dislike.user.js
|
||||||
|
|
||||||
[4]: https://en.wikipedia.org/wiki/Chromium_(web_browser)#Browsers_based_on_Chromium
|
[4]: https://en.wikipedia.org/wiki/Chromium_(web_browser)#Browsers_based_on_Chromium
|
||||||
|
|
||||||
[5]: https://en.wikipedia.org/wiki/Category:Web_browsers_based_on_Firefox
|
[5]: https://en.wikipedia.org/wiki/Category:Web_browsers_based_on_Firefox
|
||||||
|
|
||||||
[6]: chrome://extensions
|
[6]: chrome://extensions
|
||||||
@@ -51,7 +51,7 @@ If the basic checks didn't resolve anything
|
|||||||
|
|
||||||
**Applies for Windows 7 (and earlier) only**
|
**Applies for Windows 7 (and earlier) only**
|
||||||
|
|
||||||
and only for [Chromium Based Browsers][1]
|
and only for [Chromium Based Browsers][1]
|
||||||
|
|
||||||
- [Chromium-based browsers][1] don't have their own certificate manager.
|
- [Chromium-based browsers][1] don't have their own certificate manager.
|
||||||
- They use Windows' certificates manager.
|
- They use Windows' certificates manager.
|
||||||
@@ -113,7 +113,7 @@ If it does, find the extension(s) preventing RYD from working correctly and re-c
|
|||||||
|
|
||||||
### Known conflicts
|
### Known conflicts
|
||||||
|
|
||||||
>### scriptSafe
|
> ### scriptSafe
|
||||||
>
|
>
|
||||||
> **Solution:** Trust `returnyoutubedislikeapi.com` manually
|
> **Solution:** Trust `returnyoutubedislikeapi.com` manually
|
||||||
>
|
>
|
||||||
@@ -179,9 +179,6 @@ Coming soon. Please have patience.
|
|||||||
<!-- links -->
|
<!-- links -->
|
||||||
|
|
||||||
[1]: https://en.wikipedia.org/wiki/Chromium_(web_browser)#Browsers_based_on_Chromium
|
[1]: https://en.wikipedia.org/wiki/Chromium_(web_browser)#Browsers_based_on_Chromium
|
||||||
|
|
||||||
[2]: https://en.wikipedia.org/wiki/Category:Web_browsers_based_on_Firefox
|
[2]: https://en.wikipedia.org/wiki/Category:Web_browsers_based_on_Firefox
|
||||||
|
|
||||||
[3]: https://discord.gg/mYnESY4Md5
|
[3]: https://discord.gg/mYnESY4Md5
|
||||||
|
|
||||||
[4]: #contact-in-discord-server
|
[4]: #contact-in-discord-server
|
||||||
@@ -29,4 +29,3 @@ We have implemented measures to prevent bot attacks and are gonna continue to wo
|
|||||||
### Why don't you share the backend code?
|
### Why don't you share the backend code?
|
||||||
|
|
||||||
We will share it at some point - but there's really no real reason to share it right now. It gives a false sense of security - because in a zero-trust system, we could just as well disclose one version but deploy another. There are plenty of reasons to keep the code hidden, specifically, how we battle spam. Hiding/Obfuscating the spam handling code is a fairly standard practice.
|
We will share it at some point - but there's really no real reason to share it right now. It gives a false sense of security - because in a zero-trust system, we could just as well disclose one version but deploy another. There are plenty of reasons to keep the code hidden, specifically, how we battle spam. Hiding/Obfuscating the spam handling code is a fairly standard practice.
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
### Я слышал обсуждение OAuth и доступа к моему аккаунту на YouTube!
|
### Я слышал обсуждение OAuth и доступа к моему аккаунту на YouTube!
|
||||||
|
|
||||||
Эта функция будет необязательной и очень нужной. Если вы являетесь создателем YouTube и хотите поделиться с нами статистикой отметок «Не нравится», вы можете это сделать. По своей структуре [OAuth](https://ru.wikipedia.org/wiki/OAuth#:~:text=%D0%B1%D0%B5%D0%B7%20%D0%BF%D0%B5%D1%80%D0%B5%D0%B4%D0%B0%D1%87%D0%B8%20%D0%B5%D0%B9%20(%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B9%20%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%B5)%20%D0%BB%D0%BE%D0%B3%D0%B8%D0%BD%D0%B0%20%D0%B8%20%D0%BF%D0%B0%D1%80%D0%BE%D0%BB%D1%8F) очень безопасен. Вы можете отозвать доступ к своему аккаунту в любое время, и можете дать нам ограниченные разрешения. Мы не будем запрашивать никаких разрешений, которые не требуются. Мы будем запрашивать разрешения только для просмотра статистики ваших видео.
|
Эта функция будет необязательной и очень нужной. Если вы являетесь создателем YouTube и хотите поделиться с нами статистикой отметок «Не нравится», вы можете это сделать. По своей структуре [OAuth](<https://ru.wikipedia.org/wiki/OAuth#:~:text=%D0%B1%D0%B5%D0%B7%20%D0%BF%D0%B5%D1%80%D0%B5%D0%B4%D0%B0%D1%87%D0%B8%20%D0%B5%D0%B9%20(%D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5%D0%B9%20%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%B5)%20%D0%BB%D0%BE%D0%B3%D0%B8%D0%BD%D0%B0%20%D0%B8%20%D0%BF%D0%B0%D1%80%D0%BE%D0%BB%D1%8F>) очень безопасен. Вы можете отозвать доступ к своему аккаунту в любое время, и можете дать нам ограниченные разрешения. Мы не будем запрашивать никаких разрешений, которые не требуются. Мы будем запрашивать разрешения только для просмотра статистики ваших видео.
|
||||||
|
|
||||||
### Как я могу доверять этому счётчику отметок «Не нравится»?
|
### Как я могу доверять этому счётчику отметок «Не нравится»?
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ Read this in other languages: [Français](readmefr.md)
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
## FAQs
|
## FAQs
|
||||||
|
|
||||||
- [General](https://github.com/Anarios/return-youtube-dislike/blob/main/Guides/FAQ.md)
|
- [General](https://github.com/Anarios/return-youtube-dislike/blob/main/Guides/FAQ.md)
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ Lisez ceci dans d'autres langues : [English](readme.md)
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
- [Général](FAQfr.md)
|
- [Général](FAQfr.md)
|
||||||
|
|||||||
@@ -24,8 +24,8 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
const extConfig = {
|
const extConfig = {
|
||||||
// BEGIN USER OPTIONS
|
// BEGIN USER OPTIONS
|
||||||
// You may change the following variables to allowed values listed in the corresponding brackets (* means default). Keep the style and keywords intact.
|
// You may change the following variables to allowed values listed in the corresponding brackets (* means default). Keep the style and keywords intact.
|
||||||
showUpdatePopup: false, // [true, false*] Show a popup tab after extension update (See what's new)
|
showUpdatePopup: false, // [true, false*] Show a popup tab after extension update (See what's new)
|
||||||
disableVoteSubmission: false, // [true, false*] Disable like/dislike submission (Stops counting your likes and dislikes)
|
disableVoteSubmission: false, // [true, false*] Disable like/dislike submission (Stops counting your likes and dislikes)
|
||||||
coloredThumbs: false, // [true, false*] Colorize thumbs (Use custom colors for thumb icons)
|
coloredThumbs: false, // [true, false*] Colorize thumbs (Use custom colors for thumb icons)
|
||||||
@@ -35,7 +35,7 @@ const extConfig = {
|
|||||||
numberDisplayRoundDown: true, // [true*, false] Round down numbers (Show rounded down numbers)
|
numberDisplayRoundDown: true, // [true*, false] Round down numbers (Show rounded down numbers)
|
||||||
tooltipPercentageMode: "none", // [none*, dash_like, dash_dislike, both, only_like, only_dislike] Mode of showing percentage in like/dislike bar tooltip.
|
tooltipPercentageMode: "none", // [none*, dash_like, dash_dislike, both, only_like, only_dislike] Mode of showing percentage in like/dislike bar tooltip.
|
||||||
numberDisplayReformatLikes: false, // [true, false*] Re-format like numbers (Make likes and dislikes format consistent)
|
numberDisplayReformatLikes: false, // [true, false*] Re-format like numbers (Make likes and dislikes format consistent)
|
||||||
// END USER OPTIONS
|
// END USER OPTIONS
|
||||||
};
|
};
|
||||||
|
|
||||||
const LIKED_STATE = "LIKED_STATE";
|
const LIKED_STATE = "LIKED_STATE";
|
||||||
@@ -101,29 +101,37 @@ function getDislikeButton() {
|
|||||||
let mutationObserver = new Object();
|
let mutationObserver = new Object();
|
||||||
|
|
||||||
if (isShorts() && mutationObserver.exists !== true) {
|
if (isShorts() && mutationObserver.exists !== true) {
|
||||||
cLog('initializing mutation observer')
|
cLog("initializing mutation observer");
|
||||||
mutationObserver.options = {
|
mutationObserver.options = {
|
||||||
childList: false,
|
childList: false,
|
||||||
attributes: true,
|
attributes: true,
|
||||||
subtree: false
|
subtree: false,
|
||||||
};
|
};
|
||||||
mutationObserver.exists = true;
|
mutationObserver.exists = true;
|
||||||
mutationObserver.observer = new MutationObserver( function(mutationList, observer) {
|
mutationObserver.observer = new MutationObserver(function (
|
||||||
mutationList.forEach( (mutation) => {
|
mutationList,
|
||||||
if (mutation.type === 'attributes' &&
|
observer
|
||||||
mutation.target.nodeName === 'TP-YT-PAPER-BUTTON' &&
|
) {
|
||||||
mutation.target.id === 'button') {
|
mutationList.forEach((mutation) => {
|
||||||
cLog('Short thumb button status changed');
|
if (
|
||||||
if (mutation.target.getAttribute('aria-pressed') === 'true') {
|
mutation.type === "attributes" &&
|
||||||
|
mutation.target.nodeName === "TP-YT-PAPER-BUTTON" &&
|
||||||
|
mutation.target.id === "button"
|
||||||
|
) {
|
||||||
|
cLog("Short thumb button status changed");
|
||||||
|
if (mutation.target.getAttribute("aria-pressed") === "true") {
|
||||||
mutation.target.style.color =
|
mutation.target.style.color =
|
||||||
(mutation.target.parentElement.parentElement.id === 'like-button') ?
|
mutation.target.parentElement.parentElement.id === "like-button"
|
||||||
getColorFromTheme(true) : getColorFromTheme(false);
|
? getColorFromTheme(true)
|
||||||
|
: getColorFromTheme(false);
|
||||||
} else {
|
} else {
|
||||||
mutation.target.style.color = 'unset';
|
mutation.target.style.color = "unset";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cLog('unexpected mutation observer event: ' + mutation.target + mutation.type);
|
cLog(
|
||||||
|
"unexpected mutation observer event: " + mutation.target + mutation.type
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -270,25 +278,24 @@ function createRateBar(likes, dislikes) {
|
|||||||
var tooltipInnerHTML;
|
var tooltipInnerHTML;
|
||||||
switch (extConfig.tooltipPercentageMode) {
|
switch (extConfig.tooltipPercentageMode) {
|
||||||
case "dash_like":
|
case "dash_like":
|
||||||
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${likePercentage}%`
|
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${likePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "dash_dislike":
|
case "dash_dislike":
|
||||||
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${dislikePercentage}%`
|
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${dislikePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "both":
|
case "both":
|
||||||
tooltipInnerHTML = `${likePercentage}% / ${dislikePercentage}%`
|
tooltipInnerHTML = `${likePercentage}% / ${dislikePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "only_like":
|
case "only_like":
|
||||||
tooltipInnerHTML = `${likePercentage}%`
|
tooltipInnerHTML = `${likePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "only_dislike":
|
case "only_dislike":
|
||||||
tooltipInnerHTML = `${dislikePercentage}%`
|
tooltipInnerHTML = `${dislikePercentage}%`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`
|
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!rateBar && !isMobile) {
|
if (!rateBar && !isMobile) {
|
||||||
let colorLikeStyle = "";
|
let colorLikeStyle = "";
|
||||||
let colorDislikeStyle = "";
|
let colorDislikeStyle = "";
|
||||||
@@ -325,15 +332,16 @@ function createRateBar(likes, dislikes) {
|
|||||||
document.getElementById("return-youtube-dislike-bar").style.width =
|
document.getElementById("return-youtube-dislike-bar").style.width =
|
||||||
widthPercent + "%";
|
widthPercent + "%";
|
||||||
|
|
||||||
document.querySelector(
|
document.querySelector("#ryd-dislike-tooltip > #tooltip").innerHTML =
|
||||||
"#ryd-dislike-tooltip > #tooltip"
|
tooltipInnerHTML;
|
||||||
).innerHTML = tooltipInnerHTML;
|
|
||||||
|
|
||||||
if (extConfig.coloredBar) {
|
if (extConfig.coloredBar) {
|
||||||
document.getElementById("return-youtube-dislike-bar-container").style.backgroundColor =
|
document.getElementById(
|
||||||
getColorFromTheme(false);
|
"return-youtube-dislike-bar-container"
|
||||||
document.getElementById("return-youtube-dislike-bar").style.backgroundColor =
|
).style.backgroundColor = getColorFromTheme(false);
|
||||||
getColorFromTheme(true);
|
document.getElementById(
|
||||||
|
"return-youtube-dislike-bar"
|
||||||
|
).style.backgroundColor = getColorFromTheme(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -360,17 +368,28 @@ function setState() {
|
|||||||
}
|
}
|
||||||
createRateBar(likes, dislikes);
|
createRateBar(likes, dislikes);
|
||||||
if (extConfig.coloredThumbs === true) {
|
if (extConfig.coloredThumbs === true) {
|
||||||
if (isShorts()) { // for shorts, leave deactived buttons in default color
|
if (isShorts()) {
|
||||||
let shortLikeButton = getLikeButton().querySelector('tp-yt-paper-button#button');
|
// for shorts, leave deactived buttons in default color
|
||||||
let shortDislikeButton = getDislikeButton().querySelector('tp-yt-paper-button#button');
|
let shortLikeButton = getLikeButton().querySelector(
|
||||||
if (shortLikeButton.getAttribute('aria-pressed') === 'true') {
|
"tp-yt-paper-button#button"
|
||||||
|
);
|
||||||
|
let shortDislikeButton = getDislikeButton().querySelector(
|
||||||
|
"tp-yt-paper-button#button"
|
||||||
|
);
|
||||||
|
if (shortLikeButton.getAttribute("aria-pressed") === "true") {
|
||||||
shortLikeButton.style.color = getColorFromTheme(true);
|
shortLikeButton.style.color = getColorFromTheme(true);
|
||||||
}
|
}
|
||||||
if (shortDislikeButton.getAttribute('aria-pressed') === 'true') {
|
if (shortDislikeButton.getAttribute("aria-pressed") === "true") {
|
||||||
shortDislikeButton.style.color = getColorFromTheme(false);
|
shortDislikeButton.style.color = getColorFromTheme(false);
|
||||||
}
|
}
|
||||||
mutationObserver.observer.observe(shortLikeButton, mutationObserver.options);
|
mutationObserver.observer.observe(
|
||||||
mutationObserver.observer.observe(shortDislikeButton, mutationObserver.options);
|
shortLikeButton,
|
||||||
|
mutationObserver.options
|
||||||
|
);
|
||||||
|
mutationObserver.observer.observe(
|
||||||
|
shortDislikeButton,
|
||||||
|
mutationObserver.options
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
getLikeButton().style.color = getColorFromTheme(true);
|
getLikeButton().style.color = getColorFromTheme(true);
|
||||||
getDislikeButton().style.color = getColorFromTheme(false);
|
getDislikeButton().style.color = getColorFromTheme(false);
|
||||||
@@ -498,8 +517,10 @@ function getNumberFormatter(optionSelect) {
|
|||||||
?.getAttribute("href")
|
?.getAttribute("href")
|
||||||
)?.searchParams?.get("locale");
|
)?.searchParams?.get("locale");
|
||||||
} catch {
|
} catch {
|
||||||
cLog('Cannot find browser locale. Use en as default for number formatting.');
|
cLog(
|
||||||
userLocales = 'en';
|
"Cannot find browser locale. Use en as default for number formatting."
|
||||||
|
);
|
||||||
|
userLocales = "en";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -520,13 +541,10 @@ function getNumberFormatter(optionSelect) {
|
|||||||
formatterCompactDisplay = "short";
|
formatterCompactDisplay = "short";
|
||||||
}
|
}
|
||||||
|
|
||||||
const formatter = Intl.NumberFormat(
|
const formatter = Intl.NumberFormat(userLocales, {
|
||||||
userLocales,
|
notation: formatterNotation,
|
||||||
{
|
compactDisplay: formatterCompactDisplay,
|
||||||
notation: formatterNotation,
|
});
|
||||||
compactDisplay: formatterCompactDisplay,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
return formatter;
|
return formatter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
"message": "Colores personalizados para la barra y los botones que no me gustan"
|
"message": "Colores personalizados para la barra y los botones que no me gustan"
|
||||||
},
|
},
|
||||||
"customNumberFormats": {
|
"customNumberFormats": {
|
||||||
"message":"Formatos de números personalizados"
|
"message": "Formatos de números personalizados"
|
||||||
},
|
},
|
||||||
"considerDonating": {
|
"considerDonating": {
|
||||||
"message": "Lo único que mantiene la extensión en funcionamiento son sus donaciones, considere apoyar el proyecto."
|
"message": "Lo único que mantiene la extensión en funcionamiento son sus donaciones, considere apoyar el proyecto."
|
||||||
|
|||||||
@@ -59,34 +59,34 @@
|
|||||||
"considerDonating": {
|
"considerDonating": {
|
||||||
"message": "この拡張機能を存続させることができるのは,皆様からの寄付だけです。"
|
"message": "この拡張機能を存続させることができるのは,皆様からの寄付だけです。"
|
||||||
},
|
},
|
||||||
"roundNumbers":{
|
"roundNumbers": {
|
||||||
"message":"四捨五入された数値を表示"
|
"message": "四捨五入された数値を表示"
|
||||||
},
|
},
|
||||||
"roundNumbersHover":{
|
"roundNumbersHover": {
|
||||||
"message": "カウント値を四捨五入します(これはYouTubeのデフォルトオプションです)。"
|
"message": "カウント値を四捨五入します(これはYouTubeのデフォルトオプションです)。"
|
||||||
},
|
},
|
||||||
"reformatLikes":{
|
"reformatLikes": {
|
||||||
"message":"いいねの数をフォーマットする"
|
"message": "いいねの数をフォーマットする"
|
||||||
},
|
},
|
||||||
"reformatLikesHover":{
|
"reformatLikesHover": {
|
||||||
"message":"統計値の一貫性を高めます。"
|
"message": "統計値の一貫性を高めます。"
|
||||||
},
|
},
|
||||||
"numberFormat":{
|
"numberFormat": {
|
||||||
"message":"数値形式"
|
"message": "数値形式"
|
||||||
},
|
},
|
||||||
"colorizeRatio":{
|
"colorizeRatio": {
|
||||||
"message":"嫌いなバーに色を付ける"
|
"message": "嫌いなバーに色を付ける"
|
||||||
},
|
},
|
||||||
"colorizeRatioHover":{
|
"colorizeRatioHover": {
|
||||||
"message":"嫌いなバーをカスタムカラーで色付けします。"
|
"message": "嫌いなバーをカスタムカラーで色付けします。"
|
||||||
},
|
},
|
||||||
"colorizeThumbs":{
|
"colorizeThumbs": {
|
||||||
"message":"ボタンに色を付ける"
|
"message": "ボタンに色を付ける"
|
||||||
},
|
},
|
||||||
"colorizeThumbsHover":{
|
"colorizeThumbsHover": {
|
||||||
"message":"カスタムカラーのボタンの色が好きで嫌いです。"
|
"message": "カスタムカラーのボタンの色が好きで嫌いです。"
|
||||||
},
|
},
|
||||||
"colorTheme":{
|
"colorTheme": {
|
||||||
"message": "配色:"
|
"message": "配色:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12,9 +12,7 @@
|
|||||||
"128": "icons/icon128.png"
|
"128": "icons/icon128.png"
|
||||||
},
|
},
|
||||||
"host_permissions": ["*://*.youtube.com/*"],
|
"host_permissions": ["*://*.youtube.com/*"],
|
||||||
"permissions": [
|
"permissions": ["storage"],
|
||||||
"storage"
|
|
||||||
],
|
|
||||||
"action": {
|
"action": {
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -69,8 +69,8 @@ button:hover {
|
|||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.switch::before,
|
||||||
.switch::before, .label-with-hover-tip::before {
|
.label-with-hover-tip::before {
|
||||||
content: attr(data-hover);
|
content: attr(data-hover);
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -86,27 +86,27 @@ button:hover {
|
|||||||
top: 160%;
|
top: 160%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.switch:hover::before,
|
||||||
.switch:hover::before, .label-with-hover-tip:hover::before {
|
.label-with-hover-tip:hover::before {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-in {
|
.fade-in {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
animation-name: fadeInOpacity;
|
animation-name: fadeInOpacity;
|
||||||
animation-iteration-count: 1;
|
animation-iteration-count: 1;
|
||||||
animation-timing-function: ease-in;
|
animation-timing-function: ease-in;
|
||||||
animation-duration: 2s;
|
animation-duration: 2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fadeInOpacity {
|
@keyframes fadeInOpacity {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#advancedToggle {
|
#advancedToggle {
|
||||||
|
|||||||
+204
-165
@@ -1,184 +1,223 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta content="text/html; charset=utf-8"/>
|
<meta content="text/html; charset=utf-8" />
|
||||||
<title title="__MSG_extensionName__">__MSG_extensionName__</title>
|
<title title="__MSG_extensionName__">__MSG_extensionName__</title>
|
||||||
<link rel="stylesheet" href="popup.css"/>
|
<link rel="stylesheet" href="popup.css" />
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com"/>
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
<svg width="48" viewBox="0 0 24 24">
|
<svg width="48" viewBox="0 0 24 24">
|
||||||
<path
|
<path
|
||||||
d="M14.9 3H6c-.9 0-1.6.5-1.9 1.2l-3 7c-.1.3-.1.5-.1.7v2c0 1.1.9 2 2 2h6.3l-.9 4.5c-.1.5 0 1 .4 1.4l1.1 1.1 6.5-6.6c.4-.4.6-.9.6-1.4V5c-.1-1.1-1-2-2.1-2zm7.4 12.8h-2.9c-.4 0-.7-.3-.7-.7V3.9c0-.4.3-.7.7-.7h2.9c.4 0 .7.3.7.7V15c0 .4-.3.8-.7.8z"
|
d="M14.9 3H6c-.9 0-1.6.5-1.9 1.2l-3 7c-.1.3-.1.5-.1.7v2c0 1.1.9 2 2 2h6.3l-.9 4.5c-.1.5 0 1 .4 1.4l1.1 1.1 6.5-6.6c.4-.4.6-.9.6-1.4V5c-.1-1.1-1-2-2.1-2zm7.4 12.8h-2.9c-.4 0-.7-.3-.7-.7V3.9c0-.4.3-.7.7-.7h2.9c.4 0 .7.3.7.7V15c0 .4-.3.8-.7.8z"
|
||||||
fill="red"
|
fill="red"
|
||||||
|
/>
|
||||||
|
<path d="m8 12.5 5.1-2.9L8 6.7v5.8z" fill="#fff" />
|
||||||
|
</svg>
|
||||||
|
<h1 style="margin-bottom: 0.75rem" title="__MSG_extensionName__">
|
||||||
|
__MSG_extensionName__
|
||||||
|
</h1>
|
||||||
|
<p style="color: var(--lightGrey)" title="__MSG_textDeveloper__">
|
||||||
|
__MSG_textDeveloper__
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<button id="link_website" title="__MSG_linkWebsite__">
|
||||||
|
__MSG_linkWebsite__
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
style="margin-top: 0.3em; background: #ff0000"
|
||||||
|
id="link_donate"
|
||||||
|
title="__MSG_linkDonate__"
|
||||||
|
>
|
||||||
|
__MSG_linkDonate__
|
||||||
|
</button>
|
||||||
|
<button id="link_discord">Discord</button>
|
||||||
|
<br />
|
||||||
|
<button style="margin-top: 0.3rem" id="link_faq" title="__MSG_linkFAQ__">
|
||||||
|
__MSG_linkFAQ__
|
||||||
|
</button>
|
||||||
|
<button id="link_github">GitHub</button>
|
||||||
|
<button style="margin-top: 0.3em" id="link_help" title="__MSG_linkHelp__">
|
||||||
|
__MSG_linkHelp__
|
||||||
|
</button>
|
||||||
|
<br />
|
||||||
|
<button
|
||||||
|
style="margin-top: 0.3em"
|
||||||
|
id="link_changelog"
|
||||||
|
title="__MSG_linkChangelog__"
|
||||||
|
>
|
||||||
|
__MSG_linkChangelog__
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<p style="display: none">API Status: <b id="status"></b></p>
|
||||||
|
<img
|
||||||
|
id="server-status"
|
||||||
|
style="display: none; width: 0.75rem; height: 0.75rem"
|
||||||
|
src="./icons/server.svg"
|
||||||
|
alt=""
|
||||||
/>
|
/>
|
||||||
<path d="m8 12.5 5.1-2.9L8 6.7v5.8z" fill="#fff"/>
|
|
||||||
</svg>
|
|
||||||
<h1 style="margin-bottom: 0.75rem" title="__MSG_extensionName__">
|
|
||||||
__MSG_extensionName__
|
|
||||||
</h1>
|
|
||||||
<p style="color: var(--lightGrey)" title="__MSG_textDeveloper__">
|
|
||||||
__MSG_textDeveloper__
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<button id="link_website" title="__MSG_linkWebsite__">
|
<br />
|
||||||
__MSG_linkWebsite__
|
<br />
|
||||||
</button>
|
</center>
|
||||||
<button style="margin-top: 0.3em; background: #ff0000" id="link_donate" title="__MSG_linkDonate__">
|
|
||||||
__MSG_linkDonate__
|
<!-- top-right -->
|
||||||
</button>
|
<button id="advancedToggle">
|
||||||
<button id="link_discord">Discord</button>
|
<svg
|
||||||
<br/>
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
<button style="margin-top: 0.3rem" id="link_faq" title="__MSG_linkFAQ__">
|
enable-background="new 0 0 24 24"
|
||||||
__MSG_linkFAQ__
|
height="24px"
|
||||||
</button>
|
viewBox="0 0 24 24"
|
||||||
<button id="link_github">GitHub</button>
|
width="24px"
|
||||||
<button style="margin-top: 0.3em" id="link_help" title="__MSG_linkHelp__">
|
fill="currentColor"
|
||||||
__MSG_linkHelp__
|
>
|
||||||
</button>
|
<rect fill="none" height="24" width="24" />
|
||||||
<br>
|
<path
|
||||||
<button style="margin-top: 0.3em" id="link_changelog" title="__MSG_linkChangelog__">
|
d="M19.5,12c0-0.23-0.01-0.45-0.03-0.68l1.86-1.41c0.4-0.3,0.51-0.86,0.26-1.3l-1.87-3.23c-0.25-0.44-0.79-0.62-1.25-0.42 l-2.15,0.91c-0.37-0.26-0.76-0.49-1.17-0.68l-0.29-2.31C14.8,2.38,14.37,2,13.87,2h-3.73C9.63,2,9.2,2.38,9.14,2.88L8.85,5.19 c-0.41,0.19-0.8,0.42-1.17,0.68L5.53,4.96c-0.46-0.2-1-0.02-1.25,0.42L2.41,8.62c-0.25,0.44-0.14,0.99,0.26,1.3l1.86,1.41 C4.51,11.55,4.5,11.77,4.5,12s0.01,0.45,0.03,0.68l-1.86,1.41c-0.4,0.3-0.51,0.86-0.26,1.3l1.87,3.23c0.25,0.44,0.79,0.62,1.25,0.42 l2.15-0.91c0.37,0.26,0.76,0.49,1.17,0.68l0.29,2.31C9.2,21.62,9.63,22,10.13,22h3.73c0.5,0,0.93-0.38,0.99-0.88l0.29-2.31 c0.41-0.19,0.8-0.42,1.17-0.68l2.15,0.91c0.46,0.2,1,0.02,1.25-0.42l1.87-3.23c0.25-0.44,0.14-0.99-0.26-1.3l-1.86-1.41 C19.49,12.45,19.5,12.23,19.5,12z M12.04,15.5c-1.93,0-3.5-1.57-3.5-3.5s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.97,15.5,12.04,15.5z"
|
||||||
__MSG_linkChangelog__
|
/>
|
||||||
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<br/>
|
<!-- bottom-right -->
|
||||||
<br/>
|
<div id="ext">
|
||||||
<p style="display: none">API Status: <b id="status"></b></p>
|
<a
|
||||||
<img
|
href="https://returnyoutubedislike.com/install"
|
||||||
id="server-status"
|
target="_blank"
|
||||||
style="display: none; width: 0.75rem; height: 0.75rem"
|
id="ext-update"
|
||||||
src="./icons/server.svg"
|
></a>
|
||||||
alt=""
|
<span id="ext-version"></span>
|
||||||
/>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<!-- dialog box -->
|
||||||
<br/>
|
<fieldset id="advancedSettings">
|
||||||
</center>
|
<legend id="advancedLegend" title="__MSG_legendSettings__">
|
||||||
|
__MSG_legendSettings__
|
||||||
|
</legend>
|
||||||
|
|
||||||
<!-- top-right -->
|
<label class="switch" data-hover="Stop counting your likes and dislikes">
|
||||||
<button id="advancedToggle">
|
<input type="checkbox" id="disable_vote_submission" />
|
||||||
<svg
|
<span class="slider" />
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
<span class="switchLabel" title="__MSG_textSettings__">
|
||||||
enable-background="new 0 0 24 24"
|
__MSG_textSettings__
|
||||||
height="24px"
|
</span>
|
||||||
viewBox="0 0 24 24"
|
</label>
|
||||||
width="24px"
|
<br />
|
||||||
fill="currentColor"
|
<label class="switch" data-hover="__MSG_roundNumbersHover__">
|
||||||
>
|
<input type="checkbox" id="number_round_down" />
|
||||||
<rect fill="none" height="24" width="24"/>
|
<span class="slider" />
|
||||||
<path
|
<span class="switchLabel">__MSG_roundNumbers__</span>
|
||||||
d="M19.5,12c0-0.23-0.01-0.45-0.03-0.68l1.86-1.41c0.4-0.3,0.51-0.86,0.26-1.3l-1.87-3.23c-0.25-0.44-0.79-0.62-1.25-0.42 l-2.15,0.91c-0.37-0.26-0.76-0.49-1.17-0.68l-0.29-2.31C14.8,2.38,14.37,2,13.87,2h-3.73C9.63,2,9.2,2.38,9.14,2.88L8.85,5.19 c-0.41,0.19-0.8,0.42-1.17,0.68L5.53,4.96c-0.46-0.2-1-0.02-1.25,0.42L2.41,8.62c-0.25,0.44-0.14,0.99,0.26,1.3l1.86,1.41 C4.51,11.55,4.5,11.77,4.5,12s0.01,0.45,0.03,0.68l-1.86,1.41c-0.4,0.3-0.51,0.86-0.26,1.3l1.87,3.23c0.25,0.44,0.79,0.62,1.25,0.42 l2.15-0.91c0.37,0.26,0.76,0.49,1.17,0.68l0.29,2.31C9.2,21.62,9.63,22,10.13,22h3.73c0.5,0,0.93-0.38,0.99-0.88l0.29-2.31 c0.41-0.19,0.8-0.42,1.17-0.68l2.15,0.91c0.46,0.2,1,0.02,1.25-0.42l1.87-3.23c0.25-0.44,0.14-0.99-0.26-1.3l-1.86-1.41 C19.49,12.45,19.5,12.23,19.5,12z M12.04,15.5c-1.93,0-3.5-1.57-3.5-3.5s1.57-3.5,3.5-3.5s3.5,1.57,3.5,3.5S13.97,15.5,12.04,15.5z"
|
</label>
|
||||||
/>
|
<br />
|
||||||
</svg>
|
<label class="switch" data-hover="__MSG_reformatLikesHover__">
|
||||||
</button>
|
<input type="checkbox" id="number_reformat_likes" />
|
||||||
|
<span class="slider" />
|
||||||
<!-- bottom-right -->
|
<span class="switchLabel">__MSG_reformatLikes__</span>
|
||||||
<div id="ext">
|
</label>
|
||||||
<a
|
<br />
|
||||||
href="https://returnyoutubedislike.com/install"
|
<div class="custom-select">
|
||||||
target="_blank"
|
<label for="number_format">__MSG_numberFormat__</label>
|
||||||
id="ext-update"
|
<select name="number_format" id="number_format">
|
||||||
></a>
|
<option value="compactShort" id="number_format_compactShort"></option>
|
||||||
<span id="ext-version"></span>
|
<option value="compactLong" id="number_format_compactLong"></option>
|
||||||
</div>
|
<option value="standard" id="number_format_standard"></option>
|
||||||
|
</select>
|
||||||
<!-- dialog box -->
|
</div>
|
||||||
<fieldset id="advancedSettings">
|
<br />
|
||||||
<legend id="advancedLegend" title="__MSG_legendSettings__">
|
<div class="custom-select">
|
||||||
__MSG_legendSettings__
|
<label class="switch" data-hover="__MSG_colorizeRatioHover__">
|
||||||
</legend>
|
<input type="checkbox" id="colored_bar" />
|
||||||
|
<span class="slider" />
|
||||||
<label class="switch" data-hover="Stop counting your likes and dislikes">
|
<span class="switchLabel">__MSG_colorizeRatio__</span>
|
||||||
<input type="checkbox" id="disable_vote_submission"/>
|
</label>
|
||||||
<span class="slider" />
|
</div>
|
||||||
<span class="switchLabel" title="__MSG_textSettings__">
|
<label class="switch" data-hover="__MSG_colorizeThumbsHover__">
|
||||||
__MSG_textSettings__
|
<input type="checkbox" id="colored_thumbs" />
|
||||||
</span>
|
<span class="slider" />
|
||||||
</label>
|
<span class="switchLabel">__MSG_colorizeThumbs__</span>
|
||||||
<br/>
|
</label>
|
||||||
<label class="switch" data-hover="__MSG_roundNumbersHover__">
|
<br />
|
||||||
<input type="checkbox" id="number_round_down"/>
|
<div class="custom-select">
|
||||||
<span class="slider" />
|
<label for="color_theme">__MSG_colorTheme__</label>
|
||||||
<span class="switchLabel">__MSG_roundNumbers__</span>
|
<select name="color_theme" id="color_theme">
|
||||||
</label>
|
<option value="classic" id="color_theme_classic">
|
||||||
<br/>
|
"__MSG_textColorTheme1__"
|
||||||
<label class="switch" data-hover="__MSG_reformatLikesHover__">
|
</option>
|
||||||
<input type="checkbox" id="number_reformat_likes"/>
|
<option value="accessible" id="color_theme_accessible">
|
||||||
<span class="slider" />
|
"__MSG_textColorTheme2__"
|
||||||
<span class="switchLabel">__MSG_reformatLikes__</span>
|
</option>
|
||||||
</label>
|
<option value="neon" id="color_theme_neon">
|
||||||
<br/>
|
"__MSG_textColorTheme3__"
|
||||||
<div class="custom-select">
|
</option>
|
||||||
<label for="number_format">__MSG_numberFormat__</label>
|
</select>
|
||||||
<select name="number_format" id="number_format">
|
<span
|
||||||
<option value="compactShort" id="number_format_compactShort"></option>
|
id="color_theme_example_like"
|
||||||
<option value="compactLong" id="number_format_compactLong"></option>
|
style="
|
||||||
<option value="standard" id="number_format_standard"></option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<br/>
|
|
||||||
<div class="custom-select">
|
|
||||||
<label class="switch" data-hover="__MSG_colorizeRatioHover__">
|
|
||||||
<input type="checkbox" id="colored_bar"/>
|
|
||||||
<span class="slider" />
|
|
||||||
<span class="switchLabel">__MSG_colorizeRatio__</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<label class="switch" data-hover="__MSG_colorizeThumbsHover__">
|
|
||||||
<input type="checkbox" id="colored_thumbs"/>
|
|
||||||
<span class="slider" />
|
|
||||||
<span class="switchLabel">__MSG_colorizeThumbs__</span>
|
|
||||||
</label>
|
|
||||||
<br/>
|
|
||||||
<div class="custom-select">
|
|
||||||
<label for="color_theme">__MSG_colorTheme__</label>
|
|
||||||
<select name="color_theme" id="color_theme">
|
|
||||||
<option value="classic" id="color_theme_classic">"__MSG_textColorTheme1__"</option>
|
|
||||||
<option value="accessible" id="color_theme_accessible">"__MSG_textColorTheme2__"</option>
|
|
||||||
<option value="neon" id="color_theme_neon">"__MSG_textColorTheme3__"</option>
|
|
||||||
</select>
|
|
||||||
<span
|
|
||||||
id="color_theme_example_like"
|
|
||||||
style="
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
"
|
"
|
||||||
> </span>
|
> </span
|
||||||
<span
|
>
|
||||||
id="color_theme_example_dislike"
|
<span
|
||||||
style="
|
id="color_theme_example_dislike"
|
||||||
|
style="
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
height: 1em;
|
height: 1em;
|
||||||
"
|
"
|
||||||
> </span>
|
> </span
|
||||||
</div>
|
>
|
||||||
<br/>
|
</div>
|
||||||
<label class="switch" data-hover="Display percentage in like/dislike bar tooltip.">
|
<br />
|
||||||
<input type="checkbox" id="show_tooltip_percentage"/>
|
<label
|
||||||
<span class="slider"/>
|
class="switch"
|
||||||
<span class="switchLabel">Percentage in like/dislike bar tooltip.</span>
|
data-hover="Display percentage in like/dislike bar tooltip."
|
||||||
</label>
|
>
|
||||||
<div class="custom-select">
|
<input type="checkbox" id="show_tooltip_percentage" />
|
||||||
<label for="tooltip_percentage_mode" data-hover="Use custom percentage display on hover.">Percent mode:</label>
|
<span class="slider" />
|
||||||
<select name="tooltip_percentage_mode" id="tooltip_percentage_mode">
|
<span class="switchLabel">Percentage in like/dislike bar tooltip.</span>
|
||||||
<option value="dash_like" id="tooltip_percentage_mode_dash_like">190 / 10 - 95%</option>
|
</label>
|
||||||
<option value="dash_dislike" id="tooltip_percentage_mode_dash_dislike">190 / 10 - 5%</option>
|
<div class="custom-select">
|
||||||
<option value="both" id="tooltip_percentage_mode_both">95% / 5%</option>
|
<label
|
||||||
<option value="only_like" id="tooltip_percentage_mode_only_like">95%</option>
|
for="tooltip_percentage_mode"
|
||||||
<option value="only_dislike" id="tooltip_percentage_mode_only_dislike">5%</option>
|
data-hover="Use custom percentage display on hover."
|
||||||
</select>
|
>Percent mode:</label
|
||||||
</div>
|
>
|
||||||
</fieldset>
|
<select name="tooltip_percentage_mode" id="tooltip_percentage_mode">
|
||||||
</body>
|
<option value="dash_like" id="tooltip_percentage_mode_dash_like">
|
||||||
<script src="popup.js"></script>
|
190 / 10 - 95%
|
||||||
|
</option>
|
||||||
|
<option
|
||||||
|
value="dash_dislike"
|
||||||
|
id="tooltip_percentage_mode_dash_dislike"
|
||||||
|
>
|
||||||
|
190 / 10 - 5%
|
||||||
|
</option>
|
||||||
|
<option value="both" id="tooltip_percentage_mode_both">
|
||||||
|
95% / 5%
|
||||||
|
</option>
|
||||||
|
<option value="only_like" id="tooltip_percentage_mode_only_like">
|
||||||
|
95%
|
||||||
|
</option>
|
||||||
|
<option
|
||||||
|
value="only_dislike"
|
||||||
|
id="tooltip_percentage_mode_only_dislike"
|
||||||
|
>
|
||||||
|
5%
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</body>
|
||||||
|
<script src="popup.js"></script>
|
||||||
</html>
|
</html>
|
||||||
@@ -24,7 +24,7 @@ const config = {
|
|||||||
donate: "https://returnyoutubedislike.com/donate",
|
donate: "https://returnyoutubedislike.com/donate",
|
||||||
faq: "https://returnyoutubedislike.com/faq",
|
faq: "https://returnyoutubedislike.com/faq",
|
||||||
help: "https://returnyoutubedislike.com/help",
|
help: "https://returnyoutubedislike.com/help",
|
||||||
changelog: "/changelog/3/changelog_3.0.html"
|
changelog: "/changelog/3/changelog_3.0.html",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -90,17 +90,23 @@ document.getElementById("number_format").addEventListener("change", (ev) => {
|
|||||||
chrome.storage.sync.set({ numberDisplayFormat: ev.target.value });
|
chrome.storage.sync.set({ numberDisplayFormat: ev.target.value });
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById("show_tooltip_percentage").addEventListener("click", (ev) => {
|
document
|
||||||
chrome.storage.sync.set({ showTooltipPercentage: ev.target.checked });
|
.getElementById("show_tooltip_percentage")
|
||||||
});
|
.addEventListener("click", (ev) => {
|
||||||
|
chrome.storage.sync.set({ showTooltipPercentage: ev.target.checked });
|
||||||
|
});
|
||||||
|
|
||||||
document.getElementById("tooltip_percentage_mode").addEventListener("change", (ev) => {
|
document
|
||||||
chrome.storage.sync.set({ tooltipPercentageMode: ev.target.value });
|
.getElementById("tooltip_percentage_mode")
|
||||||
});
|
.addEventListener("change", (ev) => {
|
||||||
|
chrome.storage.sync.set({ tooltipPercentageMode: ev.target.value });
|
||||||
|
});
|
||||||
|
|
||||||
document.getElementById("number_reformat_likes").addEventListener("click", (ev) => {
|
document
|
||||||
chrome.storage.sync.set({ numberDisplayReformatLikes: ev.target.checked });
|
.getElementById("number_reformat_likes")
|
||||||
});
|
.addEventListener("click", (ev) => {
|
||||||
|
chrome.storage.sync.set({ numberDisplayReformatLikes: ev.target.checked });
|
||||||
|
});
|
||||||
|
|
||||||
/* Advanced Toggle */
|
/* Advanced Toggle */
|
||||||
const advancedToggle = document.getElementById("advancedToggle");
|
const advancedToggle = document.getElementById("advancedToggle");
|
||||||
@@ -146,7 +152,7 @@ function initializeVersionNumber() {
|
|||||||
.then((json) => {
|
.then((json) => {
|
||||||
if (compareVersions(json.version, version)) {
|
if (compareVersions(json.version, version)) {
|
||||||
document.getElementById("ext-update").innerHTML =
|
document.getElementById("ext-update").innerHTML =
|
||||||
chrome.i18n.getMessage("textUpdate") + " v" + json.version;
|
chrome.i18n.getMessage("textUpdate") + " v" + json.version;
|
||||||
document.getElementById("ext-update").style.padding = ".25rem .5rem";
|
document.getElementById("ext-update").style.padding = ".25rem .5rem";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -203,17 +209,17 @@ function initializeNumberDisplayRoundDown() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function initializeTooltipPercentage(){
|
function initializeTooltipPercentage() {
|
||||||
chrome.storage.sync.get(["showTooltipPercentage"], (res) => {
|
chrome.storage.sync.get(["showTooltipPercentage"], (res) => {
|
||||||
handleShowTooltipPercentageChangeEvent(res.showTooltipPercentage);
|
handleShowTooltipPercentageChangeEvent(res.showTooltipPercentage);
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
function initializeTooltipPercentageMode() {
|
function initializeTooltipPercentageMode() {
|
||||||
chrome.storage.sync.get(["tooltipPercentageMode"], (res) => {
|
chrome.storage.sync.get(["tooltipPercentageMode"], (res) => {
|
||||||
handleTooltipPercentageModeChangeEvent(res.tooltipPercentageMode);
|
handleTooltipPercentageModeChangeEvent(res.tooltipPercentageMode);
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
function initializeNumberDisplayFormat() {
|
function initializeNumberDisplayFormat() {
|
||||||
chrome.storage.sync.get(["numberDisplayFormat"], (res) => {
|
chrome.storage.sync.get(["numberDisplayFormat"], (res) => {
|
||||||
@@ -269,10 +275,14 @@ function storageChangeHandler(changes, area) {
|
|||||||
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
|
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
|
||||||
}
|
}
|
||||||
if (changes.showTooltipPercentage !== undefined) {
|
if (changes.showTooltipPercentage !== undefined) {
|
||||||
handleShowTooltipPercentageChangeEvent(changes.showTooltipPercentage.newValue);
|
handleShowTooltipPercentageChangeEvent(
|
||||||
|
changes.showTooltipPercentage.newValue
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (changes.numberDisplayReformatLikes !== undefined) {
|
if (changes.numberDisplayReformatLikes !== undefined) {
|
||||||
handleNumberDisplayReformatLikesChangeEvent(changes.numberDisplayReformatLikes.newValue);
|
handleNumberDisplayReformatLikesChangeEvent(
|
||||||
|
changes.numberDisplayReformatLikes.newValue
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,7 +334,7 @@ function handleNumberDisplayFormatChangeEvent(value) {
|
|||||||
function handleShowTooltipPercentageChangeEvent(value) {
|
function handleShowTooltipPercentageChangeEvent(value) {
|
||||||
config.showTooltipPercentage = value;
|
config.showTooltipPercentage = value;
|
||||||
document.getElementById("show_tooltip_percentage").checked = value;
|
document.getElementById("show_tooltip_percentage").checked = value;
|
||||||
};
|
}
|
||||||
|
|
||||||
function handleTooltipPercentageModeChangeEvent(value) {
|
function handleTooltipPercentageModeChangeEvent(value) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
@@ -335,7 +345,7 @@ function handleTooltipPercentageModeChangeEvent(value) {
|
|||||||
document
|
document
|
||||||
.getElementById("tooltip_percentage_mode")
|
.getElementById("tooltip_percentage_mode")
|
||||||
.querySelector('option[value="' + value + '"]').selected = true;
|
.querySelector('option[value="' + value + '"]').selected = true;
|
||||||
};
|
}
|
||||||
|
|
||||||
function handleNumberDisplayReformatLikesChangeEvent(value) {
|
function handleNumberDisplayReformatLikesChangeEvent(value) {
|
||||||
config.numberDisplayReformatLikes = value;
|
config.numberDisplayReformatLikes = value;
|
||||||
|
|||||||
@@ -280,10 +280,14 @@ function storageChangeHandler(changes, area) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (changes.showTooltipPercentage !== undefined) {
|
if (changes.showTooltipPercentage !== undefined) {
|
||||||
handleShowTooltipPercentageChangeEvent(changes.showTooltipPercentage.newValue);
|
handleShowTooltipPercentageChangeEvent(
|
||||||
|
changes.showTooltipPercentage.newValue
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (changes.numberDisplayReformatLikes !== undefined) {
|
if (changes.numberDisplayReformatLikes !== undefined) {
|
||||||
handleNumberDisplayReformatLikesChangeEvent(changes.numberDisplayReformatLikes.newValue);
|
handleNumberDisplayReformatLikesChangeEvent(
|
||||||
|
changes.numberDisplayReformatLikes.newValue
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -302,14 +306,14 @@ function handleNumberDisplayFormatChangeEvent(value) {
|
|||||||
|
|
||||||
function handleShowTooltipPercentageChangeEvent(value) {
|
function handleShowTooltipPercentageChangeEvent(value) {
|
||||||
extConfig.showTooltipPercentage = value;
|
extConfig.showTooltipPercentage = value;
|
||||||
};
|
}
|
||||||
|
|
||||||
function handleTooltipPercentageModeChangeEvent(value) {
|
function handleTooltipPercentageModeChangeEvent(value) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
value = "dash_like";
|
value = "dash_like";
|
||||||
}
|
}
|
||||||
extConfig.tooltipPercentageMode = value;
|
extConfig.tooltipPercentageMode = value;
|
||||||
};
|
}
|
||||||
|
|
||||||
function handleNumberDisplayRoundDownChangeEvent(value) {
|
function handleNumberDisplayRoundDownChangeEvent(value) {
|
||||||
extConfig.numberDisplayRoundDown = value;
|
extConfig.numberDisplayRoundDown = value;
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
import { getButtons } from "./buttons";
|
import { getButtons } from "./buttons";
|
||||||
import { extConfig, isMobile, isLikesDisabled, isNewDesign, isShorts } from "./state";
|
import {
|
||||||
|
extConfig,
|
||||||
|
isMobile,
|
||||||
|
isLikesDisabled,
|
||||||
|
isNewDesign,
|
||||||
|
isShorts,
|
||||||
|
} from "./state";
|
||||||
import { cLog, getColorFromTheme } from "./utils";
|
import { cLog, getColorFromTheme } from "./utils";
|
||||||
|
|
||||||
function createRateBar(likes, dislikes) {
|
function createRateBar(likes, dislikes) {
|
||||||
@@ -18,27 +24,26 @@ function createRateBar(likes, dislikes) {
|
|||||||
const dislikePercentage = (100 - likePercentage).toLocaleString();
|
const dislikePercentage = (100 - likePercentage).toLocaleString();
|
||||||
likePercentage = likePercentage.toLocaleString();
|
likePercentage = likePercentage.toLocaleString();
|
||||||
|
|
||||||
|
|
||||||
if (extConfig.showTooltipPercentage) {
|
if (extConfig.showTooltipPercentage) {
|
||||||
var tooltipInnerHTML;
|
var tooltipInnerHTML;
|
||||||
switch (extConfig.tooltipPercentageMode) {
|
switch (extConfig.tooltipPercentageMode) {
|
||||||
case "dash_dislike":
|
case "dash_dislike":
|
||||||
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${dislikePercentage}%`
|
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${dislikePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "both":
|
case "both":
|
||||||
tooltipInnerHTML = `${likePercentage}% / ${dislikePercentage}%`
|
tooltipInnerHTML = `${likePercentage}% / ${dislikePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "only_like":
|
case "only_like":
|
||||||
tooltipInnerHTML = `${likePercentage}%`
|
tooltipInnerHTML = `${likePercentage}%`;
|
||||||
break;
|
break;
|
||||||
case "only_dislike":
|
case "only_dislike":
|
||||||
tooltipInnerHTML = `${dislikePercentage}%`
|
tooltipInnerHTML = `${dislikePercentage}%`;
|
||||||
break;
|
break;
|
||||||
default: // dash_like
|
default: // dash_like
|
||||||
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${likePercentage}%`
|
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()} - ${likePercentage}%`;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`
|
tooltipInnerHTML = `${likes.toLocaleString()} / ${dislikes.toLocaleString()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isShorts()) {
|
if (!isShorts()) {
|
||||||
@@ -51,12 +56,15 @@ function createRateBar(likes, dislikes) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(
|
(
|
||||||
document.getElementById(isNewDesign() ? "actions-inner" : "menu-container") ||
|
document.getElementById(
|
||||||
document.querySelector("ytm-slim-video-action-bar-renderer")
|
isNewDesign() ? "actions-inner" : "menu-container"
|
||||||
|
) || document.querySelector("ytm-slim-video-action-bar-renderer")
|
||||||
).insertAdjacentHTML(
|
).insertAdjacentHTML(
|
||||||
"beforeend",
|
"beforeend",
|
||||||
`
|
`
|
||||||
<div class="ryd-tooltip" style="width: ${widthPx}px${isNewDesign() ? "; margin-bottom: -2px" : ""}">
|
<div class="ryd-tooltip" style="width: ${widthPx}px${
|
||||||
|
isNewDesign() ? "; margin-bottom: -2px" : ""
|
||||||
|
}">
|
||||||
<div class="ryd-tooltip-bar-container">
|
<div class="ryd-tooltip-bar-container">
|
||||||
<div
|
<div
|
||||||
id="ryd-bar-container"
|
id="ryd-bar-container"
|
||||||
@@ -75,17 +83,19 @@ function createRateBar(likes, dislikes) {
|
|||||||
`
|
`
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add border between info and comments
|
// Add border between info and comments
|
||||||
if (isNewDesign()) {
|
if (isNewDesign()) {
|
||||||
let descriptionAndActionsElement = document.getElementById("top-row");
|
let descriptionAndActionsElement = document.getElementById("top-row");
|
||||||
descriptionAndActionsElement.style.borderBottom = "1px solid var(--yt-spec-10-percent-layer)";
|
descriptionAndActionsElement.style.borderBottom =
|
||||||
descriptionAndActionsElement.style.paddingBottom = "10px";
|
"1px solid var(--yt-spec-10-percent-layer)";
|
||||||
|
descriptionAndActionsElement.style.paddingBottom = "10px";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
document.getElementById("ryd-bar-container").style.width = widthPx + "px";
|
document.getElementById("ryd-bar-container").style.width =
|
||||||
|
widthPx + "px";
|
||||||
document.getElementById("ryd-bar").style.width = widthPercent + "%";
|
document.getElementById("ryd-bar").style.width = widthPercent + "%";
|
||||||
document.querySelector(
|
document.querySelector("#ryd-dislike-tooltip > #tooltip").innerHTML =
|
||||||
"#ryd-dislike-tooltip > #tooltip"
|
tooltipInnerHTML;
|
||||||
).innerHTML = tooltipInnerHTML;
|
|
||||||
if (extConfig.coloredBar) {
|
if (extConfig.coloredBar) {
|
||||||
document.getElementById("ryd-bar-container").style.backgroundColor =
|
document.getElementById("ryd-bar-container").style.backgroundColor =
|
||||||
getColorFromTheme(false);
|
getColorFromTheme(false);
|
||||||
@@ -97,7 +107,7 @@ function createRateBar(likes, dislikes) {
|
|||||||
} else {
|
} else {
|
||||||
cLog("removing bar");
|
cLog("removing bar");
|
||||||
let ratebar = document.getElementById("ryd-bar-container");
|
let ratebar = document.getElementById("ryd-bar-container");
|
||||||
if(ratebar) {
|
if (ratebar) {
|
||||||
ratebar.parentNode.removeChild(ratebar);
|
ratebar.parentNode.removeChild(ratebar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,7 +118,9 @@ function storageChangeHandler(changes, area) {
|
|||||||
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
|
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
|
||||||
}
|
}
|
||||||
if (changes.numberDisplayReformatLikes !== undefined) {
|
if (changes.numberDisplayReformatLikes !== undefined) {
|
||||||
handleNumberDisplayReformatLikesChangeEvent(changes.numberDisplayReformatLikes.newValue);
|
handleNumberDisplayReformatLikesChangeEvent(
|
||||||
|
changes.numberDisplayReformatLikes.newValue
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,38 +1,42 @@
|
|||||||
import { cLog } from "./utils";
|
import { cLog } from "./utils";
|
||||||
|
|
||||||
function createStarRating(rating, isMobile) {
|
function createStarRating(rating, isMobile) {
|
||||||
let starRating = document.createElement('label');
|
let starRating = document.createElement("label");
|
||||||
|
|
||||||
let starSlider = document.createElement("input");
|
let starSlider = document.createElement("input");
|
||||||
starSlider.setAttribute("class", "rating");
|
starSlider.setAttribute("class", "rating");
|
||||||
starSlider.setAttribute("max", "5");
|
starSlider.setAttribute("max", "5");
|
||||||
starSlider.setAttribute("readonly", "");
|
starSlider.setAttribute("readonly", "");
|
||||||
starSlider.setAttribute("style", `--fill:rgb(255, 215, 0);--value:${rating.toString()};};background-color: transparent;`);
|
starSlider.setAttribute(
|
||||||
starSlider.setAttribute("type", "range");
|
"style",
|
||||||
|
`--fill:rgb(255, 215, 0);--value:${rating.toString()};};background-color: transparent;`
|
||||||
|
);
|
||||||
|
starSlider.setAttribute("type", "range");
|
||||||
|
|
||||||
starRating.appendChild(starSlider);
|
starRating.appendChild(starSlider);
|
||||||
|
|
||||||
let YTLikeButton;
|
let YTLikeButton;
|
||||||
|
|
||||||
if (isMobile){
|
if (isMobile) {
|
||||||
YTLikeButton = document.querySelector('#app > div.page-container > ytm-watch > ytm-single-column-watch-next-results-renderer > ytm-slim-video-metadata-section-renderer > ytm-slim-video-action-bar-renderer > div > ytm-slim-metadata-toggle-button-renderer:nth-child(1)');
|
YTLikeButton = document.querySelector(
|
||||||
} else {
|
"#app > div.page-container > ytm-watch > ytm-single-column-watch-next-results-renderer > ytm-slim-video-metadata-section-renderer > ytm-slim-video-action-bar-renderer > div > ytm-slim-metadata-toggle-button-renderer:nth-child(1)"
|
||||||
YTLikeButton = document.querySelector('#top-level-buttons-computed > ytd-toggle-button-renderer:nth-child(1)');
|
);
|
||||||
}
|
} else {
|
||||||
|
YTLikeButton = document.querySelector(
|
||||||
|
"#top-level-buttons-computed > ytd-toggle-button-renderer:nth-child(1)"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
YTLikeButton.insertAdjacentElement('afterend', starRating);
|
YTLikeButton.insertAdjacentElement("afterend", starRating);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let YTBar = document.querySelector('#ryd-bar-container');
|
let YTBar = document.querySelector("#ryd-bar-container");
|
||||||
YTBar.setAttribute("style", "width: 190%; height: 2px;");
|
YTBar.setAttribute("style", "width: 190%; height: 2px;");
|
||||||
}
|
} catch (err) {
|
||||||
catch(err) {
|
cLog("RateBar Not Present");
|
||||||
cLog("RateBar Not Present");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
let style = `<style>
|
||||||
|
|
||||||
let style = `<style>
|
|
||||||
|
|
||||||
.rating {
|
.rating {
|
||||||
--dir: right;
|
--dir: right;
|
||||||
@@ -94,8 +98,7 @@ function createStarRating(rating, isMobile) {
|
|||||||
|
|
||||||
</style>`;
|
</style>`;
|
||||||
|
|
||||||
document.head.insertAdjacentHTML("beforeend", style);
|
document.head.insertAdjacentHTML("beforeend", style);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
export { createStarRating };
|
||||||
|
|
||||||
export { createStarRating };
|
|
||||||
@@ -206,7 +206,8 @@ function processResponse(response, storedData) {
|
|||||||
getDislikeButton().style.color = getColorFromTheme(false);
|
getDislikeButton().style.color = getColorFromTheme(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createStarRating(response.rating, isMobile());
|
//Temporary disabling this - it breaks all places where getButtons()[1] is used
|
||||||
|
// createStarRating(response.rating, isMobile());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tells the user if the API is down
|
// Tells the user if the API is down
|
||||||
|
|||||||
@@ -34,8 +34,10 @@ function getNumberFormatter(optionSelect) {
|
|||||||
?.getAttribute("href")
|
?.getAttribute("href")
|
||||||
)?.searchParams?.get("locale");
|
)?.searchParams?.get("locale");
|
||||||
} catch {
|
} catch {
|
||||||
cLog('Cannot find browser locale. Use en as default for number formatting.');
|
cLog(
|
||||||
userLocales = 'en';
|
"Cannot find browser locale. Use en as default for number formatting."
|
||||||
|
);
|
||||||
|
userLocales = "en";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,13 +58,10 @@ function getNumberFormatter(optionSelect) {
|
|||||||
formatterCompactDisplay = "short";
|
formatterCompactDisplay = "short";
|
||||||
}
|
}
|
||||||
|
|
||||||
const formatter = Intl.NumberFormat(
|
const formatter = Intl.NumberFormat(userLocales, {
|
||||||
userLocales,
|
notation: formatterNotation,
|
||||||
{
|
compactDisplay: formatterCompactDisplay,
|
||||||
notation: formatterNotation,
|
});
|
||||||
compactDisplay: formatterCompactDisplay,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
return formatter;
|
return formatter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ You can learn more at our website at: [returnyoutubedislike.com](https://www.ret
|
|||||||
Third-party use of this open API is allowed with the following restrictions:
|
Third-party use of this open API is allowed with the following restrictions:
|
||||||
|
|
||||||
- **Attribution**: This project should be clearly attributed with a link to [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
- **Attribution**: This project should be clearly attributed with a link to [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
||||||
- **Rate Limiting**: There are per client rate limits in place of 100 per minute and 10'000 per day. This will return a *429* status code indicating that your application should back off.
|
- **Rate Limiting**: There are per client rate limits in place of 100 per minute and 10'000 per day. This will return a _429_ status code indicating that your application should back off.
|
||||||
|
|
||||||
The API is accessible over the following base URL:
|
The API is accessible over the following base URL:
|
||||||
https://returnyoutubedislikeapi.com
|
https://returnyoutubedislikeapi.com
|
||||||
@@ -48,26 +48,24 @@ List of available endpoints is available here:
|
|||||||
https://returnyoutubedislikeapi.com/swagger/index.html
|
https://returnyoutubedislikeapi.com/swagger/index.html
|
||||||
|
|
||||||
### Get votes
|
### Get votes
|
||||||
|
|
||||||
Example to get votes of a given YouTube video ID:
|
Example to get votes of a given YouTube video ID:
|
||||||
`/votes?videoId=kxOuG8jMIgI`
|
`/votes?videoId=kxOuG8jMIgI`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "kxOuG8jMIgI",
|
"id": "kxOuG8jMIgI",
|
||||||
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
||||||
"likes": 27326,
|
"likes": 27326,
|
||||||
"dislikes": 498153,
|
"dislikes": 498153,
|
||||||
"rating": 1.212014408444885,
|
"rating": 1.212014408444885,
|
||||||
"viewCount": 3149885,
|
"viewCount": 3149885,
|
||||||
"deleted": false
|
"deleted": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
None existing YouTube ID will return status code _404_ "Not Found".
|
||||||
None existing YouTube ID will return status code *404* "Not Found".
|
Wrong formed YouTube ID will return _400_ "Bad Request".
|
||||||
Wrong formed YouTube ID will return *400* "Bad Request".
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
## API documentation
|
## API documentation
|
||||||
@@ -75,7 +73,6 @@ Wrong formed YouTube ID will return *400* "Bad Request".
|
|||||||
You can view all documentation on our website.
|
You can view all documentation on our website.
|
||||||
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Please read the [contribution guide](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md).
|
Please read the [contribution guide](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md).
|
||||||
@@ -87,6 +84,7 @@ You can support this project by donating to us on the link below:
|
|||||||
[Donate](https://returnyoutubedislike.com/donate)
|
[Donate](https://returnyoutubedislike.com/donate)
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
[Piepacker](https://piepacker.com)
|
[Piepacker](https://piepacker.com)
|
||||||
|
|
||||||
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
||||||
@@ -94,4 +92,3 @@ You can support this project by donating to us on the link below:
|
|||||||
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
|
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
|
||||||
|
|
||||||
[Become our sponsor](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
|
[Become our sponsor](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
|
||||||
|
|
||||||
+15
-18
@@ -7,7 +7,6 @@
|
|||||||
[](https://discord.gg/UMxyMmCgfF)
|
[](https://discord.gg/UMxyMmCgfF)
|
||||||
[](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
|
[](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
|
||||||
|
|
||||||
|
|
||||||
Leer en otros idiomas: [English](README.md), [русский](READMEru.md), [Français](READMEfr.md) [日本語](READMEja.md), [Türkçe](READMEtr.md)
|
Leer en otros idiomas: [English](README.md), [русский](READMEru.md), [Français](READMEfr.md) [日本語](READMEja.md), [Türkçe](READMEtr.md)
|
||||||
|
|
||||||
# Return YouTube Dislike
|
# Return YouTube Dislike
|
||||||
@@ -21,13 +20,13 @@ Leer en otros idiomas: [English](README.md), [русский](READMEru.md), [Fra
|
|||||||
|
|
||||||
## La historia
|
## La historia
|
||||||
|
|
||||||
El 10 de noviembre de 2021, Google [anunció](https://blog.youtube/news-and-events/update-to-youtube/) que eliminarían el contador de *dislikes* de YouTube.
|
El 10 de noviembre de 2021, Google [anunció](https://blog.youtube/news-and-events/update-to-youtube/) que eliminarían el contador de _dislikes_ de YouTube.
|
||||||
|
|
||||||
Adicionalmente, el campo `dislike` de la API de YouTube también fue [eliminado](https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts) el 13 de diciembre de 2021, acabando con la posibilidad de juzgar la calidad de un contenido antes de verlo.
|
Adicionalmente, el campo `dislike` de la API de YouTube también fue [eliminado](https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts) el 13 de diciembre de 2021, acabando con la posibilidad de juzgar la calidad de un contenido antes de verlo.
|
||||||
|
|
||||||
## Qué hace
|
## Qué hace
|
||||||
|
|
||||||
Tras la retirada de las estadísticas de *dislikes* de la API de YouTube, nuestro *backend* pasó a usar una combinación de las estadísticas archivadas de *dislikes* y datos extrapolados de los usuarios de la extensión.
|
Tras la retirada de las estadísticas de _dislikes_ de la API de YouTube, nuestro _backend_ pasó a usar una combinación de las estadísticas archivadas de _dislikes_ y datos extrapolados de los usuarios de la extensión.
|
||||||
|
|
||||||
[FAQ](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQ.md)
|
[FAQ](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQ.md)
|
||||||
|
|
||||||
@@ -40,35 +39,33 @@ Para más información, visita nuestro sitio web: [returnyoutubedislike.com](htt
|
|||||||
Se permite el uso de terceros de esta API abierta bajo las siguientes restricciones:
|
Se permite el uso de terceros de esta API abierta bajo las siguientes restricciones:
|
||||||
|
|
||||||
- **Atribución**: Este proyecto debe estar claramente atribuido con un enlace a [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
- **Atribución**: Este proyecto debe estar claramente atribuido con un enlace a [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
||||||
- **Límites de velocidad**: Hay límites de velocidad por cliente de 100 solicitudes por minuto y 10.000 al día. Al excederlos se mostrará un código de estado *429*, indicando que tu aplicación debe bajar la velocidad.
|
- **Límites de velocidad**: Hay límites de velocidad por cliente de 100 solicitudes por minuto y 10.000 al día. Al excederlos se mostrará un código de estado _429_, indicando que tu aplicación debe bajar la velocidad.
|
||||||
|
|
||||||
La API es accesible a través de la siguiente URL base:
|
La API es accesible a través de la siguiente URL base:
|
||||||
https://returnyoutubedislikeapi.com
|
https://returnyoutubedislikeapi.com
|
||||||
|
|
||||||
La lista de los *endpoints* disponibles se puede consultar aquí:
|
La lista de los _endpoints_ disponibles se puede consultar aquí:
|
||||||
https://returnyoutubedislikeapi.com/swagger/index.html
|
https://returnyoutubedislikeapi.com/swagger/index.html
|
||||||
|
|
||||||
### Obtención de votos
|
### Obtención de votos
|
||||||
|
|
||||||
Ejemplo para obtener los votos del ID de un vídeo de YouTube proporcionado:
|
Ejemplo para obtener los votos del ID de un vídeo de YouTube proporcionado:
|
||||||
`/votes?videoId=kxOuG8jMIgI`
|
`/votes?videoId=kxOuG8jMIgI`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "kxOuG8jMIgI",
|
"id": "kxOuG8jMIgI",
|
||||||
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
||||||
"likes": 27326,
|
"likes": 27326,
|
||||||
"dislikes": 498153,
|
"dislikes": 498153,
|
||||||
"rating": 1.212014408444885,
|
"rating": 1.212014408444885,
|
||||||
"viewCount": 3149885,
|
"viewCount": 3149885,
|
||||||
"deleted": false
|
"deleted": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Un ID de YouTube no existente mostrará el código de estado _404_ "Not Found" (no encontrado).
|
||||||
Un ID de YouTube no existente mostrará el código de estado *404* "Not Found" (no encontrado).
|
Un ID de YouTube mal estructurado mostrará el código _400_ "Bad Request" (solicitud incorrecta).
|
||||||
Un ID de YouTube mal estructurado mostrará el código *400* "Bad Request" (solicitud incorrecta).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
## Documentación de la API
|
## Documentación de la API
|
||||||
@@ -76,7 +73,6 @@ Un ID de YouTube mal estructurado mostrará el código *400* "Bad Request" (soli
|
|||||||
Puedes ver toda la documentación en nuestra página web.
|
Puedes ver toda la documentación en nuestra página web.
|
||||||
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
||||||
|
|
||||||
|
|
||||||
## Contribuciones
|
## Contribuciones
|
||||||
|
|
||||||
Rogamos que leas la [guía de contribución](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md) antes de empezar.
|
Rogamos que leas la [guía de contribución](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md) antes de empezar.
|
||||||
@@ -88,6 +84,7 @@ Puedes apoyar este proyecto enviando un donativo a través del enlace inferior:
|
|||||||
[Donar](https://returnyoutubedislike.com/donate)
|
[Donar](https://returnyoutubedislike.com/donate)
|
||||||
|
|
||||||
## Patrocinadores
|
## Patrocinadores
|
||||||
|
|
||||||
[Piepacker](https://piepacker.com)
|
[Piepacker](https://piepacker.com)
|
||||||
|
|
||||||
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
||||||
|
|||||||
+12
-14
@@ -39,7 +39,7 @@ Vous pouvez en savoir plus sur notre site web à l'adresse suivante : [returnyou
|
|||||||
L'utilisation par des tiers de cette API ouverte est autorisée avec les restrictions suivantes :
|
L'utilisation par des tiers de cette API ouverte est autorisée avec les restrictions suivantes :
|
||||||
|
|
||||||
- **Attribution**: Ce projet doit être clairement nommé avec un lien vers [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
- **Attribution**: Ce projet doit être clairement nommé avec un lien vers [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
||||||
- **Limitation des requêtes**: Il y a des limites de requêtes par client en place qui sont de 100 requêtes par minute et 10 000 par jour. Nous renverrons un code d'erreur *429* indiquant que votre application devrait se calmer.
|
- **Limitation des requêtes**: Il y a des limites de requêtes par client en place qui sont de 100 requêtes par minute et 10 000 par jour. Nous renverrons un code d'erreur _429_ indiquant que votre application devrait se calmer.
|
||||||
|
|
||||||
L'API est accessible via l'URL de base suivante:
|
L'API est accessible via l'URL de base suivante:
|
||||||
https://returnyoutubedislikeapi.com
|
https://returnyoutubedislikeapi.com
|
||||||
@@ -48,26 +48,24 @@ La liste des endpoints est disponible ici:
|
|||||||
https://returnyoutubedislikeapi.com/swagger/index.html
|
https://returnyoutubedislikeapi.com/swagger/index.html
|
||||||
|
|
||||||
### Obtenir les likes
|
### Obtenir les likes
|
||||||
|
|
||||||
Exemple pour obtenir les likes d'une vidéo YouTube avec un ID donné:
|
Exemple pour obtenir les likes d'une vidéo YouTube avec un ID donné:
|
||||||
`/votes?videoId=kxOuG8jMIgI`
|
`/votes?videoId=kxOuG8jMIgI`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "kxOuG8jMIgI",
|
"id": "kxOuG8jMIgI",
|
||||||
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
||||||
"likes": 27326,
|
"likes": 27326,
|
||||||
"dislikes": 498153,
|
"dislikes": 498153,
|
||||||
"rating": 1.212014408444885,
|
"rating": 1.212014408444885,
|
||||||
"viewCount": 3149885,
|
"viewCount": 3149885,
|
||||||
"deleted": false
|
"deleted": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Si aucunne vidéo YouTube à cet ID, il sera retourner le code d'erreur _404_ "Not Found".
|
||||||
Si aucunne vidéo YouTube à cet ID, il sera retourner le code d'erreur *404* "Not Found".
|
Un ID YouTube invilide renverra _400_ "Bad Request".
|
||||||
Un ID YouTube invilide renverra *400* "Bad Request".
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
## Documentation de l'API
|
## Documentation de l'API
|
||||||
@@ -75,7 +73,6 @@ Un ID YouTube invilide renverra *400* "Bad Request".
|
|||||||
Vous pouvez consulter toute la documentation sur notre site web.
|
Vous pouvez consulter toute la documentation sur notre site web.
|
||||||
[https://returnyoutubedislike.com/docs](https://returnyoutubedislike.com/docs) -->
|
[https://returnyoutubedislike.com/docs](https://returnyoutubedislike.com/docs) -->
|
||||||
|
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
Veuillez lire le [guide des contributions](CONTRIBUTINGfr.md).
|
Veuillez lire le [guide des contributions](CONTRIBUTINGfr.md).
|
||||||
@@ -87,6 +84,7 @@ Vous pouvez soutenir ce projet en faisant un don grâce au lien ci-dessous :
|
|||||||
[Donner](https://returnyoutubedislike.com/donate)
|
[Donner](https://returnyoutubedislike.com/donate)
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
[Piepacker](https://piepacker.com)
|
[Piepacker](https://piepacker.com)
|
||||||
|
|
||||||
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
||||||
|
|||||||
+18
-21
@@ -20,15 +20,15 @@
|
|||||||
|
|
||||||
## これまでの経緯
|
## これまでの経緯
|
||||||
|
|
||||||
2021年10月10日、GoogleはYouTubeの低評価を非表示にすると[発表しました](https://blog.youtube/news-and-events/update-to-youtube/)。
|
2021 年 10 月 10 日、Google は YouTube の低評価を非表示にすると[発表しました](https://blog.youtube/news-and-events/update-to-youtube/)。
|
||||||
|
|
||||||
そして2021年12月13日、YouTube APIからも低評価が[削除]((https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts))され、動画のクオリティを判断する手段がなくなってしまいました。
|
そして 2021 年 12 月 13 日、YouTube API からも低評価が[削除](<(https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts)>)され、動画のクオリティを判断する手段がなくなってしまいました。
|
||||||
|
|
||||||
## What it Does
|
## What it Does
|
||||||
|
|
||||||
<!-- この部分の翻訳が微妙? -->
|
<!-- この部分の翻訳が微妙? -->
|
||||||
|
|
||||||
YouTube APIから低評価が削除されたことにより、バックエンドは拡張機能のユーザーをもとにスクレイピングされたデータと組み合わせて表示するように切り替わりました
|
YouTube API から低評価が削除されたことにより、バックエンドは拡張機能のユーザーをもとにスクレイピングされたデータと組み合わせて表示するように切り替わりました
|
||||||
|
|
||||||
[FAQ](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQ.md)
|
[FAQ](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQ.md)
|
||||||
|
|
||||||
@@ -38,38 +38,36 @@ YouTube APIから低評価が削除されたことにより、バックエンド
|
|||||||
|
|
||||||
## API ドキュメント
|
## API ドキュメント
|
||||||
|
|
||||||
サードパーティは以下の制限のもとでAPIを利用できます:
|
サードパーティは以下の制限のもとで API を利用できます:
|
||||||
|
|
||||||
- **帰属**: [returnyoutubedislike.com](https://returnyoutubedislike.com/) へのリンクを明確に表記してください。
|
- **帰属**: [returnyoutubedislike.com](https://returnyoutubedislike.com/) へのリンクを明確に表記してください。
|
||||||
- **レート制限**: クライアントごとに1分あたり100回、1日あたり10000回という制限があります。制限に達すると*429*コードが返されます。
|
- **レート制限**: クライアントごとに 1 分あたり 100 回、1 日あたり 10000 回という制限があります。制限に達すると*429*コードが返されます。
|
||||||
|
|
||||||
APIは以下のBase URLでアクセスできます:
|
API は以下の Base URL でアクセスできます:
|
||||||
https://returnyoutubedislikeapi.com
|
https://returnyoutubedislikeapi.com
|
||||||
|
|
||||||
利用可能なエンドポイントはこちらを参照してください:
|
利用可能なエンドポイントはこちらを参照してください:
|
||||||
https://returnyoutubedislikeapi.com/swagger/index.html
|
https://returnyoutubedislikeapi.com/swagger/index.html
|
||||||
|
|
||||||
### 評価を取得
|
### 評価を取得
|
||||||
APIを利用してYouTube video IDから評価を取得する例です:
|
|
||||||
|
API を利用して YouTube video ID から評価を取得する例です:
|
||||||
`/votes?videoId=kxOuG8jMIgI`
|
`/votes?videoId=kxOuG8jMIgI`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "kxOuG8jMIgI",
|
"id": "kxOuG8jMIgI",
|
||||||
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
||||||
"likes": 27326,
|
"likes": 27326,
|
||||||
"dislikes": 498153,
|
"dislikes": 498153,
|
||||||
"rating": 1.212014408444885,
|
"rating": 1.212014408444885,
|
||||||
"viewCount": 3149885,
|
"viewCount": 3149885,
|
||||||
"deleted": false
|
"deleted": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
存在しない YouTube ID の場合 _404_ "Not Found" が返されます。
|
||||||
存在しないYouTube IDの場合 *404* "Not Found" が返されます。
|
不正なフォーマットの YouTube ID の場合 _400_ "Bad Request"が返されます。
|
||||||
不正なフォーマットのYouTube IDの場合 *400* "Bad Request"が返されます。
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
## API ドキュメント
|
## API ドキュメント
|
||||||
@@ -77,7 +75,6 @@ APIを利用してYouTube video IDから評価を取得する例です:
|
|||||||
APIの完全なドキュメントは公式サイトを参照してください。
|
APIの完全なドキュメントは公式サイトを参照してください。
|
||||||
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
||||||
|
|
||||||
|
|
||||||
## 貢献する
|
## 貢献する
|
||||||
|
|
||||||
こちらの[contribution guide](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md)を読んでください。
|
こちらの[contribution guide](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md)を読んでください。
|
||||||
@@ -89,6 +86,7 @@ APIの完全なドキュメントは公式サイトを参照してください
|
|||||||
[寄付](https://returnyoutubedislike.com/donate)
|
[寄付](https://returnyoutubedislike.com/donate)
|
||||||
|
|
||||||
## スポンサー
|
## スポンサー
|
||||||
|
|
||||||
[Piepacker](https://piepacker.com)
|
[Piepacker](https://piepacker.com)
|
||||||
|
|
||||||
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
||||||
@@ -96,4 +94,3 @@ APIの完全なドキュメントは公式サイトを参照してください
|
|||||||
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
|
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
|
||||||
|
|
||||||
[Become our sponsor](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
|
[Become our sponsor](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
|
||||||
|
|
||||||
+12
-17
@@ -7,10 +7,8 @@
|
|||||||
[](https://discord.gg/UMxyMmCgfF)
|
[](https://discord.gg/UMxyMmCgfF)
|
||||||
[](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
|
[](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
|
||||||
|
|
||||||
|
|
||||||
Прочитать на других языках: [English](README.md), [Español](READMEes.md), [Français](READMEfr.md), [日本語](READMEja.md), [Türkçe](READMEtr.md)
|
Прочитать на других языках: [English](README.md), [Español](READMEes.md), [Français](READMEfr.md), [日本語](READMEja.md), [Türkçe](READMEtr.md)
|
||||||
|
|
||||||
|
|
||||||
# Return YouTube Dislike
|
# Return YouTube Dislike
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
@@ -41,7 +39,7 @@
|
|||||||
Стороннее использование этого открытого API разрешено со следующими ограничениями:
|
Стороннее использование этого открытого API разрешено со следующими ограничениями:
|
||||||
|
|
||||||
- **Атрибуция**: Этот проект должен быть чётко описан со ссылкой на [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
- **Атрибуция**: Этот проект должен быть чётко описан со ссылкой на [returnyoutubedislike.com](https://returnyoutubedislike.com/).
|
||||||
- **Ограничение**: Существуют ограничения скорости для каждого клиента - 100 в минуту и 10 000 в день. Это выдаст код ошибки *429*, указывающий на то, что ваше приложение должно быть отключено.
|
- **Ограничение**: Существуют ограничения скорости для каждого клиента - 100 в минуту и 10 000 в день. Это выдаст код ошибки _429_, указывающий на то, что ваше приложение должно быть отключено.
|
||||||
|
|
||||||
API доступен по следующему основному URL-адресу:
|
API доступен по следующему основному URL-адресу:
|
||||||
https://returnyoutubedislikeapi.com
|
https://returnyoutubedislikeapi.com
|
||||||
@@ -50,26 +48,24 @@ https://returnyoutubedislikeapi.com
|
|||||||
https://returnyoutubedislikeapi.com/swagger/index.html
|
https://returnyoutubedislikeapi.com/swagger/index.html
|
||||||
|
|
||||||
### Получить голоса
|
### Получить голоса
|
||||||
|
|
||||||
Пример получения голосов за заданный идентификатор видео на YouTube:
|
Пример получения голосов за заданный идентификатор видео на YouTube:
|
||||||
`/votes?videoId=kxOuG8jMIgI`
|
`/votes?videoId=kxOuG8jMIgI`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "kxOuG8jMIgI",
|
"id": "kxOuG8jMIgI",
|
||||||
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
||||||
"likes": 27326,
|
"likes": 27326,
|
||||||
"dislikes": 498153,
|
"dislikes": 498153,
|
||||||
"rating": 1.212014408444885,
|
"rating": 1.212014408444885,
|
||||||
"viewCount": 3149885,
|
"viewCount": 3149885,
|
||||||
"deleted": false
|
"deleted": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Неверный идентификатор YouTube выдаст код ошибки _404_ "Не найдено".
|
||||||
Неверный идентификатор YouTube выдаст код ошибки *404* "Не найдено".
|
Неправильно отформатированный идентификатор YouTube выдаст код ошибки _400_ "Неверный запрос".
|
||||||
Неправильно отформатированный идентификатор YouTube выдаст код ошибки *400* "Неверный запрос".
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
## Документация по API
|
## Документация по API
|
||||||
@@ -77,7 +73,6 @@ https://returnyoutubedislikeapi.com/swagger/index.html
|
|||||||
Вы можете просмотреть всю документацию на нашем веб-сайте.
|
Вы можете просмотреть всю документацию на нашем веб-сайте.
|
||||||
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
||||||
|
|
||||||
|
|
||||||
## Участие/помощь в разработке
|
## Участие/помощь в разработке
|
||||||
|
|
||||||
Пожалуйста, ознакомьтесь с [руководством по внесению вклада в проект](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTINGru.md).
|
Пожалуйста, ознакомьтесь с [руководством по внесению вклада в проект](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTINGru.md).
|
||||||
@@ -89,6 +84,7 @@ https://returnyoutubedislikeapi.com/swagger/index.html
|
|||||||
[Пожертвование](https://returnyoutubedislike.com/donate)
|
[Пожертвование](https://returnyoutubedislike.com/donate)
|
||||||
|
|
||||||
## Спонсоры
|
## Спонсоры
|
||||||
|
|
||||||
[Piepacker](https://piepacker.com)
|
[Piepacker](https://piepacker.com)
|
||||||
|
|
||||||
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
||||||
@@ -96,4 +92,3 @@ https://returnyoutubedislikeapi.com/swagger/index.html
|
|||||||
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
|
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
|
||||||
|
|
||||||
[Станьте нашим спонсором](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
|
[Станьте нашим спонсором](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
|
||||||
|
|
||||||
+11
-13
@@ -48,26 +48,24 @@ Kullanılabilir endpoint'lerin listesi burada mevcuttur:
|
|||||||
https://returnyoutubedislikeapi.com/swagger/index.html
|
https://returnyoutubedislikeapi.com/swagger/index.html
|
||||||
|
|
||||||
### Oylamaları Elde Etme
|
### Oylamaları Elde Etme
|
||||||
|
|
||||||
Belirli bir YouTube video ID'sinin oylamalarını elde etmek için bir örnek:
|
Belirli bir YouTube video ID'sinin oylamalarını elde etmek için bir örnek:
|
||||||
`/votes?videoId=kxOuG8jMIgI`
|
`/votes?videoId=kxOuG8jMIgI`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "kxOuG8jMIgI",
|
"id": "kxOuG8jMIgI",
|
||||||
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
"dateCreated": "2021-12-20T12:25:54.418014Z",
|
||||||
"likes": 27326,
|
"likes": 27326,
|
||||||
"dislikes": 498153,
|
"dislikes": 498153,
|
||||||
"rating": 1.212014408444885,
|
"rating": 1.212014408444885,
|
||||||
"viewCount": 3149885,
|
"viewCount": 3149885,
|
||||||
"deleted": false
|
"deleted": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Hiçbir mevcut YouTube ID'si _404_ "Not Found" durum kodunu döndürmez.
|
||||||
Hiçbir mevcut YouTube ID'si *404* "Not Found" durum kodunu döndürmez.
|
Yanlış oluşturulmuş bir YouTube ID'si _400_ "Bad Request" durum kodunu döndürür.
|
||||||
Yanlış oluşturulmuş bir YouTube ID'si *400* "Bad Request" durum kodunu döndürür.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!---
|
<!---
|
||||||
## API Belgelemesi
|
## API Belgelemesi
|
||||||
@@ -75,7 +73,6 @@ Yanlış oluşturulmuş bir YouTube ID'si *400* "Bad Request" durum kodunu dönd
|
|||||||
Tüm belgelemeleri sitemizden inceleyebilirsiniz.
|
Tüm belgelemeleri sitemizden inceleyebilirsiniz.
|
||||||
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
|
||||||
|
|
||||||
|
|
||||||
## Katkıda Bulunma
|
## Katkıda Bulunma
|
||||||
|
|
||||||
Lütfen [katkı kılavuzu](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md)nu okuyun.
|
Lütfen [katkı kılavuzu](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md)nu okuyun.
|
||||||
@@ -87,6 +84,7 @@ Aşağıdaki bağlantıdan bize bağış yapabilir ve bu projeye destek olabilir
|
|||||||
[Bağış Yapın](https://returnyoutubedislike.com/donate)
|
[Bağış Yapın](https://returnyoutubedislike.com/donate)
|
||||||
|
|
||||||
## Sponsorlar
|
## Sponsorlar
|
||||||
|
|
||||||
[Piepacker](https://piepacker.com)
|
[Piepacker](https://piepacker.com)
|
||||||
|
|
||||||
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
|
||||||
|
|||||||
+6
-4
@@ -23,11 +23,13 @@ $ npm run generate
|
|||||||
For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
|
For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
|
||||||
|
|
||||||
## Recommended VSCode Setup
|
## Recommended VSCode Setup
|
||||||
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) `ext install dbaeumer.vscode-eslint`
|
|
||||||
- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) `ext install esbenp.prettier-vscode`
|
|
||||||
- [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)
|
|
||||||
|
|
||||||
>`Ctrl(Cmd)` + `Shift` + `P` > Open Settings (JSON)
|
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) `ext install dbaeumer.vscode-eslint`
|
||||||
|
- [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) `ext install esbenp.prettier-vscode`
|
||||||
|
- [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)
|
||||||
|
|
||||||
|
> `Ctrl(Cmd)` + `Shift` + `P` > Open Settings (JSON)
|
||||||
|
|
||||||
```
|
```
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
|
|||||||
+119
-98
@@ -1,104 +1,125 @@
|
|||||||
import { cs } from 'vuetify/src/locale'
|
import { cs } from "vuetify/src/locale";
|
||||||
// By Fjuro
|
// By Fjuro
|
||||||
export default {
|
export default {
|
||||||
...cs,
|
...cs,
|
||||||
home: {
|
home: {
|
||||||
name: 'Domů',
|
name: "Domů",
|
||||||
title: 'Return YouTube Dislike',
|
title: "Return YouTube Dislike",
|
||||||
subtitle: 'Rozšíření prohlížeče a API, která zobrazí disliky na YouTube',
|
subtitle: "Rozšíření prohlížeče a API, která zobrazí disliky na YouTube",
|
||||||
ukraine: 'Podpořte Ukrajinu',
|
ukraine: "Podpořte Ukrajinu",
|
||||||
sponsors: 'Sponzoři',
|
sponsors: "Sponzoři",
|
||||||
|
},
|
||||||
|
install: {
|
||||||
|
name: "Instalace",
|
||||||
|
title: "Vyberte svou platformu",
|
||||||
|
subtitle: "Dostupné pro Firefox a všechny prohlížeče založené na Chromiu",
|
||||||
|
title2: "Další platformy",
|
||||||
|
subtitle2:
|
||||||
|
"Pokud váš prohlížeč ještě není podporován, vyzkoušejte tento UserScript",
|
||||||
|
title3: "Implementace třetích stran",
|
||||||
|
subtitle3:
|
||||||
|
"Žádná odpovědnost na naší straně, používejte na vlastní nebezpečí",
|
||||||
|
},
|
||||||
|
api: {
|
||||||
|
name: "API",
|
||||||
|
title: "Vítejte v oficiální dokumentaci RYD!",
|
||||||
|
subtitle: "Pro začátek vyberte sekci z menu.",
|
||||||
|
rights: {
|
||||||
|
title: "Práva k použití",
|
||||||
|
subtitle:
|
||||||
|
"Použití této API třetími stranami je povoleno s následujícími omezeními:",
|
||||||
|
bullet1: "Uvedení: ",
|
||||||
|
bullet1text:
|
||||||
|
"Tento projekt by měl být viditelně uveden buď s odkazem na tento repozitář, nebo s odkazem na returnyoutubedislike.com",
|
||||||
|
bullet2: "Omezení požadavků: ",
|
||||||
|
bullet2text:
|
||||||
|
"U API platí omezení na 100 požadavků za minutu a 10 000 za den. Při překročení tohoto limitu aplikace vrátí stavový kód 429, značící, že byste měli omezit své požadavky",
|
||||||
},
|
},
|
||||||
install: {
|
url: {
|
||||||
name: 'Instalace',
|
title: "Informace o URL",
|
||||||
title: 'Vyberte svou platformu',
|
subtitle: "API je dostupná na následující základní URL: ",
|
||||||
subtitle: 'Dostupné pro Firefox a všechny prohlížeče založené na Chromiu',
|
|
||||||
title2: 'Další platformy',
|
|
||||||
subtitle2: 'Pokud váš prohlížeč ještě není podporován, vyzkoušejte tento UserScript',
|
|
||||||
title3: 'Implementace třetích stran',
|
|
||||||
subtitle3: 'Žádná odpovědnost na naší straně, používejte na vlastní nebezpečí',
|
|
||||||
},
|
},
|
||||||
api: {
|
endpoints: {
|
||||||
name: 'API',
|
title: "Dostupné endpointy",
|
||||||
title: 'Vítejte v oficiální dokumentaci RYD!',
|
subtitle: "Seznam dostupných endpointů lze nalézt zde: ",
|
||||||
subtitle: 'Pro začátek vyberte sekci z menu.',
|
|
||||||
rights: {
|
|
||||||
title: 'Práva k použití',
|
|
||||||
subtitle: 'Použití této API třetími stranami je povoleno s následujícími omezeními:',
|
|
||||||
bullet1: 'Uvedení: ',
|
|
||||||
bullet1text: 'Tento projekt by měl být viditelně uveden buď s odkazem na tento repozitář, nebo s odkazem na returnyoutubedislike.com',
|
|
||||||
bullet2: 'Omezení požadavků: ',
|
|
||||||
bullet2text: 'U API platí omezení na 100 požadavků za minutu a 10 000 za den. Při překročení tohoto limitu aplikace vrátí stavový kód 429, značící, že byste měli omezit své požadavky',
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
title: 'Informace o URL',
|
|
||||||
subtitle: 'API je dostupná na následující základní URL: ',
|
|
||||||
},
|
|
||||||
endpoints: {
|
|
||||||
title: 'Dostupné endpointy',
|
|
||||||
subtitle: 'Seznam dostupných endpointů lze nalézt zde: ',
|
|
||||||
},
|
|
||||||
fetching: {
|
|
||||||
title: 'Základní návod na přístup',
|
|
||||||
subtitle: 'Příklad získání hlasů daného ID YouTube videa: ID: ',
|
|
||||||
title2: 'Příklad požadavku: ',
|
|
||||||
url: 'URL požadavku: ',
|
|
||||||
method: 'Způsob žádosti: ',
|
|
||||||
headers: 'Hlavičky: ',
|
|
||||||
response: 'Odpověď: ',
|
|
||||||
error1: 'Neplatné YouTube ID vrátí stavový kód 404 "Not Found"',
|
|
||||||
error2: 'Nesprávně formátované YouTube ID vrátí stavový kód 400 "Bad Request"'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
help: {
|
fetching: {
|
||||||
name: 'Nápověda',
|
title: "Základní návod na přístup",
|
||||||
title: 'Řešení problémů',
|
subtitle: "Příklad získání hlasů daného ID YouTube videa: ID: ",
|
||||||
bullet1: 'Ujistěte se, že používáte nejnovější verzi rozšíření. Momentálně je to verze ',
|
title2: "Příklad požadavku: ",
|
||||||
bullet11: '',
|
url: "URL požadavku: ",
|
||||||
bullet2: 'Zkuste odebrat a znovu nainstalovat rozšíření a poté restartovat váš prohlížeč (všechna aktivní okna, ne jen jednu kartu)',
|
method: "Způsob žádosti: ",
|
||||||
bullet3: 'Ujistěte se, že se otevře následující odkaz: ',
|
headers: "Hlavičky: ",
|
||||||
bullet31: 'měli byste vidět tento text: ',
|
response: "Odpověď: ",
|
||||||
bullet4: 'Pokud nepomůže ani jedna z možností výše, nahlaste svůj problém do kanálu',
|
error1: 'Neplatné YouTube ID vrátí stavový kód 404 "Not Found"',
|
||||||
bullet41: 'v našem',
|
error2:
|
||||||
bullet4a: 'Řekněte nám jaký máte operační systém, název prohlížeče a verzi prohlížeče',
|
'Nesprávně formátované YouTube ID vrátí stavový kód 400 "Bad Request"',
|
||||||
bullet4b: 'Udělejte snímek obrazovky s problémem (např. stránka YouTube videa) s otevřenou konzolí (stiskněte ',
|
|
||||||
bullet4b1: ') - příkladný snímek viz níže.',
|
|
||||||
bullet4c: 'Udělejte snímek obrazovky stránky rozšíření vašeho prohlížeče s nainstalovaným rozšířením.',
|
|
||||||
bullet4c1: 'Pro zobrazení rozšíření zadejte následující adresu do adresního řádku: ',
|
|
||||||
firefox: 'pro Firefox',
|
|
||||||
chrome: 'pro Chrome, Edge, Brave, Opera, Vivaldi',
|
|
||||||
},
|
},
|
||||||
faq: {
|
},
|
||||||
name: 'FAQ',
|
help: {
|
||||||
title: 'Často kladené dotazy',
|
name: "Nápověda",
|
||||||
subtitle: 'Stále máte otázky? Připojte se na náš Discord server!',
|
title: "Řešení problémů",
|
||||||
bullet1: 'Jak získává rozšíření svá data?',
|
bullet1:
|
||||||
bullet1text: 'Kombinací archivovaných dat z doby před oficiálním vypnutím rozhraní API YouTube dislike a extrapolovaného chování uživatelů rozšíření..',
|
"Ujistěte se, že používáte nejnovější verzi rozšíření. Momentálně je to verze ",
|
||||||
bullet2: 'Proč se neaktualizuje počet disliků?',
|
bullet11: "",
|
||||||
bullet2text: 'V současné době jsou počty disliků videí ukládány do mezipaměti a nejsou příliš často aktualizovány. Jejich aktualizace se liší v závislosti na popularitě videa, ale může trvat od několika hodin do několika dnů.',
|
bullet2:
|
||||||
bullet3: 'Jak to funguje?',
|
"Zkuste odebrat a znovu nainstalovat rozšíření a poté restartovat váš prohlížeč (všechna aktivní okna, ne jen jednu kartu)",
|
||||||
bullet3text: 'Rozšíření načte ID videa, které sledujete, a pomocí našeho rozhraní API získá počet disliků (a další pole, jako jsou zobrazení, lajky atd.). Rozšíření pak na stránce zobrazí počet a poměr disliků. Pokud se vám video líbí nebo nelíbí, je to zaznamenáno a odesláno do databáze, takže lze extrapolovat přesný počet disliků.',
|
bullet3: "Ujistěte se, že se otevře následující odkaz: ",
|
||||||
bullet4: 'Můžu s vámi sdílet počet svých disliků?',
|
bullet31: "měli byste vidět tento text: ",
|
||||||
bullet4text: 'Již brzy. Hledáme způsob, jak použít rozhraní Oauth nebo jiného rozhraní API pouze pro čtení s omezeným rozsahem, aby tvůrci mohli ověřitelně sdílet své počty disliků.',
|
bullet4:
|
||||||
bullet5: 'Jaká data sbíráte a jak je s nimi nakládáno?',
|
"Pokud nepomůže ani jedna z možností výše, nahlaste svůj problém do kanálu",
|
||||||
bullet5text: 'Rozšíření shromažďuje pouze údaje, které jsou nezbytně nutné pro jeho správnou funkci, například IP adresu nebo ID sledovaného videa. Žádné z vašich údajů nebudou nikdy prodány třetím stranám. Pokud se chcete dozvědět více o tom, jak se staráme o zabezpečení a ochranu osobních údajů, podívejte se na naši <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">bezpečnostní FAQ</a>.',
|
bullet41: "v našem",
|
||||||
bullet6: 'Jak funguje API/Backend?',
|
bullet4a:
|
||||||
bullet6text: 'Backend používá archivovaná data z doby, kdy rozhraní YouTube ještě vracelo počet disliků, počty lajků/disliků uživatelů a extrapolaci. V blízké budoucnosti umožníme tvůrcům obsahu snadno a bezpečně odesílat počet disliků a do naší současné databáze přidáme archivovaná data ArchiveTeamu (4,56 miliardy videí). Můžete si také prohlédnout video na toto téma.',
|
"Řekněte nám jaký máte operační systém, název prohlížeče a verzi prohlížeče",
|
||||||
bullet7: 'Proč počet disliků zobrazuje \'DISLIKES DISABLED\'?',
|
bullet4b:
|
||||||
bullet7text: 'Někdy se u nedávno nahraného videa může zobrazit \'DISLIKES DISABLED\' (disliky zakázány), i když je tvůrce nezakázal, což je způsobeno tím, jak zjišťujeme, zda jsou dislike zakázány. Mělo by to samo zmizet během několika hodin nebo tím, že dáte lajk či dislike danému videu.',
|
"Udělejte snímek obrazovky s problémem (např. stránka YouTube videa) s otevřenou konzolí (stiskněte ",
|
||||||
},
|
bullet4b1: ") - příkladný snímek viz níže.",
|
||||||
donate: {
|
bullet4c:
|
||||||
name: 'Přispět',
|
"Udělejte snímek obrazovky stránky rozšíření vašeho prohlížeče s nainstalovaným rozšířením.",
|
||||||
subtitle: 'Můžete podpořit naše úsilí ponechat internet bezplatný jakýmkoli darem!',
|
bullet4c1:
|
||||||
},
|
"Pro zobrazení rozšíření zadejte následující adresu do adresního řádku: ",
|
||||||
links: {
|
firefox: "pro Firefox",
|
||||||
name: 'Odkazy',
|
chrome: "pro Chrome, Edge, Brave, Opera, Vivaldi",
|
||||||
title: 'Odkazy projektu',
|
},
|
||||||
subtitle: 'Odkazy na projekt a jeho vývojáře',
|
faq: {
|
||||||
contact: 'Kontaktujte mě',
|
name: "FAQ",
|
||||||
translators: 'Překladatelé',
|
title: "Často kladené dotazy",
|
||||||
coolProjects: 'Bezva projekty',
|
subtitle: "Stále máte otázky? Připojte se na náš Discord server!",
|
||||||
sponsorBlockDescription: 'Přeskočte reklamy integrované ve videích',
|
bullet1: "Jak získává rozšíření svá data?",
|
||||||
filmotDescription: 'Prohledávejte YouTube videa pomocí titulků'
|
bullet1text:
|
||||||
},
|
"Kombinací archivovaných dat z doby před oficiálním vypnutím rozhraní API YouTube dislike a extrapolovaného chování uživatelů rozšíření..",
|
||||||
}
|
bullet2: "Proč se neaktualizuje počet disliků?",
|
||||||
|
bullet2text:
|
||||||
|
"V současné době jsou počty disliků videí ukládány do mezipaměti a nejsou příliš často aktualizovány. Jejich aktualizace se liší v závislosti na popularitě videa, ale může trvat od několika hodin do několika dnů.",
|
||||||
|
bullet3: "Jak to funguje?",
|
||||||
|
bullet3text:
|
||||||
|
"Rozšíření načte ID videa, které sledujete, a pomocí našeho rozhraní API získá počet disliků (a další pole, jako jsou zobrazení, lajky atd.). Rozšíření pak na stránce zobrazí počet a poměr disliků. Pokud se vám video líbí nebo nelíbí, je to zaznamenáno a odesláno do databáze, takže lze extrapolovat přesný počet disliků.",
|
||||||
|
bullet4: "Můžu s vámi sdílet počet svých disliků?",
|
||||||
|
bullet4text:
|
||||||
|
"Již brzy. Hledáme způsob, jak použít rozhraní Oauth nebo jiného rozhraní API pouze pro čtení s omezeným rozsahem, aby tvůrci mohli ověřitelně sdílet své počty disliků.",
|
||||||
|
bullet5: "Jaká data sbíráte a jak je s nimi nakládáno?",
|
||||||
|
bullet5text:
|
||||||
|
'Rozšíření shromažďuje pouze údaje, které jsou nezbytně nutné pro jeho správnou funkci, například IP adresu nebo ID sledovaného videa. Žádné z vašich údajů nebudou nikdy prodány třetím stranám. Pokud se chcete dozvědět více o tom, jak se staráme o zabezpečení a ochranu osobních údajů, podívejte se na naši <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">bezpečnostní FAQ</a>.',
|
||||||
|
bullet6: "Jak funguje API/Backend?",
|
||||||
|
bullet6text:
|
||||||
|
"Backend používá archivovaná data z doby, kdy rozhraní YouTube ještě vracelo počet disliků, počty lajků/disliků uživatelů a extrapolaci. V blízké budoucnosti umožníme tvůrcům obsahu snadno a bezpečně odesílat počet disliků a do naší současné databáze přidáme archivovaná data ArchiveTeamu (4,56 miliardy videí). Můžete si také prohlédnout video na toto téma.",
|
||||||
|
bullet7: "Proč počet disliků zobrazuje 'DISLIKES DISABLED'?",
|
||||||
|
bullet7text:
|
||||||
|
"Někdy se u nedávno nahraného videa může zobrazit 'DISLIKES DISABLED' (disliky zakázány), i když je tvůrce nezakázal, což je způsobeno tím, jak zjišťujeme, zda jsou dislike zakázány. Mělo by to samo zmizet během několika hodin nebo tím, že dáte lajk či dislike danému videu.",
|
||||||
|
},
|
||||||
|
donate: {
|
||||||
|
name: "Přispět",
|
||||||
|
subtitle:
|
||||||
|
"Můžete podpořit naše úsilí ponechat internet bezplatný jakýmkoli darem!",
|
||||||
|
},
|
||||||
|
links: {
|
||||||
|
name: "Odkazy",
|
||||||
|
title: "Odkazy projektu",
|
||||||
|
subtitle: "Odkazy na projekt a jeho vývojáře",
|
||||||
|
contact: "Kontaktujte mě",
|
||||||
|
translators: "Překladatelé",
|
||||||
|
coolProjects: "Bezva projekty",
|
||||||
|
sponsorBlockDescription: "Přeskočte reklamy integrované ve videích",
|
||||||
|
filmotDescription: "Prohledávejte YouTube videa pomocí titulků",
|
||||||
|
},
|
||||||
|
};
|
||||||
+113
-98
@@ -1,104 +1,119 @@
|
|||||||
import { en } from 'vuetify/src/locale'
|
import { en } from "vuetify/src/locale";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...en,
|
...en,
|
||||||
home: {
|
home: {
|
||||||
name: 'Home',
|
name: "Home",
|
||||||
title: 'Return YouTube Dislike',
|
title: "Return YouTube Dislike",
|
||||||
subtitle: 'Browser extension and an API that shows you dislikes on Youtube',
|
subtitle: "Browser extension and an API that shows you dislikes on Youtube",
|
||||||
ukraine: 'Support Ukraine',
|
ukraine: "Support Ukraine",
|
||||||
sponsors: 'Sponsors',
|
sponsors: "Sponsors",
|
||||||
|
},
|
||||||
|
install: {
|
||||||
|
name: "Install",
|
||||||
|
title: "Select Your Platform",
|
||||||
|
subtitle: "Available for Firefox and all Chromium browsers",
|
||||||
|
title2: "Other Platforms",
|
||||||
|
subtitle2: "If your browser is not yet supported, try this UserScript",
|
||||||
|
title3: "Third Party Implementations",
|
||||||
|
subtitle3: "No liability on our side, use at your own risk",
|
||||||
|
},
|
||||||
|
api: {
|
||||||
|
name: "API",
|
||||||
|
title: "Welcome to the official RYD docs!",
|
||||||
|
subtitle: "To get started, select a section from the menu.",
|
||||||
|
rights: {
|
||||||
|
title: "Usage Rights",
|
||||||
|
subtitle:
|
||||||
|
"Third party use of this open API is allowed with the following restrictions:",
|
||||||
|
bullet1: "Attribution: ",
|
||||||
|
bullet1text:
|
||||||
|
"This project should be clearly attributed with either a link to this repo or a link to returnyoutubedislike.com",
|
||||||
|
bullet2: "Rate Limiting: ",
|
||||||
|
bullet2text:
|
||||||
|
"There are per client rate limits in place of 100 per minute and 10,000 per day. This will return a 429 status code indicating that your application should back off",
|
||||||
},
|
},
|
||||||
install: {
|
url: {
|
||||||
name: 'Install',
|
title: "URL Information",
|
||||||
title: 'Select Your Platform',
|
subtitle: "The API is accessible over the following base URL: ",
|
||||||
subtitle: 'Available for Firefox and all Chromium browsers',
|
|
||||||
title2: 'Other Platforms',
|
|
||||||
subtitle2: 'If your browser is not yet supported, try this UserScript',
|
|
||||||
title3: 'Third Party Implementations',
|
|
||||||
subtitle3: 'No liability on our side, use at your own risk',
|
|
||||||
},
|
},
|
||||||
api: {
|
endpoints: {
|
||||||
name: 'API',
|
title: "Available Endpoints",
|
||||||
title: 'Welcome to the official RYD docs!',
|
subtitle: "List of available endpoints is available here: ",
|
||||||
subtitle: 'To get started, select a section from the menu.',
|
|
||||||
rights: {
|
|
||||||
title: 'Usage Rights',
|
|
||||||
subtitle: 'Third party use of this open API is allowed with the following restrictions:',
|
|
||||||
bullet1: 'Attribution: ',
|
|
||||||
bullet1text: 'This project should be clearly attributed with either a link to this repo or a link to returnyoutubedislike.com',
|
|
||||||
bullet2: 'Rate Limiting: ',
|
|
||||||
bullet2text: 'There are per client rate limits in place of 100 per minute and 10,000 per day. This will return a 429 status code indicating that your application should back off',
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
title: 'URL Information',
|
|
||||||
subtitle: 'The API is accessible over the following base URL: ',
|
|
||||||
},
|
|
||||||
endpoints: {
|
|
||||||
title: 'Available Endpoints',
|
|
||||||
subtitle: 'List of available endpoints is available here: ',
|
|
||||||
},
|
|
||||||
fetching: {
|
|
||||||
title: 'Basic Fetching Tutorial',
|
|
||||||
subtitle: 'Example to get votes of a given YouTube video ID: ',
|
|
||||||
title2: 'Example Request: ',
|
|
||||||
url: 'Request URL: ',
|
|
||||||
method: 'Request Method: ',
|
|
||||||
headers: 'Headers: ',
|
|
||||||
response: 'Response: ',
|
|
||||||
error1: 'An invalid YouTube ID will return status code 404 "Not Found"',
|
|
||||||
error2: 'An incorrectly formatted YouTube ID will return 400 "Bad Request"'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
help: {
|
fetching: {
|
||||||
name: 'Help',
|
title: "Basic Fetching Tutorial",
|
||||||
title: 'Troubleshooting',
|
subtitle: "Example to get votes of a given YouTube video ID: ",
|
||||||
bullet1: 'Make sure you have latest version of extension installed, ',
|
title2: "Example Request: ",
|
||||||
bullet11: 'right now',
|
url: "Request URL: ",
|
||||||
bullet2: 'Try removing extension and installing it again, then restarting the browser (all active windows, not just one tab)',
|
method: "Request Method: ",
|
||||||
bullet3: 'Make sure that this link opens: ',
|
headers: "Headers: ",
|
||||||
bullet31: 'you should see plain text: ',
|
response: "Response: ",
|
||||||
bullet4: 'If nothing of above helps - report your problem in',
|
error1: 'An invalid YouTube ID will return status code 404 "Not Found"',
|
||||||
bullet41: 'in our',
|
error2:
|
||||||
bullet4a: 'Tell us your Operating System, Browser Name and Browser Version',
|
'An incorrectly formatted YouTube ID will return 400 "Bad Request"',
|
||||||
bullet4b: 'Take screenshot of page with problem (i.e. youtube video page) with console open (press ',
|
|
||||||
bullet4b1: ') - example screenshot below.',
|
|
||||||
bullet4c: 'Take screenshot of extensions page of your browser with extension installed.',
|
|
||||||
bullet4c1: 'To see extensions put this into address bar: ',
|
|
||||||
firefox: 'for Firefox',
|
|
||||||
chrome: 'for Chrome, Edge, Brave, Opera, Vivaldi',
|
|
||||||
},
|
},
|
||||||
faq: {
|
},
|
||||||
name: 'FAQ',
|
help: {
|
||||||
title: 'Frequently Asked Questions',
|
name: "Help",
|
||||||
subtitle: 'Still have questions? Feel free to join our Discord!',
|
title: "Troubleshooting",
|
||||||
bullet1: 'Where does the extension get its data?',
|
bullet1: "Make sure you have latest version of extension installed, ",
|
||||||
bullet1text: 'A combination of archived data from before the offical YouTube dislike API shut down, and extrapolated extension user behavior.',
|
bullet11: "right now",
|
||||||
bullet2: 'Why isn\'t the dislike count updating?',
|
bullet2:
|
||||||
bullet2text: 'Right now video dislikes are cached and they aren\'t updated very frequently. It varies depending on a video\'s popularity but can take anywhere between a few hours and a few days to update.',
|
"Try removing extension and installing it again, then restarting the browser (all active windows, not just one tab)",
|
||||||
bullet3: 'How does this work?',
|
bullet3: "Make sure that this link opens: ",
|
||||||
bullet3text: 'The extension collects the video ID of the video you are watching, and fetches the dislike (and other fields like views, likes etc) using our API. The extension then displays the dislike count and ratio on the page. If you like or dislike a video, that is recorded and sent to the database so an accurate dislike count can be extrapolated.',
|
bullet31: "you should see plain text: ",
|
||||||
bullet4: 'Can I share my dislike count with you?',
|
bullet4: "If nothing of above helps - report your problem in",
|
||||||
bullet4text: 'Coming soon. We are looking into using Oauth or a different read only API with a limited scope so creators can share their dislike counts verifiability.',
|
bullet41: "in our",
|
||||||
bullet5: 'What data do you collect and how is it treated?',
|
bullet4a: "Tell us your Operating System, Browser Name and Browser Version",
|
||||||
bullet5text: 'The extension only collects data that is strictly necessary for it to function properly, such as IP address or ID of the video you\'re watching. None of your data will ever be sold to 3rd parties. If you would like to know more about how we handle security and privacy check out our <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">security FAQ</a>.',
|
bullet4b:
|
||||||
bullet6: 'How does the API/Backend work?',
|
"Take screenshot of page with problem (i.e. youtube video page) with console open (press ",
|
||||||
bullet6text: 'The backend is using archived data from when the youtube api was still returning the dislike count, extension users like/dislike count and extrapolation. In the near future we will be allowing content creators to submit their dislike count easily and safely and we will be adding ArchiveTeam\'s archived data (4.56 billion videos) into our current database. You can also view a video on the topic.',
|
bullet4b1: ") - example screenshot below.",
|
||||||
bullet7: 'Why does the dislike count show \'DISLIKES DISABLED\'?',
|
bullet4c:
|
||||||
bullet7text: 'Sometimes a recently uploaded video might show \'DISLIKES DISABLED\' even if the creator hasn\'t disabled it, this is due to how we are detecting if dislikes are disabled, it should go away in a few hours or by liking or disliking the video and refreshing the page (hopefully).',
|
"Take screenshot of extensions page of your browser with extension installed.",
|
||||||
},
|
bullet4c1: "To see extensions put this into address bar: ",
|
||||||
donate: {
|
firefox: "for Firefox",
|
||||||
name: 'Donate',
|
chrome: "for Chrome, Edge, Brave, Opera, Vivaldi",
|
||||||
subtitle: 'You can support our efforts to keep the internet free with a donation!',
|
},
|
||||||
},
|
faq: {
|
||||||
links: {
|
name: "FAQ",
|
||||||
name: 'Links',
|
title: "Frequently Asked Questions",
|
||||||
title: 'Project Links',
|
subtitle: "Still have questions? Feel free to join our Discord!",
|
||||||
subtitle: 'Links to the project and its developers',
|
bullet1: "Where does the extension get its data?",
|
||||||
contact: 'Contact Me',
|
bullet1text:
|
||||||
translators: 'Translators',
|
"A combination of archived data from before the offical YouTube dislike API shut down, and extrapolated extension user behavior.",
|
||||||
coolProjects: 'Cool Projects',
|
bullet2: "Why isn't the dislike count updating?",
|
||||||
sponsorBlockDescription: 'Skips ads integrated in video',
|
bullet2text:
|
||||||
filmotDescription: 'Search YouTube videos by subtitles'
|
"Right now video dislikes are cached and they aren't updated very frequently. It varies depending on a video's popularity but can take anywhere between a few hours and a few days to update.",
|
||||||
},
|
bullet3: "How does this work?",
|
||||||
}
|
bullet3text:
|
||||||
|
"The extension collects the video ID of the video you are watching, and fetches the dislike (and other fields like views, likes etc) using our API. The extension then displays the dislike count and ratio on the page. If you like or dislike a video, that is recorded and sent to the database so an accurate dislike count can be extrapolated.",
|
||||||
|
bullet4: "Can I share my dislike count with you?",
|
||||||
|
bullet4text:
|
||||||
|
"Coming soon. We are looking into using Oauth or a different read only API with a limited scope so creators can share their dislike counts verifiability.",
|
||||||
|
bullet5: "What data do you collect and how is it treated?",
|
||||||
|
bullet5text:
|
||||||
|
'The extension only collects data that is strictly necessary for it to function properly, such as IP address or ID of the video you\'re watching. None of your data will ever be sold to 3rd parties. If you would like to know more about how we handle security and privacy check out our <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">security FAQ</a>.',
|
||||||
|
bullet6: "How does the API/Backend work?",
|
||||||
|
bullet6text:
|
||||||
|
"The backend is using archived data from when the youtube api was still returning the dislike count, extension users like/dislike count and extrapolation. In the near future we will be allowing content creators to submit their dislike count easily and safely and we will be adding ArchiveTeam's archived data (4.56 billion videos) into our current database. You can also view a video on the topic.",
|
||||||
|
bullet7: "Why does the dislike count show 'DISLIKES DISABLED'?",
|
||||||
|
bullet7text:
|
||||||
|
"Sometimes a recently uploaded video might show 'DISLIKES DISABLED' even if the creator hasn't disabled it, this is due to how we are detecting if dislikes are disabled, it should go away in a few hours or by liking or disliking the video and refreshing the page (hopefully).",
|
||||||
|
},
|
||||||
|
donate: {
|
||||||
|
name: "Donate",
|
||||||
|
subtitle:
|
||||||
|
"You can support our efforts to keep the internet free with a donation!",
|
||||||
|
},
|
||||||
|
links: {
|
||||||
|
name: "Links",
|
||||||
|
title: "Project Links",
|
||||||
|
subtitle: "Links to the project and its developers",
|
||||||
|
contact: "Contact Me",
|
||||||
|
translators: "Translators",
|
||||||
|
coolProjects: "Cool Projects",
|
||||||
|
sponsorBlockDescription: "Skips ads integrated in video",
|
||||||
|
filmotDescription: "Search YouTube videos by subtitles",
|
||||||
|
},
|
||||||
|
};
|
||||||
+122
-98
@@ -1,104 +1,128 @@
|
|||||||
import { es } from 'vuetify/src/locale'
|
import { es } from "vuetify/src/locale";
|
||||||
// By Alejandro Gayol
|
// By Alejandro Gayol
|
||||||
export default {
|
export default {
|
||||||
...es,
|
...es,
|
||||||
home: {
|
home: {
|
||||||
name: 'Inicio',
|
name: "Inicio",
|
||||||
title: 'Return YouTube Dislike',
|
title: "Return YouTube Dislike",
|
||||||
subtitle: 'Una extensión de navegador y una API que muestra el número de «dislikes» («No me gusta») en YouTube',
|
subtitle:
|
||||||
ukraine: 'Apoya a Ucrania',
|
"Una extensión de navegador y una API que muestra el número de «dislikes» («No me gusta») en YouTube",
|
||||||
sponsors: 'Patrocinadores',
|
ukraine: "Apoya a Ucrania",
|
||||||
|
sponsors: "Patrocinadores",
|
||||||
|
},
|
||||||
|
install: {
|
||||||
|
name: "Instalación",
|
||||||
|
title: "Elige tu plataforma",
|
||||||
|
subtitle: "Disponible para Firefox y todos los navegadores Chromium",
|
||||||
|
title2: "Otras plataformas",
|
||||||
|
subtitle2: "Si tu navegador aún no es compatible, usa este UserScript",
|
||||||
|
title3: "Implementaciones de terceros",
|
||||||
|
subtitle3: "No nos hacemos responsables, úsalas bajo tu cuenta y riesgo",
|
||||||
|
},
|
||||||
|
api: {
|
||||||
|
name: "API",
|
||||||
|
title: "¡Te damos la bienvenida a la documentación oficial de RYD!",
|
||||||
|
subtitle: "Para empezar, elige una sección del menú.",
|
||||||
|
rights: {
|
||||||
|
title: "Derechos de uso",
|
||||||
|
subtitle:
|
||||||
|
"Se permite el uso de terceros de esta API abierta bajo las siguientes restricciones: ",
|
||||||
|
bullet1: "Atribución: ",
|
||||||
|
bullet1text:
|
||||||
|
"El proyecto debe estar claramente atribuido con un enlace a este repositorio o a returnyoutubedislike.com",
|
||||||
|
bullet2: "Límites de velocidad: ",
|
||||||
|
bullet2text:
|
||||||
|
"Hay límites de velocidad por cliente de 100 solicitudes por minuto y 10.000 al día. Al excederlos se mostrará un código de estado *429*, indicando que tu aplicación debe bajar la velocidad.",
|
||||||
},
|
},
|
||||||
install: {
|
url: {
|
||||||
name: 'Instalación',
|
title: "Información de URL",
|
||||||
title: 'Elige tu plataforma',
|
subtitle: "Esta API es accesible a través de la siguiente URL base: ",
|
||||||
subtitle: 'Disponible para Firefox y todos los navegadores Chromium',
|
|
||||||
title2: 'Otras plataformas',
|
|
||||||
subtitle2: 'Si tu navegador aún no es compatible, usa este UserScript',
|
|
||||||
title3: 'Implementaciones de terceros',
|
|
||||||
subtitle3: 'No nos hacemos responsables, úsalas bajo tu cuenta y riesgo',
|
|
||||||
},
|
},
|
||||||
api: {
|
endpoints: {
|
||||||
name: 'API',
|
title: "«Endpoints» disponibles",
|
||||||
title: '¡Te damos la bienvenida a la documentación oficial de RYD!',
|
subtitle:
|
||||||
subtitle: 'Para empezar, elige una sección del menú.',
|
"La lista de los endpoints disponibles se puede consultar aquí: ",
|
||||||
rights: {
|
|
||||||
title: 'Derechos de uso',
|
|
||||||
subtitle: 'Se permite el uso de terceros de esta API abierta bajo las siguientes restricciones: ',
|
|
||||||
bullet1: 'Atribución: ',
|
|
||||||
bullet1text: 'El proyecto debe estar claramente atribuido con un enlace a este repositorio o a returnyoutubedislike.com',
|
|
||||||
bullet2: 'Límites de velocidad: ',
|
|
||||||
bullet2text: 'Hay límites de velocidad por cliente de 100 solicitudes por minuto y 10.000 al día. Al excederlos se mostrará un código de estado *429*, indicando que tu aplicación debe bajar la velocidad.',
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
title: 'Información de URL',
|
|
||||||
subtitle: 'Esta API es accesible a través de la siguiente URL base: ',
|
|
||||||
},
|
|
||||||
endpoints: {
|
|
||||||
title: '«Endpoints» disponibles',
|
|
||||||
subtitle: 'La lista de los endpoints disponibles se puede consultar aquí: ',
|
|
||||||
},
|
|
||||||
fetching: {
|
|
||||||
title: 'Tutorial de consulta básica',
|
|
||||||
subtitle: 'Ejemplo para obtener los votos del ID de un vídeo de YouTube: ',
|
|
||||||
title2: 'Consulta de ejemplo: ',
|
|
||||||
url: 'URL de la consulta: ',
|
|
||||||
method: 'Método de la consulta: ',
|
|
||||||
headers: 'Encabezados: ',
|
|
||||||
response: 'Respuesta: ',
|
|
||||||
error1: 'Un ID de YouTube no existente mostrará el código de estado 404 "Not Found" (no encontrado).',
|
|
||||||
error2: 'Un ID de YouTube mal estructurado mostrará el código 400 "Bad Request" (solicitud incorrecta).'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
help: {
|
fetching: {
|
||||||
name: 'Ayuda',
|
title: "Tutorial de consulta básica",
|
||||||
title: 'Solución de problemas',
|
subtitle:
|
||||||
bullet1: 'Asegúrate de que tienes instalada la última versión de la extensión, ',
|
"Ejemplo para obtener los votos del ID de un vídeo de YouTube: ",
|
||||||
bullet11: '',
|
title2: "Consulta de ejemplo: ",
|
||||||
bullet2: 'Prueba a eliminar la extensión e instalarla de nuevo, después reinicia el navegador (todas las ventanas activas, no solo una pestaña)',
|
url: "URL de la consulta: ",
|
||||||
bullet3: 'Comprueba que puedes abrir este enlace: ',
|
method: "Método de la consulta: ",
|
||||||
bullet31: 'deberías ver este texto: ',
|
headers: "Encabezados: ",
|
||||||
bullet4: 'Si nada de esto surte efecto, informa de tu problema (en inglés) en el canal',
|
response: "Respuesta: ",
|
||||||
bullet41: 'de nuestro',
|
error1:
|
||||||
bullet4a: 'Dinos cuáles son tu sistema operativo, el nombre y la versión de tu navegador',
|
'Un ID de YouTube no existente mostrará el código de estado 404 "Not Found" (no encontrado).',
|
||||||
bullet4b: 'Haz una captura de pantalla de la página que contenga el problema (como una página de un vídeo de YouTube) con la consola abierta (pulsa ',
|
error2:
|
||||||
bullet4b1: '). Aquí puedes ver una captura de pantalla de ejemplo:',
|
'Un ID de YouTube mal estructurado mostrará el código 400 "Bad Request" (solicitud incorrecta).',
|
||||||
bullet4c: 'Haz una captura de la página de extensiones de tu navegador con la extensión instalada.',
|
|
||||||
bullet4c1: 'Para ver las extensiones, escribe el siguiente texto en la barra de dirección: ',
|
|
||||||
firefox: 'para Firefox',
|
|
||||||
chrome: 'para Chrome, Edge, Brave, Opera, Vivaldi',
|
|
||||||
},
|
},
|
||||||
faq: {
|
},
|
||||||
name: 'Preguntas',
|
help: {
|
||||||
title: 'Preguntas más frecuentes',
|
name: "Ayuda",
|
||||||
subtitle: '¿Sigues teniendo problemas? ¡Pásate por nuestro servidor de Discord (en inglés)!',
|
title: "Solución de problemas",
|
||||||
bullet1: '¿De dónde obtiene sus datos la extensión?',
|
bullet1:
|
||||||
bullet1text: 'De una combinación de datos archivados antes de que la API oficial de «dislikes» de YouTube se apagase, extrapolada con las acciones realizadas por los usuarios de la extensión.',
|
"Asegúrate de que tienes instalada la última versión de la extensión, ",
|
||||||
bullet2: '¿Por qué no se actualiza el contador de «dislikes»?',
|
bullet11: "",
|
||||||
bullet2text: 'En la actualidad, las cuentas de «dislikes» se almacenan en una caché y no se actualizan con frecuencia. Esta frecuencia varía dependiendo de la popularidad de un vídeo, pero puede tardar entre unas pocas horas y unos pocos días en actualizarse.',
|
bullet2:
|
||||||
bullet3: '¿Cómo funciona la extensión?',
|
"Prueba a eliminar la extensión e instalarla de nuevo, después reinicia el navegador (todas las ventanas activas, no solo una pestaña)",
|
||||||
bullet3text: 'La extensión lee el ID del vídeo que estés viendo y carga la cifra de «dislikes» (y otras estadísticas, como visitas, «likes», etc.) a través de nuestra API. Después la extensión muestra el número de «dislikes» y la proporción de «likes»/«dislikes» en la página. Si utilizas los botones de «Me gusta» o «No me gusta» de un vídeo, esa información se guardará y enviará a la base de datos con la que se podrá extrapolar una cuenta de «dislikes» más precisa.',
|
bullet3: "Comprueba que puedes abrir este enlace: ",
|
||||||
bullet4: '¿Puedo compartir mi contador de «dislikes» con vosotros?',
|
bullet31: "deberías ver este texto: ",
|
||||||
bullet4text: 'Próximamente. Estamos investigando en usar Oauth u otra API de solo lectura con alcance limitado para que los creadores puedan compartir sus contadores de «dislikes» verificablemente.',
|
bullet4:
|
||||||
bullet5: '¿Qué datos almacenáis y cómo son guardados?',
|
"Si nada de esto surte efecto, informa de tu problema (en inglés) en el canal",
|
||||||
bullet5text: 'La extensión almacena únicamente aquellos datos estrictamente necesarios para su buen funcionamiento, cómo la dirección IP o el ID del vídeo que estés viendo. Tus datos nunca serán vendidos a terceros. Si quieres saber más sobre nuestras políticas de seguridad y privacidad, consulta nuestro <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">documento de preguntas frecuentes sobre seguridad</a>.',
|
bullet41: "de nuestro",
|
||||||
bullet6: '¿Cómo funciona la API y el «backend»?',
|
bullet4a:
|
||||||
bullet6text: 'El «backend» utiliza datos archivados de cuando la API de YouTube seguía proporcionando el contador de «dislikes», los votos de usuarios de la extensión y su extrapolación. En un futuro cercano permitiremos que los creadores de contenido puedan proporcionar sus cifras de «dislikes» de forma fácil y segura, e incorporaremos los datos archivados de ArchiveTeam (4.560 millones de vídeos) en nuestra base de datos. También puedes ver un vídeo al respecto.',
|
"Dinos cuáles son tu sistema operativo, el nombre y la versión de tu navegador",
|
||||||
bullet7: '¿Porque el contador de «dislikes» dice «DISLIKES DESACTIVADOS»?',
|
bullet4b:
|
||||||
bullet7text: 'En ocasiones, un vídeo subido recientemente puede mostrar «DISLIKES DESACTIVADOS» aunque su creador no los haya desactivado, esto se debe a la forma en que detectamos si los «dislikes» están desactivados. El mensaje debería desaparecer en unas horas o al darle «like» o «dislike» al vídeo y actualizar la página (con suerte).',
|
"Haz una captura de pantalla de la página que contenga el problema (como una página de un vídeo de YouTube) con la consola abierta (pulsa ",
|
||||||
},
|
bullet4b1: "). Aquí puedes ver una captura de pantalla de ejemplo:",
|
||||||
donate: {
|
bullet4c:
|
||||||
name: 'Donar',
|
"Haz una captura de la página de extensiones de tu navegador con la extensión instalada.",
|
||||||
subtitle: '¡Puedes apoyar nuestros esfuerzos para que Internet siga siendo con un donativo!',
|
bullet4c1:
|
||||||
},
|
"Para ver las extensiones, escribe el siguiente texto en la barra de dirección: ",
|
||||||
links: {
|
firefox: "para Firefox",
|
||||||
name: 'Enlaces',
|
chrome: "para Chrome, Edge, Brave, Opera, Vivaldi",
|
||||||
title: 'Enlaces del proyecto',
|
},
|
||||||
subtitle: 'Enlaces del proyecto y sus desarrolladores',
|
faq: {
|
||||||
contact: 'Contacto',
|
name: "Preguntas",
|
||||||
translators: 'Traductores',
|
title: "Preguntas más frecuentes",
|
||||||
coolProjects: 'Proyectos interesantes',
|
subtitle:
|
||||||
sponsorBlockDescription: 'Omite los anuncios integrados en vídeos',
|
"¿Sigues teniendo problemas? ¡Pásate por nuestro servidor de Discord (en inglés)!",
|
||||||
filmotDescription: 'Busca vídeos de YouTube a través de sus subtítulos'
|
bullet1: "¿De dónde obtiene sus datos la extensión?",
|
||||||
},
|
bullet1text:
|
||||||
}
|
"De una combinación de datos archivados antes de que la API oficial de «dislikes» de YouTube se apagase, extrapolada con las acciones realizadas por los usuarios de la extensión.",
|
||||||
|
bullet2: "¿Por qué no se actualiza el contador de «dislikes»?",
|
||||||
|
bullet2text:
|
||||||
|
"En la actualidad, las cuentas de «dislikes» se almacenan en una caché y no se actualizan con frecuencia. Esta frecuencia varía dependiendo de la popularidad de un vídeo, pero puede tardar entre unas pocas horas y unos pocos días en actualizarse.",
|
||||||
|
bullet3: "¿Cómo funciona la extensión?",
|
||||||
|
bullet3text:
|
||||||
|
"La extensión lee el ID del vídeo que estés viendo y carga la cifra de «dislikes» (y otras estadísticas, como visitas, «likes», etc.) a través de nuestra API. Después la extensión muestra el número de «dislikes» y la proporción de «likes»/«dislikes» en la página. Si utilizas los botones de «Me gusta» o «No me gusta» de un vídeo, esa información se guardará y enviará a la base de datos con la que se podrá extrapolar una cuenta de «dislikes» más precisa.",
|
||||||
|
bullet4: "¿Puedo compartir mi contador de «dislikes» con vosotros?",
|
||||||
|
bullet4text:
|
||||||
|
"Próximamente. Estamos investigando en usar Oauth u otra API de solo lectura con alcance limitado para que los creadores puedan compartir sus contadores de «dislikes» verificablemente.",
|
||||||
|
bullet5: "¿Qué datos almacenáis y cómo son guardados?",
|
||||||
|
bullet5text:
|
||||||
|
'La extensión almacena únicamente aquellos datos estrictamente necesarios para su buen funcionamiento, cómo la dirección IP o el ID del vídeo que estés viendo. Tus datos nunca serán vendidos a terceros. Si quieres saber más sobre nuestras políticas de seguridad y privacidad, consulta nuestro <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">documento de preguntas frecuentes sobre seguridad</a>.',
|
||||||
|
bullet6: "¿Cómo funciona la API y el «backend»?",
|
||||||
|
bullet6text:
|
||||||
|
"El «backend» utiliza datos archivados de cuando la API de YouTube seguía proporcionando el contador de «dislikes», los votos de usuarios de la extensión y su extrapolación. En un futuro cercano permitiremos que los creadores de contenido puedan proporcionar sus cifras de «dislikes» de forma fácil y segura, e incorporaremos los datos archivados de ArchiveTeam (4.560 millones de vídeos) en nuestra base de datos. También puedes ver un vídeo al respecto.",
|
||||||
|
bullet7: "¿Porque el contador de «dislikes» dice «DISLIKES DESACTIVADOS»?",
|
||||||
|
bullet7text:
|
||||||
|
"En ocasiones, un vídeo subido recientemente puede mostrar «DISLIKES DESACTIVADOS» aunque su creador no los haya desactivado, esto se debe a la forma en que detectamos si los «dislikes» están desactivados. El mensaje debería desaparecer en unas horas o al darle «like» o «dislike» al vídeo y actualizar la página (con suerte).",
|
||||||
|
},
|
||||||
|
donate: {
|
||||||
|
name: "Donar",
|
||||||
|
subtitle:
|
||||||
|
"¡Puedes apoyar nuestros esfuerzos para que Internet siga siendo con un donativo!",
|
||||||
|
},
|
||||||
|
links: {
|
||||||
|
name: "Enlaces",
|
||||||
|
title: "Enlaces del proyecto",
|
||||||
|
subtitle: "Enlaces del proyecto y sus desarrolladores",
|
||||||
|
contact: "Contacto",
|
||||||
|
translators: "Traductores",
|
||||||
|
coolProjects: "Proyectos interesantes",
|
||||||
|
sponsorBlockDescription: "Omite los anuncios integrados en vídeos",
|
||||||
|
filmotDescription: "Busca vídeos de YouTube a través de sus subtítulos",
|
||||||
|
},
|
||||||
|
};
|
||||||
+125
-98
@@ -1,104 +1,131 @@
|
|||||||
import { fr } from 'vuetify/src/locale'
|
import { fr } from "vuetify/src/locale";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
...fr,
|
...fr,
|
||||||
home: {
|
home: {
|
||||||
name: 'Accueil',
|
name: "Accueil",
|
||||||
title: 'Return YouTube Dislike',
|
title: "Return YouTube Dislike",
|
||||||
subtitle: 'Une extension de navigateur et une API qui vous montre les dislike sur Youtube',
|
subtitle:
|
||||||
ukraine: 'Soutenir l\'Ukraine',
|
"Une extension de navigateur et une API qui vous montre les dislike sur Youtube",
|
||||||
sponsors: 'Sponsors',
|
ukraine: "Soutenir l'Ukraine",
|
||||||
|
sponsors: "Sponsors",
|
||||||
|
},
|
||||||
|
install: {
|
||||||
|
name: "Installer",
|
||||||
|
title: "Choisissez votre Plateforme",
|
||||||
|
subtitle: "Disponible pour Firefox et tous les navigateurs Chromium",
|
||||||
|
title2: "Autres platesformes",
|
||||||
|
subtitle2:
|
||||||
|
"Si votre navigateur n'est pas encore pris en charge, essayez ce UserScript",
|
||||||
|
title3: "Implémentations par des tiers",
|
||||||
|
subtitle3:
|
||||||
|
"Aucune responsabilité de notre part, à utiliser à vos risques et périls.",
|
||||||
|
},
|
||||||
|
api: {
|
||||||
|
name: "API",
|
||||||
|
title: "Bienvenue sur la documentation officiel de RYD !",
|
||||||
|
subtitle: "Pour commencer, sélectionnez une section dans le menu.",
|
||||||
|
rights: {
|
||||||
|
title: "Droits d'utilisation",
|
||||||
|
subtitle:
|
||||||
|
"L'utilisation par des tiers de cette API ouverte est autorisée avec les restrictions suivantes : ",
|
||||||
|
bullet1: "Attribution: ",
|
||||||
|
bullet1text:
|
||||||
|
"Ce projet doit être clairement nommé avec un lien vers soit vers GitHub soit vers returnyoutubedislike.com",
|
||||||
|
bullet2: "Limites des requêtes",
|
||||||
|
bullet2text:
|
||||||
|
"Il y a des limites de requêtes par client en place qui sont de 100 requêtes par minute et 10 000 par jour. Nous renverrons un code d'erreur 429 indiquant que votre application devrait se calmer.",
|
||||||
},
|
},
|
||||||
install: {
|
url: {
|
||||||
name: 'Installer',
|
title: "Information sur l'URL",
|
||||||
title: 'Choisissez votre Plateforme',
|
subtitle: "L'API est accesible via l'URL de base suivante : ",
|
||||||
subtitle: 'Disponible pour Firefox et tous les navigateurs Chromium',
|
|
||||||
title2: 'Autres platesformes',
|
|
||||||
subtitle2: 'Si votre navigateur n\'est pas encore pris en charge, essayez ce UserScript',
|
|
||||||
title3: 'Implémentations par des tiers',
|
|
||||||
subtitle3: 'Aucune responsabilité de notre part, à utiliser à vos risques et périls.',
|
|
||||||
},
|
},
|
||||||
api: {
|
endpoints: {
|
||||||
name: 'API',
|
title: "Endpoints disponibles",
|
||||||
title: 'Bienvenue sur la documentation officiel de RYD !',
|
subtitle: "La liste des endpoints disponibles est accesible ici : ",
|
||||||
subtitle: 'Pour commencer, sélectionnez une section dans le menu.',
|
|
||||||
rights: {
|
|
||||||
title: 'Droits d\'utilisation',
|
|
||||||
subtitle: 'L\'utilisation par des tiers de cette API ouverte est autorisée avec les restrictions suivantes : ',
|
|
||||||
bullet1: 'Attribution: ',
|
|
||||||
bullet1text: 'Ce projet doit être clairement nommé avec un lien vers soit vers GitHub soit vers returnyoutubedislike.com',
|
|
||||||
bullet2: 'Limites des requêtes',
|
|
||||||
bullet2text: 'Il y a des limites de requêtes par client en place qui sont de 100 requêtes par minute et 10 000 par jour. Nous renverrons un code d\'erreur 429 indiquant que votre application devrait se calmer.',
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
title: 'Information sur l\'URL',
|
|
||||||
subtitle: 'L\'API est accesible via l\'URL de base suivante : ',
|
|
||||||
},
|
|
||||||
endpoints: {
|
|
||||||
title: 'Endpoints disponibles',
|
|
||||||
subtitle: 'La liste des endpoints disponibles est accesible ici : ',
|
|
||||||
},
|
|
||||||
fetching: {
|
|
||||||
title: 'Tutoriel de base sur la récupération des données',
|
|
||||||
subtitle: 'Exemple pour obtenir les likes d\'une vidéo YouTube avec un ID donné : ',
|
|
||||||
title2: 'Example de requête : ',
|
|
||||||
url: 'URL de la requête : ',
|
|
||||||
method: 'Mode de requête : ',
|
|
||||||
headers: 'En-têtes (headers) : ',
|
|
||||||
response: 'Réponse : ',
|
|
||||||
error1: 'Si aucunne vidéo YouTube à cet ID, il sera retourner le code d\'erreur 404 "Not Found"',
|
|
||||||
error2: 'Un ID YouTube invilide renverra *400* "Bad Request"'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
help: {
|
fetching: {
|
||||||
name: 'Aide',
|
title: "Tutoriel de base sur la récupération des données",
|
||||||
title: 'Dépannage',
|
subtitle:
|
||||||
bullet1: 'Assurez-vous que la dernière version de l\'extension est installée, ',
|
"Exemple pour obtenir les likes d'une vidéo YouTube avec un ID donné : ",
|
||||||
bullet11: 'à l\'heure actuelle',
|
title2: "Example de requête : ",
|
||||||
bullet2: 'Essayez de supprimer l\'extension et de la réinstaller, puis redémarrez le navigateur (toutes les fenêtres actives, pas seulement un onglet).',
|
url: "URL de la requête : ",
|
||||||
bullet3: 'Assurez-vous que ce lien s\'ouvre : ',
|
method: "Mode de requête : ",
|
||||||
bullet31: 'vous devriez voir du texte brut : ',
|
headers: "En-têtes (headers) : ",
|
||||||
bullet4: 'Si rien de ce qui précède ne vous aide, signalez votre problème sur',
|
response: "Réponse : ",
|
||||||
bullet41: 'ou sur notre',
|
error1:
|
||||||
bullet4a: 'Indiquez-nous votre système d\'exploitation ansi que le nom et la version de votre navigateur',
|
'Si aucunne vidéo YouTube à cet ID, il sera retourner le code d\'erreur 404 "Not Found"',
|
||||||
bullet4b: 'Faites une capture d\'écran de la page présentant le problème (par exemple, la page de la vidéo youtube) avec la console ouverte (appuyez sur ',
|
error2: 'Un ID YouTube invilide renverra *400* "Bad Request"',
|
||||||
bullet4b1: ') - exemple de capture d\'écran ci-dessous.',
|
|
||||||
bullet4c: 'Faites une capture d\'écran de la page des extensions de votre navigateur avec les extension installée.',
|
|
||||||
bullet4c1: 'Pour voir les extensions, mettez ceci dans la barre d\'adresse : ',
|
|
||||||
firefox: 'pour Firefox',
|
|
||||||
chrome: 'pour Chromium (Chrome, Edge, Brave, Opera, Vivaldi...)',
|
|
||||||
},
|
},
|
||||||
faq: {
|
},
|
||||||
name: 'FAQ',
|
help: {
|
||||||
title: 'Foire Aux Questions',
|
name: "Aide",
|
||||||
subtitle: 'Vous avez encore des questions ? N\'hésitez pas à rejoindre notre Discord (en anglais) !',
|
title: "Dépannage",
|
||||||
bullet1: 'Où l\'extension obtient-elle ses données ?',
|
bullet1:
|
||||||
bullet1text: 'Une combinaison de données archivées datant d\'avant la fermeture de l\'API officielle de YouTube pour les dislikes, et d\'extrapolation du comportement des utilisateurs.',
|
"Assurez-vous que la dernière version de l'extension est installée, ",
|
||||||
bullet2: 'Pourquoi le nombre de dislike n\'est-il pas mis à jour ?',
|
bullet11: "à l'heure actuelle",
|
||||||
bullet2text: 'Actuellement, les dislike des vidéos sont mis en cache et ne sont pas mis à jour très fréquemment. La mise à jour varie en fonction de la popularité de la vidéo, mais peut prendre entre quelques heures et quelques jours.',
|
bullet2:
|
||||||
bullet3: 'Comment cela fonctionne-t-il ?',
|
"Essayez de supprimer l'extension et de la réinstaller, puis redémarrez le navigateur (toutes les fenêtres actives, pas seulement un onglet).",
|
||||||
bullet3text: 'L\'extension collecte l\'ID de la vidéo que vous regardez, récupère les dislike (et d\'autres champs comme les vues, les likes, etc.) en utilisant notre API. L\'extension affiche ensuite le nombre de dislike et le ratio sur la page. Si vous liker ou disliker une vidéo, cela est enregistré et envoyé à la base de données afin qu\'un nombre précis de dislikes puisse être extrapolé.',
|
bullet3: "Assurez-vous que ce lien s'ouvre : ",
|
||||||
bullet4: 'Puis-je partager mon compte de dislike avec vous ?',
|
bullet31: "vous devriez voir du texte brut : ",
|
||||||
bullet4text: 'Prochainement. Nous envisageons d\'utiliser Oauth ou une autre API en lecture seule avec un champ d\'application limité afin que les créateurs puissent partager leurs compteurs de dislikes de manière vérifiable.',
|
bullet4:
|
||||||
bullet5: 'Quelles sont les données que vous collectez et comment sont-elles traitées ?',
|
"Si rien de ce qui précède ne vous aide, signalez votre problème sur",
|
||||||
bullet5text: 'L\'extension ne collecte que les données strictement nécessaires à son bon fonctionnement, comme l\'adresse IP ou l\'ID de la vidéo que vous regardez. Aucune de vos données ne sera jamais vendue à des tiers. Si vous souhaitez en savoir plus sur la manière dont nous gérons la sécurité et la confidentialité, consultez notre <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQfr.md">FAQ sur la sécurité</a>.',
|
bullet41: "ou sur notre",
|
||||||
bullet6: 'Comment fonctionne l\'API / le Backend ?',
|
bullet4a:
|
||||||
bullet6text: 'Le backend utilise des données archivées de l\'époque où l\'API Youtube renvoyait encore le nombre de dislike, il utilise aussi le nombre de like/dislike des utilisateurs de l\'extension et une extrapolation. Dans un avenir proche, nous allons permettre aux créateurs de contenu de soumettre leurs nombres de dislike facilement et en toute sécurité et nous allons ajouter les données archivées d\'ArchiveTeam (4,56 milliards de vidéos) à notre base de données actuelle. Vous pouvez également visionner une vidéo sur le sujet.',
|
"Indiquez-nous votre système d'exploitation ansi que le nom et la version de votre navigateur",
|
||||||
bullet7: 'Pourquoi le compteur de dislike affiche-t-il "Désactivé par le créateur" ?',
|
bullet4b:
|
||||||
bullet7text: 'Parfois, une vidéo récemment publiée peut afficher "Désactivé par le créateur" même si le créateur ne l\'a pas désactivé. Cela est dû à la façon dont nous détectons si les dislikes sont désactivés, cela devrait disparaître dans quelques heures ou en likant ou en dislikant la vidéo et en rafraîchissant la page (avec un peu de chance).',
|
"Faites une capture d'écran de la page présentant le problème (par exemple, la page de la vidéo youtube) avec la console ouverte (appuyez sur ",
|
||||||
},
|
bullet4b1: ") - exemple de capture d'écran ci-dessous.",
|
||||||
donate: {
|
bullet4c:
|
||||||
name: 'Donner',
|
"Faites une capture d'écran de la page des extensions de votre navigateur avec les extension installée.",
|
||||||
subtitle: 'Vous pouvez soutenir nos efforts pour que l\'internet reste libre en faisant un don !',
|
bullet4c1:
|
||||||
},
|
"Pour voir les extensions, mettez ceci dans la barre d'adresse : ",
|
||||||
links: {
|
firefox: "pour Firefox",
|
||||||
name: 'Liens',
|
chrome: "pour Chromium (Chrome, Edge, Brave, Opera, Vivaldi...)",
|
||||||
title: 'Liens du Projet',
|
},
|
||||||
subtitle: 'Liens vers le projet et ses développeurs',
|
faq: {
|
||||||
contact: 'Contactez-moi',
|
name: "FAQ",
|
||||||
translators: 'Traducteurs',
|
title: "Foire Aux Questions",
|
||||||
coolProjects: 'Projets Cool',
|
subtitle:
|
||||||
sponsorBlockDescription: 'Ignorer les publicités intégrées (sponso) dans la vidéo',
|
"Vous avez encore des questions ? N'hésitez pas à rejoindre notre Discord (en anglais) !",
|
||||||
filmotDescription: 'Rechercher des vidéos YouTube par sous-titres'
|
bullet1: "Où l'extension obtient-elle ses données ?",
|
||||||
},
|
bullet1text:
|
||||||
}
|
"Une combinaison de données archivées datant d'avant la fermeture de l'API officielle de YouTube pour les dislikes, et d'extrapolation du comportement des utilisateurs.",
|
||||||
|
bullet2: "Pourquoi le nombre de dislike n'est-il pas mis à jour ?",
|
||||||
|
bullet2text:
|
||||||
|
"Actuellement, les dislike des vidéos sont mis en cache et ne sont pas mis à jour très fréquemment. La mise à jour varie en fonction de la popularité de la vidéo, mais peut prendre entre quelques heures et quelques jours.",
|
||||||
|
bullet3: "Comment cela fonctionne-t-il ?",
|
||||||
|
bullet3text:
|
||||||
|
"L'extension collecte l'ID de la vidéo que vous regardez, récupère les dislike (et d'autres champs comme les vues, les likes, etc.) en utilisant notre API. L'extension affiche ensuite le nombre de dislike et le ratio sur la page. Si vous liker ou disliker une vidéo, cela est enregistré et envoyé à la base de données afin qu'un nombre précis de dislikes puisse être extrapolé.",
|
||||||
|
bullet4: "Puis-je partager mon compte de dislike avec vous ?",
|
||||||
|
bullet4text:
|
||||||
|
"Prochainement. Nous envisageons d'utiliser Oauth ou une autre API en lecture seule avec un champ d'application limité afin que les créateurs puissent partager leurs compteurs de dislikes de manière vérifiable.",
|
||||||
|
bullet5:
|
||||||
|
"Quelles sont les données que vous collectez et comment sont-elles traitées ?",
|
||||||
|
bullet5text:
|
||||||
|
"L'extension ne collecte que les données strictement nécessaires à son bon fonctionnement, comme l'adresse IP ou l'ID de la vidéo que vous regardez. Aucune de vos données ne sera jamais vendue à des tiers. Si vous souhaitez en savoir plus sur la manière dont nous gérons la sécurité et la confidentialité, consultez notre <a href=\"https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQfr.md\">FAQ sur la sécurité</a>.",
|
||||||
|
bullet6: "Comment fonctionne l'API / le Backend ?",
|
||||||
|
bullet6text:
|
||||||
|
"Le backend utilise des données archivées de l'époque où l'API Youtube renvoyait encore le nombre de dislike, il utilise aussi le nombre de like/dislike des utilisateurs de l'extension et une extrapolation. Dans un avenir proche, nous allons permettre aux créateurs de contenu de soumettre leurs nombres de dislike facilement et en toute sécurité et nous allons ajouter les données archivées d'ArchiveTeam (4,56 milliards de vidéos) à notre base de données actuelle. Vous pouvez également visionner une vidéo sur le sujet.",
|
||||||
|
bullet7:
|
||||||
|
'Pourquoi le compteur de dislike affiche-t-il "Désactivé par le créateur" ?',
|
||||||
|
bullet7text:
|
||||||
|
'Parfois, une vidéo récemment publiée peut afficher "Désactivé par le créateur" même si le créateur ne l\'a pas désactivé. Cela est dû à la façon dont nous détectons si les dislikes sont désactivés, cela devrait disparaître dans quelques heures ou en likant ou en dislikant la vidéo et en rafraîchissant la page (avec un peu de chance).',
|
||||||
|
},
|
||||||
|
donate: {
|
||||||
|
name: "Donner",
|
||||||
|
subtitle:
|
||||||
|
"Vous pouvez soutenir nos efforts pour que l'internet reste libre en faisant un don !",
|
||||||
|
},
|
||||||
|
links: {
|
||||||
|
name: "Liens",
|
||||||
|
title: "Liens du Projet",
|
||||||
|
subtitle: "Liens vers le projet et ses développeurs",
|
||||||
|
contact: "Contactez-moi",
|
||||||
|
translators: "Traducteurs",
|
||||||
|
coolProjects: "Projets Cool",
|
||||||
|
sponsorBlockDescription:
|
||||||
|
"Ignorer les publicités intégrées (sponso) dans la vidéo",
|
||||||
|
filmotDescription: "Rechercher des vidéos YouTube par sous-titres",
|
||||||
|
},
|
||||||
|
};
|
||||||
+121
-97
@@ -1,103 +1,127 @@
|
|||||||
import { ru } from 'vuetify/src/locale'
|
import { ru } from "vuetify/src/locale";
|
||||||
// By Nikita Krupin
|
// By Nikita Krupin
|
||||||
export default {
|
export default {
|
||||||
...ru,
|
...ru,
|
||||||
home: {
|
home: {
|
||||||
name: 'Главная',
|
name: "Главная",
|
||||||
title: 'Вернуть YouTube дизлайки',
|
title: "Вернуть YouTube дизлайки",
|
||||||
subtitle: 'Расширение для браузера и API, которые показывают вам отметки «Не нравится» в Youtube',
|
subtitle:
|
||||||
ukraine: 'Поддержите Украину',
|
"Расширение для браузера и API, которые показывают вам отметки «Не нравится» в Youtube",
|
||||||
sponsors: 'Спонсоры',
|
ukraine: "Поддержите Украину",
|
||||||
|
sponsors: "Спонсоры",
|
||||||
|
},
|
||||||
|
install: {
|
||||||
|
name: "Скачать",
|
||||||
|
title: "Выберите свою платформу",
|
||||||
|
subtitle: "Доступно в Firefox и во всех Chromium браузерах",
|
||||||
|
title2: "Другие платформы",
|
||||||
|
subtitle2:
|
||||||
|
"Если ваш браузер ещё не поддерживается, попробуйте этот пользовательский скрипт",
|
||||||
|
title3: "От других разработчиков",
|
||||||
|
subtitle3:
|
||||||
|
"Никакой ответственности с нашей стороны, используйте на свой страх и риск",
|
||||||
|
},
|
||||||
|
api: {
|
||||||
|
name: "API",
|
||||||
|
title: "Добро пожаловать в официальную документацию RYD!",
|
||||||
|
subtitle: "Чтобы начать, выберите раздел в меню.",
|
||||||
|
rights: {
|
||||||
|
title: "Права пользования",
|
||||||
|
subtitle:
|
||||||
|
"Использование этого открытого API третьими лицами разрешено со следующими ограничениями:",
|
||||||
|
bullet1: "Aтрибуция: ",
|
||||||
|
bullet1text:
|
||||||
|
"Этот проект должен быть чётко описан либо ссылкой на этот репозиторий, либо ссылкой на returnyoutubedislike.com",
|
||||||
|
bullet2: "Ограничение",
|
||||||
|
bullet2text:
|
||||||
|
"Существуют ограничения на скорость для каждого клиента - 100 в минуту и 10 000 в день. Это выдаст код ошибки 429, указывающее на то, что ваше приложение превысило лимит",
|
||||||
},
|
},
|
||||||
install: {
|
url: {
|
||||||
name: 'Скачать',
|
title: "Информация о URL-адресе",
|
||||||
title: 'Выберите свою платформу',
|
subtitle: "API доступен по следующему URL-адресу: ",
|
||||||
subtitle: 'Доступно в Firefox и во всех Chromium браузерах',
|
|
||||||
title2: 'Другие платформы',
|
|
||||||
subtitle2: 'Если ваш браузер ещё не поддерживается, попробуйте этот пользовательский скрипт',
|
|
||||||
title3: 'От других разработчиков',
|
|
||||||
subtitle3: 'Никакой ответственности с нашей стороны, используйте на свой страх и риск',
|
|
||||||
},
|
},
|
||||||
api: {
|
endpoints: {
|
||||||
name: 'API',
|
title: "Доступные конечные точки (эндпоинты)",
|
||||||
title: 'Добро пожаловать в официальную документацию RYD!',
|
subtitle: "Список доступных конечных точек доступен здесь: ",
|
||||||
subtitle: 'Чтобы начать, выберите раздел в меню.',
|
|
||||||
rights: {
|
|
||||||
title: 'Права пользования',
|
|
||||||
subtitle: 'Использование этого открытого API третьими лицами разрешено со следующими ограничениями:',
|
|
||||||
bullet1: 'Aтрибуция: ',
|
|
||||||
bullet1text: 'Этот проект должен быть чётко описан либо ссылкой на этот репозиторий, либо ссылкой на returnyoutubedislike.com',
|
|
||||||
bullet2: 'Ограничение',
|
|
||||||
bullet2text: 'Существуют ограничения на скорость для каждого клиента - 100 в минуту и 10 000 в день. Это выдаст код ошибки 429, указывающее на то, что ваше приложение превысило лимит',
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
title: 'Информация о URL-адресе',
|
|
||||||
subtitle: 'API доступен по следующему URL-адресу: ',
|
|
||||||
},
|
|
||||||
endpoints: {
|
|
||||||
title: 'Доступные конечные точки (эндпоинты)',
|
|
||||||
subtitle: 'Список доступных конечных точек доступен здесь: ',
|
|
||||||
},
|
|
||||||
fetching: {
|
|
||||||
title: 'Базовое руководство по выборке',
|
|
||||||
subtitle: 'Пример получения голосов на заданный видео идентификатор на YouTube ',
|
|
||||||
title2: 'Пример запроса: ',
|
|
||||||
url: 'URL-адрес запроса: ',
|
|
||||||
method: 'Способ запроса: ',
|
|
||||||
headers: 'Заголовок: ',
|
|
||||||
response: 'Ответ: ',
|
|
||||||
error1: 'Неверный идентификатор YouTube выдаст код ошибки 404 "Не найдено"',
|
|
||||||
error2: 'Неправильно отформатированный идентификатор YouTube выдаст код ошибки 400 "Неверный запрос"'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
help: {
|
fetching: {
|
||||||
name: 'Помощь',
|
title: "Базовое руководство по выборке",
|
||||||
title: 'Диагностика',
|
subtitle:
|
||||||
bullet1: 'Убедитесь, что у вас установлена последняя версия расширения, ',
|
"Пример получения голосов на заданный видео идентификатор на YouTube ",
|
||||||
bullet11: 'прямо сейчас',
|
title2: "Пример запроса: ",
|
||||||
bullet2: 'Попробуйте удалить расширение и установить его снова, затем перезагрузите браузер (все активные окна, а не только одну вкладку).',
|
url: "URL-адрес запроса: ",
|
||||||
bullet3: 'Убедитесь, что эта ссылка открывается:',
|
method: "Способ запроса: ",
|
||||||
bullet31: 'вы должны увидеть текст: ',
|
headers: "Заголовок: ",
|
||||||
bullet4: 'Если ничего из вышеперечисленного не помогает - сообщите о своей проблеме в',
|
response: "Ответ: ",
|
||||||
bullet41: 'в нашем',
|
error1:
|
||||||
bullet4a: 'Сообщите нам вашу операционную систему, Название браузера и версию браузера',
|
'Неверный идентификатор YouTube выдаст код ошибки 404 "Не найдено"',
|
||||||
bullet4b: 'Сделайте снимок экрана страницы с проблемой (например, страницы видео на YouTube) с открытой консолью (нажмите ',
|
error2:
|
||||||
bullet4b1: ') - пример скриншота ниже.',
|
'Неправильно отформатированный идентификатор YouTube выдаст код ошибки 400 "Неверный запрос"',
|
||||||
bullet4c: 'Сделайте снимок экрана страницы расширений вашего браузера с установленным расширением.',
|
|
||||||
bullet4c1: 'Чтобы увидеть расширения, введите это в адресную строку: ',
|
|
||||||
firefox: 'для Firefox',
|
|
||||||
chrome: 'для Chrome, Edge, Brave, Opera, Vivaldi',
|
|
||||||
},
|
},
|
||||||
faq: {
|
},
|
||||||
name: 'ЧаВО',
|
help: {
|
||||||
title: 'Частые вопросы',
|
name: "Помощь",
|
||||||
subtitle: 'Всё ещё есть вопросы? Не стесняйтесь заглянуть в наш Discord!',
|
title: "Диагностика",
|
||||||
bullet1: 'Откуда расширение получает данные?',
|
bullet1: "Убедитесь, что у вас установлена последняя версия расширения, ",
|
||||||
bullet1text: 'Комбинация архивных данных, полученных до закрытия официального API YouTube с отметками «Не нравится», и экстраполяция поведения пользователей расширения.',
|
bullet11: "прямо сейчас",
|
||||||
bullet2: 'Почему количество отметок «Не нравится» не обновляется?',
|
bullet2:
|
||||||
bullet2text: 'На данный момент видео отметки «Не нравится» кэшируются, и обновляются не очень часто. Это зависит от популярности видео, но обновление может занять от нескольких часов до нескольких дней.',
|
"Попробуйте удалить расширение и установить его снова, затем перезагрузите браузер (все активные окна, а не только одну вкладку).",
|
||||||
bullet3: 'Как это работает?',
|
bullet3: "Убедитесь, что эта ссылка открывается:",
|
||||||
bullet3text: 'Расширение берёт идентификатор видео которое вы смотрите, извлекает количество отметок «Не нравится» (и другие поля, такие как просмотры, отметки «Нравится» и т.д.) используя наш API. Затем расширение отображает количество отметок «Не нравится» на странице. Если если вы оставляете отметки «Нравится» или «Не нравится», это записывается и отправляется в базу данных, чтобы можно было экстраполировать точное количество отметок.',
|
bullet31: "вы должны увидеть текст: ",
|
||||||
bullet4: 'Могу я поделиться с вами своим количеством отметок «Не нравится»?',
|
bullet4:
|
||||||
bullet4text: 'Скоро. Мы рассматриваем возможность использования Oauth или другого API, доступного только для чтения, с ограниченной областью действия, чтобы создатели могли делиться своим количеством отметок «Не нравится».',
|
"Если ничего из вышеперечисленного не помогает - сообщите о своей проблеме в",
|
||||||
bullet5: 'Какие данные вы собираете и как они обрабатываются?',
|
bullet41: "в нашем",
|
||||||
bullet5text: 'Расширение собирает только те данные, которые строго необходимы для его правильной работы, такие как IP-адрес или идентификатор видео которое вы смотрите. Ваши данные никогда не будут проданы третьим лицам. Если вы хотите узнать больше о том, как мы обеспечиваем безопасность и конфиденциальность, ознакомьтесь с нашим <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQru.md">ЧаВО по безопасности</a>.',
|
bullet4a:
|
||||||
bullet6: 'Как работает API/серверная часть?',
|
"Сообщите нам вашу операционную систему, Название браузера и версию браузера",
|
||||||
bullet6text: 'Серверная часть использует архивные данные с тех пор, когда YouTube API всё ещё выдавал количество отметок «Не нравится», количество отметок «Нравится» и «Не нравится» пользователей расширения и экстраполяцию. В ближайшем будущем мы позволим создателям контента легко и безопасно отправлять количество своих отметок «Не нравится», и мы добавим архивные данные ArchiveTeam (4,56 миллиарда видео) в нашу текущую базу данных. Вы также можете просмотреть видео на эту тему.',
|
bullet4b:
|
||||||
bullet7: 'Почему счётчик отметок «Не нравится» показывает \'DISLIKES DISABLED\'?',
|
"Сделайте снимок экрана страницы с проблемой (например, страницы видео на YouTube) с открытой консолью (нажмите ",
|
||||||
bullet7text: 'Иногда недавно загруженное видео может показывать "DISLIKES DISABLED", это связано с тем как мы определяем отключены ли отметки «Не нравится», и должно исчезнуть через несколько часов или после получения отметки «Нравится» или «Не нравится» и обновления страницы (надеюсь).',
|
bullet4b1: ") - пример скриншота ниже.",
|
||||||
},
|
bullet4c:
|
||||||
donate: {
|
"Сделайте снимок экрана страницы расширений вашего браузера с установленным расширением.",
|
||||||
name: 'Пожертвовать',
|
bullet4c1: "Чтобы увидеть расширения, введите это в адресную строку: ",
|
||||||
subtitle: 'Вы можете поддержать пожертвованием наши усилия по обеспечению свободного Интернета!',
|
firefox: "для Firefox",
|
||||||
},
|
chrome: "для Chrome, Edge, Brave, Opera, Vivaldi",
|
||||||
links: {
|
},
|
||||||
name: 'Ссылки',
|
faq: {
|
||||||
title: 'Ссылки',
|
name: "ЧаВО",
|
||||||
subtitle: 'Ссылки на проект и его разработчиков',
|
title: "Частые вопросы",
|
||||||
contact: 'Связаться',
|
subtitle: "Всё ещё есть вопросы? Не стесняйтесь заглянуть в наш Discord!",
|
||||||
translators: 'Переводчики',
|
bullet1: "Откуда расширение получает данные?",
|
||||||
sponsorBlockDescription: 'Проматывает рекламу, встроенную в видео',
|
bullet1text:
|
||||||
filmotDescription: 'Поиск по субтитрам YouTube'
|
"Комбинация архивных данных, полученных до закрытия официального API YouTube с отметками «Не нравится», и экстраполяция поведения пользователей расширения.",
|
||||||
},
|
bullet2: "Почему количество отметок «Не нравится» не обновляется?",
|
||||||
}
|
bullet2text:
|
||||||
|
"На данный момент видео отметки «Не нравится» кэшируются, и обновляются не очень часто. Это зависит от популярности видео, но обновление может занять от нескольких часов до нескольких дней.",
|
||||||
|
bullet3: "Как это работает?",
|
||||||
|
bullet3text:
|
||||||
|
"Расширение берёт идентификатор видео которое вы смотрите, извлекает количество отметок «Не нравится» (и другие поля, такие как просмотры, отметки «Нравится» и т.д.) используя наш API. Затем расширение отображает количество отметок «Не нравится» на странице. Если если вы оставляете отметки «Нравится» или «Не нравится», это записывается и отправляется в базу данных, чтобы можно было экстраполировать точное количество отметок.",
|
||||||
|
bullet4:
|
||||||
|
"Могу я поделиться с вами своим количеством отметок «Не нравится»?",
|
||||||
|
bullet4text:
|
||||||
|
"Скоро. Мы рассматриваем возможность использования Oauth или другого API, доступного только для чтения, с ограниченной областью действия, чтобы создатели могли делиться своим количеством отметок «Не нравится».",
|
||||||
|
bullet5: "Какие данные вы собираете и как они обрабатываются?",
|
||||||
|
bullet5text:
|
||||||
|
'Расширение собирает только те данные, которые строго необходимы для его правильной работы, такие как IP-адрес или идентификатор видео которое вы смотрите. Ваши данные никогда не будут проданы третьим лицам. Если вы хотите узнать больше о том, как мы обеспечиваем безопасность и конфиденциальность, ознакомьтесь с нашим <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQru.md">ЧаВО по безопасности</a>.',
|
||||||
|
bullet6: "Как работает API/серверная часть?",
|
||||||
|
bullet6text:
|
||||||
|
"Серверная часть использует архивные данные с тех пор, когда YouTube API всё ещё выдавал количество отметок «Не нравится», количество отметок «Нравится» и «Не нравится» пользователей расширения и экстраполяцию. В ближайшем будущем мы позволим создателям контента легко и безопасно отправлять количество своих отметок «Не нравится», и мы добавим архивные данные ArchiveTeam (4,56 миллиарда видео) в нашу текущую базу данных. Вы также можете просмотреть видео на эту тему.",
|
||||||
|
bullet7:
|
||||||
|
"Почему счётчик отметок «Не нравится» показывает 'DISLIKES DISABLED'?",
|
||||||
|
bullet7text:
|
||||||
|
'Иногда недавно загруженное видео может показывать "DISLIKES DISABLED", это связано с тем как мы определяем отключены ли отметки «Не нравится», и должно исчезнуть через несколько часов или после получения отметки «Нравится» или «Не нравится» и обновления страницы (надеюсь).',
|
||||||
|
},
|
||||||
|
donate: {
|
||||||
|
name: "Пожертвовать",
|
||||||
|
subtitle:
|
||||||
|
"Вы можете поддержать пожертвованием наши усилия по обеспечению свободного Интернета!",
|
||||||
|
},
|
||||||
|
links: {
|
||||||
|
name: "Ссылки",
|
||||||
|
title: "Ссылки",
|
||||||
|
subtitle: "Ссылки на проект и его разработчиков",
|
||||||
|
contact: "Связаться",
|
||||||
|
translators: "Переводчики",
|
||||||
|
sponsorBlockDescription: "Проматывает рекламу, встроенную в видео",
|
||||||
|
filmotDescription: "Поиск по субтитрам YouTube",
|
||||||
|
},
|
||||||
|
};
|
||||||
+121
-98
@@ -1,104 +1,127 @@
|
|||||||
import { tr } from 'vuetify/src/locale'
|
import { tr } from "vuetify/src/locale";
|
||||||
// By Batuhan Kara & İlyas Zan
|
// By Batuhan Kara & İlyas Zan
|
||||||
export default {
|
export default {
|
||||||
...tr,
|
...tr,
|
||||||
home: {
|
home: {
|
||||||
name: 'Ana Sayfa',
|
name: "Ana Sayfa",
|
||||||
title: 'YouTube Dislike Sayısını Geri Getir',
|
title: "YouTube Dislike Sayısını Geri Getir",
|
||||||
subtitle: 'Tarayıcı uzantısı ve bir API, YouTube\'daki dislike sayınızı geri getirir',
|
subtitle:
|
||||||
ukraine: 'Ukrayna\'ya Destek Ol',
|
"Tarayıcı uzantısı ve bir API, YouTube'daki dislike sayınızı geri getirir",
|
||||||
sponsors: 'Sponsorlar',
|
ukraine: "Ukrayna'ya Destek Ol",
|
||||||
|
sponsors: "Sponsorlar",
|
||||||
|
},
|
||||||
|
install: {
|
||||||
|
name: "Yükle",
|
||||||
|
title: "Platformunuzu Seçin",
|
||||||
|
subtitle: "Firefox ve bütün Chromium tabanlı tarayıcılarda kullanılabilir",
|
||||||
|
title2: "Diğer Platformlar",
|
||||||
|
subtitle2:
|
||||||
|
"Tarayıcınız henüz desteklenmiyorsa UserScript yöntemini deneyin",
|
||||||
|
title3: "Üçüncü Parti Uygulamalar",
|
||||||
|
subtitle3:
|
||||||
|
"Riski tamamen size aittir, bizim tarafımızda sorumluluk kabul edilmemektedir",
|
||||||
|
},
|
||||||
|
api: {
|
||||||
|
name: "API",
|
||||||
|
title: "Resmî RYD belgelerine hoş geldiniz!",
|
||||||
|
subtitle: "Başlamak için menüden bir bölüm seçin.",
|
||||||
|
rights: {
|
||||||
|
title: "Kullanım Hakları",
|
||||||
|
subtitle:
|
||||||
|
"Herkese açık API'nin üçüncü parti kişilerin kullanımında aşağıdaki kısıtlamalara izin verir:",
|
||||||
|
bullet1: "Atıf: ",
|
||||||
|
bullet1text:
|
||||||
|
"Bu proje, bu depoya ya da returnyoutubedislike.com sitesine bir bağlantı ile açıkça atfedilmelidir",
|
||||||
|
bullet2: "Hız Sınırlaması: ",
|
||||||
|
bullet2text:
|
||||||
|
"Kullanıcı başına dakikada 100 ve günde 10.000 hız sınırlaması vardır. Bu, uygulamanızın geri çekilmesi gerektiğini belirten 429 durum kodunu döndürür",
|
||||||
},
|
},
|
||||||
install: {
|
url: {
|
||||||
name: 'Yükle',
|
title: "URL Bilgisi",
|
||||||
title: 'Platformunuzu Seçin',
|
subtitle: "API'ye şu URL üzerinden ulaşılabilir: ",
|
||||||
subtitle: 'Firefox ve bütün Chromium tabanlı tarayıcılarda kullanılabilir',
|
|
||||||
title2: 'Diğer Platformlar',
|
|
||||||
subtitle2: 'Tarayıcınız henüz desteklenmiyorsa UserScript yöntemini deneyin',
|
|
||||||
title3: 'Üçüncü Parti Uygulamalar',
|
|
||||||
subtitle3: 'Riski tamamen size aittir, bizim tarafımızda sorumluluk kabul edilmemektedir',
|
|
||||||
},
|
},
|
||||||
api: {
|
endpoints: {
|
||||||
name: 'API',
|
title: "Kullanılabilir Endpoint'ler",
|
||||||
title: 'Resmî RYD belgelerine hoş geldiniz!',
|
subtitle: "Kullanılabilir endpoint'lerin listesi burada mevcuttur: ",
|
||||||
subtitle: 'Başlamak için menüden bir bölüm seçin.',
|
|
||||||
rights: {
|
|
||||||
title: 'Kullanım Hakları',
|
|
||||||
subtitle: 'Herkese açık API\'nin üçüncü parti kişilerin kullanımında aşağıdaki kısıtlamalara izin verir:',
|
|
||||||
bullet1: 'Atıf: ',
|
|
||||||
bullet1text: 'Bu proje, bu depoya ya da returnyoutubedislike.com sitesine bir bağlantı ile açıkça atfedilmelidir',
|
|
||||||
bullet2: 'Hız Sınırlaması: ',
|
|
||||||
bullet2text: 'Kullanıcı başına dakikada 100 ve günde 10.000 hız sınırlaması vardır. Bu, uygulamanızın geri çekilmesi gerektiğini belirten 429 durum kodunu döndürür',
|
|
||||||
},
|
|
||||||
url: {
|
|
||||||
title: 'URL Bilgisi',
|
|
||||||
subtitle: 'API\'ye şu URL üzerinden ulaşılabilir: ',
|
|
||||||
},
|
|
||||||
endpoints: {
|
|
||||||
title: 'Kullanılabilir Endpoint\'ler',
|
|
||||||
subtitle: 'Kullanılabilir endpoint\'lerin listesi burada mevcuttur: ',
|
|
||||||
},
|
|
||||||
fetching: {
|
|
||||||
title: 'Temel Veri Alma Eğitimi',
|
|
||||||
subtitle: 'Belirli bir YouTube ID\'sinin oylamalarını elde etmek için bir örnek: ',
|
|
||||||
title2: 'Örnek İstek: ',
|
|
||||||
url: 'İstek URL\'si: ',
|
|
||||||
method: 'İstek Yöntemi: ',
|
|
||||||
headers: 'Header\'lar: ',
|
|
||||||
response: 'Sonuç: ',
|
|
||||||
error1: 'Geçersiz bir YouTube ID\'si, 404 "Not Found" olarak döndürülür',
|
|
||||||
error2: 'Yanlış biçimlendirilmiş bir YouTube ID\'si, 400 "Bad Request" olarak döndürülür'
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
help: {
|
fetching: {
|
||||||
name: 'Yardım',
|
title: "Temel Veri Alma Eğitimi",
|
||||||
title: 'Sorun Giderme',
|
subtitle:
|
||||||
bullet1: 'Uzantının en son sürümü olan ',
|
"Belirli bir YouTube ID'sinin oylamalarını elde etmek için bir örnek: ",
|
||||||
bullet11: ' sürümünün kurulu olduğundan emin olun',
|
title2: "Örnek İstek: ",
|
||||||
bullet2: 'Uzantıyı kaldırıp yeniden yüklemeyi deneyin, sonra tarayıcınızı yeniden başlatın (tüm aktif sekmeleri kapatın, sadece tek bir sekmeyi değil)',
|
url: "İstek URL'si: ",
|
||||||
bullet3: 'Şu bağlantıyı açtığınızdan emin olun: ',
|
method: "İstek Yöntemi: ",
|
||||||
bullet31: 'şöyle bir düz metin görmelisiniz: ',
|
headers: "Header'lar: ",
|
||||||
bullet4: 'Yukarıdakiler yardımcı olmadıysa - Discord sunucumuzdaki ',
|
response: "Sonuç: ",
|
||||||
bullet41: ' kanalından problemi bildirin (İngilizce bir şekilde) Discord sunucumuz: ',
|
error1: 'Geçersiz bir YouTube ID\'si, 404 "Not Found" olarak döndürülür',
|
||||||
bullet4a: 'Bize İşletim Sisteminizi, Tarayıcı Adınızı ve Tarayıcı Sürümünüzü söyleyin',
|
error2:
|
||||||
bullet4b: 'Konsol açıkken (açmak için ',
|
'Yanlış biçimlendirilmiş bir YouTube ID\'si, 400 "Bad Request" olarak döndürülür',
|
||||||
bullet4b1: ' tuşuna basın) sorunu yaşadığınız sayfanın ekran görüntüsünü alın (yani YouTube watch sayfasının) - Ekran görüntüsü örneği aşağıdadır.',
|
|
||||||
bullet4c: 'Uzantı yüklüyken tarayıcınızın uzantılar sayfasının ekran görüntüsünü alın.',
|
|
||||||
bullet4c1: 'Uzantıları görmek için şu linki adres çubuğuna yapıştırın: ',
|
|
||||||
firefox: '(Firefox için)',
|
|
||||||
chrome: '(Chrome, Edge, Brave, Opera ve Vivaldi için)',
|
|
||||||
},
|
},
|
||||||
faq: {
|
},
|
||||||
name: 'SSS',
|
help: {
|
||||||
title: 'Sıkça Sorulan Sorular',
|
name: "Yardım",
|
||||||
subtitle: 'Hâlâ sorun mu yaşıyorsunuz? Discord sunucumuza katılmaktan çekinmeyin! (İngilizce)',
|
title: "Sorun Giderme",
|
||||||
bullet1: 'Uzantı, verileri nereden alıyor?',
|
bullet1: "Uzantının en son sürümü olan ",
|
||||||
bullet1text: 'Resmî YouTube dislike sayısı API\'si kapatılmadan önceki arşivlenmiş verilerden ve tahmin edilen uzantı kullanıcısı davranışının bir birleşimiyle.',
|
bullet11: " sürümünün kurulu olduğundan emin olun",
|
||||||
bullet2: 'Dislike sayısı neden güncellenmiyor?',
|
bullet2:
|
||||||
bullet2text: 'Şu anda dislike durumları önbelleğe alınır ve çok sık güncellenmez. Bir videonun popülerliğine bağlı olarak değişir ancak güncellenmesi birkaç saat ilâ birkaç gün sürebilir.',
|
"Uzantıyı kaldırıp yeniden yüklemeyi deneyin, sonra tarayıcınızı yeniden başlatın (tüm aktif sekmeleri kapatın, sadece tek bir sekmeyi değil)",
|
||||||
bullet3: 'Bu nasıl çalışıyor?',
|
bullet3: "Şu bağlantıyı açtığınızdan emin olun: ",
|
||||||
bullet3text: 'Uzantı, izlediğiniz videonun ID\'sini alır, API\'miz üzerinden dislike sayılarınızı geri getirir (aynı zamanda görüntülenmenizi, like\'ınızı vb. diğer alanları da). Uzantı daha sonra sayfada dislike sayısını ve oranını görüntüler. Bir videoya like veya dislike atarsanız bu kaydedilir ve veri tabanına gönderilir, böylece doğru dislike sayısını tahmin edebilir.',
|
bullet31: "şöyle bir düz metin görmelisiniz: ",
|
||||||
bullet4: 'Dislike sayımı sizinle paylaşabilir miyim?',
|
bullet4: "Yukarıdakiler yardımcı olmadıysa - Discord sunucumuzdaki ",
|
||||||
bullet4text: 'Çok yakında evet. İçerik üreticilerinin dislike sayıları için doğrulanabilirliğini paylaşabilmeleri amacıyla Oauth ya da sınırlı bir kapsamda farklı bir salt okunur API kullanmayı düşünüyoruz.',
|
bullet41:
|
||||||
bullet5: 'Hangi verileri topluyorsunuz ve bunlar nasıl işleniyor?',
|
" kanalından problemi bildirin (İngilizce bir şekilde) Discord sunucumuz: ",
|
||||||
bullet5text: 'Uzantı, yalnızca izlediğiniz videonun IP adresi veya videonun ID\'si gibi düzgün çalışması için kesinlikle gerekli olan verileri toplar. Verileriniz asla 3. taraflara satılmayacaktır. Güvenliği ve gizliliği nasıl ele aldığımız hakkında daha fazla bilgi için <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">security FAQ</a>\'ya gidin.',
|
bullet4a:
|
||||||
bullet6: 'API/Yazılım(Backend) nasıl çalışıyor?',
|
"Bize İşletim Sisteminizi, Tarayıcı Adınızı ve Tarayıcı Sürümünüzü söyleyin",
|
||||||
bullet6text: 'Yazılım, YouTube API\'sinin dislike sayısını ve uzantı kullanıcılarının like/dislike sayısı sonuçların genişletilmesinin döndürmeye devam ettiği zamana ait arşivlenmiş verileri kullanır. Yakın zamanda içerik üreticilerin dislike sayısını kolay ve güvenli bir şekilde göndermelerine izin vereceğiz ve ArchiveTeam\'in arşivlenmiş verilerini (4,56 milyar video) veri tabanımıza ekleyeceğiz. Ayrıca konu ile ilgili videoyu da izleyebilirsiniz.',
|
bullet4b: "Konsol açıkken (açmak için ",
|
||||||
bullet7: 'Dislike sayısı neden \'DISLIKES DISABLED\'(DISLIKE\'LAR AKTİF DEĞİL) olarak gözüküyor?',
|
bullet4b1:
|
||||||
bullet7text: 'Yazma sırasında like ve dislike sayısını devre dışı bırakan videoların dislike sayılarını göstermiyoruz. Uzantı, bu videolar için \'DISLIKES DISABLED\'(DISLIKE\'LAR AKTİF DEĞİL) mesajını görüntüler. Yakında tüm videolarda dislike sayısını göstereceğiz. Bu, yalnızca geçici bir çözümdür. Bu nedenle insanlar uzantının bozuk olduğunu düşünmez (zaten iyi çalışmıyor). Bazen yakın zamanda yüklenen bir videoda, içerik üreticisi onu devre dışı bırakmamış olsa bile \'DISLIKES DISABLED\' olarak gözükebilir. Bunun nedeni, dislike sayısını devre dışı bırakıp bırakmadığını tespit etmemizdir. Birkaç saat içinde videoyu like ya da dislike atarsanız veya sayfayı yenilerseniz kaybolması gerekir (umarız).',
|
" tuşuna basın) sorunu yaşadığınız sayfanın ekran görüntüsünü alın (yani YouTube watch sayfasının) - Ekran görüntüsü örneği aşağıdadır.",
|
||||||
},
|
bullet4c:
|
||||||
donate: {
|
"Uzantı yüklüyken tarayıcınızın uzantılar sayfasının ekran görüntüsünü alın.",
|
||||||
name: 'Bağış Yap',
|
bullet4c1: "Uzantıları görmek için şu linki adres çubuğuna yapıştırın: ",
|
||||||
subtitle: 'İnterneti özgür bırakma çabamızda bize bağışınızla destek olabilirsiniz!',
|
firefox: "(Firefox için)",
|
||||||
},
|
chrome: "(Chrome, Edge, Brave, Opera ve Vivaldi için)",
|
||||||
links: {
|
},
|
||||||
name: 'Bağlantılar',
|
faq: {
|
||||||
title: 'Proje Bağlantıları',
|
name: "SSS",
|
||||||
subtitle: 'Projeye ve geliştiricilerine bağlantılar',
|
title: "Sıkça Sorulan Sorular",
|
||||||
contact: 'Bana Ulaşın',
|
subtitle:
|
||||||
translators: 'Çevirmenler',
|
"Hâlâ sorun mu yaşıyorsunuz? Discord sunucumuza katılmaktan çekinmeyin! (İngilizce)",
|
||||||
coolProjects: 'Hoş Projeler',
|
bullet1: "Uzantı, verileri nereden alıyor?",
|
||||||
sponsorBlockDescription: 'Videolara gömülü reklamları pas geçer',
|
bullet1text:
|
||||||
filmotDescription: 'YouTube videolarını alt yazılara göre aramanızı sağlar'
|
"Resmî YouTube dislike sayısı API'si kapatılmadan önceki arşivlenmiş verilerden ve tahmin edilen uzantı kullanıcısı davranışının bir birleşimiyle.",
|
||||||
},
|
bullet2: "Dislike sayısı neden güncellenmiyor?",
|
||||||
}
|
bullet2text:
|
||||||
|
"Şu anda dislike durumları önbelleğe alınır ve çok sık güncellenmez. Bir videonun popülerliğine bağlı olarak değişir ancak güncellenmesi birkaç saat ilâ birkaç gün sürebilir.",
|
||||||
|
bullet3: "Bu nasıl çalışıyor?",
|
||||||
|
bullet3text:
|
||||||
|
"Uzantı, izlediğiniz videonun ID'sini alır, API'miz üzerinden dislike sayılarınızı geri getirir (aynı zamanda görüntülenmenizi, like'ınızı vb. diğer alanları da). Uzantı daha sonra sayfada dislike sayısını ve oranını görüntüler. Bir videoya like veya dislike atarsanız bu kaydedilir ve veri tabanına gönderilir, böylece doğru dislike sayısını tahmin edebilir.",
|
||||||
|
bullet4: "Dislike sayımı sizinle paylaşabilir miyim?",
|
||||||
|
bullet4text:
|
||||||
|
"Çok yakında evet. İçerik üreticilerinin dislike sayıları için doğrulanabilirliğini paylaşabilmeleri amacıyla Oauth ya da sınırlı bir kapsamda farklı bir salt okunur API kullanmayı düşünüyoruz.",
|
||||||
|
bullet5: "Hangi verileri topluyorsunuz ve bunlar nasıl işleniyor?",
|
||||||
|
bullet5text:
|
||||||
|
"Uzantı, yalnızca izlediğiniz videonun IP adresi veya videonun ID'si gibi düzgün çalışması için kesinlikle gerekli olan verileri toplar. Verileriniz asla 3. taraflara satılmayacaktır. Güvenliği ve gizliliği nasıl ele aldığımız hakkında daha fazla bilgi için <a href=\"https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md\">security FAQ</a>'ya gidin.",
|
||||||
|
bullet6: "API/Yazılım(Backend) nasıl çalışıyor?",
|
||||||
|
bullet6text:
|
||||||
|
"Yazılım, YouTube API'sinin dislike sayısını ve uzantı kullanıcılarının like/dislike sayısı sonuçların genişletilmesinin döndürmeye devam ettiği zamana ait arşivlenmiş verileri kullanır. Yakın zamanda içerik üreticilerin dislike sayısını kolay ve güvenli bir şekilde göndermelerine izin vereceğiz ve ArchiveTeam'in arşivlenmiş verilerini (4,56 milyar video) veri tabanımıza ekleyeceğiz. Ayrıca konu ile ilgili videoyu da izleyebilirsiniz.",
|
||||||
|
bullet7:
|
||||||
|
"Dislike sayısı neden 'DISLIKES DISABLED'(DISLIKE'LAR AKTİF DEĞİL) olarak gözüküyor?",
|
||||||
|
bullet7text:
|
||||||
|
"Yazma sırasında like ve dislike sayısını devre dışı bırakan videoların dislike sayılarını göstermiyoruz. Uzantı, bu videolar için 'DISLIKES DISABLED'(DISLIKE'LAR AKTİF DEĞİL) mesajını görüntüler. Yakında tüm videolarda dislike sayısını göstereceğiz. Bu, yalnızca geçici bir çözümdür. Bu nedenle insanlar uzantının bozuk olduğunu düşünmez (zaten iyi çalışmıyor). Bazen yakın zamanda yüklenen bir videoda, içerik üreticisi onu devre dışı bırakmamış olsa bile 'DISLIKES DISABLED' olarak gözükebilir. Bunun nedeni, dislike sayısını devre dışı bırakıp bırakmadığını tespit etmemizdir. Birkaç saat içinde videoyu like ya da dislike atarsanız veya sayfayı yenilerseniz kaybolması gerekir (umarız).",
|
||||||
|
},
|
||||||
|
donate: {
|
||||||
|
name: "Bağış Yap",
|
||||||
|
subtitle:
|
||||||
|
"İnterneti özgür bırakma çabamızda bize bağışınızla destek olabilirsiniz!",
|
||||||
|
},
|
||||||
|
links: {
|
||||||
|
name: "Bağlantılar",
|
||||||
|
title: "Proje Bağlantıları",
|
||||||
|
subtitle: "Projeye ve geliştiricilerine bağlantılar",
|
||||||
|
contact: "Bana Ulaşın",
|
||||||
|
translators: "Çevirmenler",
|
||||||
|
coolProjects: "Hoş Projeler",
|
||||||
|
sponsorBlockDescription: "Videolara gömülü reklamları pas geçer",
|
||||||
|
filmotDescription: "YouTube videolarını alt yazılara göre aramanızı sağlar",
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -50,8 +50,7 @@ export default {
|
|||||||
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
|
// Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
|
||||||
vuetify: {
|
vuetify: {
|
||||||
lang: {
|
lang: {
|
||||||
|
locales: { en, es, tr, ru, cs, ja, fr /* de, ...*/ },
|
||||||
locales: { en, es, tr, ru, cs, ja, fr, /* de, ...*/ },
|
|
||||||
current: "en",
|
current: "en",
|
||||||
},
|
},
|
||||||
theme: {
|
theme: {
|
||||||
|
|||||||
+26
-14
@@ -54,10 +54,10 @@
|
|||||||
</v-btn>
|
</v-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="mb-4" style="color: #999">-->
|
<!-- <div class="mb-4" style="color: #999">-->
|
||||||
<!-- Get dislikes manually: <input placeholder=" Video URL">-->
|
<!-- Get dislikes manually: <input placeholder=" Video URL">-->
|
||||||
<!-- <p id="output"></p>-->
|
<!-- <p id="output"></p>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
|
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
<div id="support-ukraine" class="d-flex flex-column items-center py-2">
|
<div id="support-ukraine" class="d-flex flex-column items-center py-2">
|
||||||
@@ -77,7 +77,9 @@
|
|||||||
<v-row class="justify-center mx-auto">
|
<v-row class="justify-center mx-auto">
|
||||||
<p v-for="sponsor in sponsors" :key="sponsor.name" class="sponsor">
|
<p v-for="sponsor in sponsors" :key="sponsor.name" class="sponsor">
|
||||||
<a
|
<a
|
||||||
:style="sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }"
|
:style="
|
||||||
|
sponsor.link ? { cursor: 'pointer' } : { cursor: 'default' }
|
||||||
|
"
|
||||||
:href="sponsor.link"
|
:href="sponsor.link"
|
||||||
rel="sponsored"
|
rel="sponsored"
|
||||||
>
|
>
|
||||||
@@ -113,23 +115,33 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "PocketTube",
|
name: "PocketTube",
|
||||||
link: "https://yousub.info/?utm_source=returnyoutubedislike"
|
link: "https://yousub.info/?utm_source=returnyoutubedislike",
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
name: "Become our sponsor",
|
name: "Become our sponsor",
|
||||||
link: "https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601"
|
link: "https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601",
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
const YOUTUBE_REGEX = /(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/)([^&?%#/\n]*)/;
|
const YOUTUBE_REGEX =
|
||||||
|
/(?:http:|https:)*?\/\/(?:www\.|)(?:youtube\.com|m\.youtube\.com|youtu\.|youtube-nocookie\.com).*(?:v=|v%3D|v\/|(?:a|p)\/(?:a|u)\/\d.*\/|watch\?|vi(?:=|\/)|\/embed\/|oembed\?|be\/|e\/)([^&?%#/\n]*)/;
|
||||||
let lastVideoId = "";
|
let lastVideoId = "";
|
||||||
window.oninput = (e) => {
|
window.oninput = (e) => {
|
||||||
const videoId = (e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
|
const videoId =
|
||||||
|
(e.target.value.match(YOUTUBE_REGEX) || {})[1] || e.target.value;
|
||||||
if (videoId !== lastVideoId && videoId.length === 11) {
|
if (videoId !== lastVideoId && videoId.length === 11) {
|
||||||
fetch("https://returnyoutubedislikeapi.com/votes?videoId=" + (lastVideoId = videoId))
|
fetch(
|
||||||
.then(resp => resp.json())
|
"https://returnyoutubedislikeapi.com/votes?videoId=" +
|
||||||
.then(data => document.getElementById("output").innerText = "Likes=" + data.likes + " Dislikes=" + data.dislikes);
|
(lastVideoId = videoId)
|
||||||
|
)
|
||||||
|
.then((resp) => resp.json())
|
||||||
|
.then(
|
||||||
|
(data) =>
|
||||||
|
(document.getElementById("output").innerText =
|
||||||
|
"Likes=" + data.likes + " Dislikes=" + data.dislikes)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
+17
-7
@@ -37,7 +37,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<!-- Translators -->
|
<!-- Translators -->
|
||||||
<div style="color: #555; width: 250px" class="my-8">
|
<div style="color: #555; width: 250px" class="my-8">
|
||||||
<b class="white--text">
|
<b class="white--text">
|
||||||
{{ $vuetify.lang.t("$vuetify.links.translators") }}
|
{{ $vuetify.lang.t("$vuetify.links.translators") }}
|
||||||
</b>
|
</b>
|
||||||
@@ -57,11 +57,13 @@
|
|||||||
</b>
|
</b>
|
||||||
<br />
|
<br />
|
||||||
<div
|
<div
|
||||||
v-for="project in coolProjects"
|
v-for="project in coolProjects"
|
||||||
:key="project.url"
|
:key="project.url"
|
||||||
class="d-flex justify-center"
|
class="d-flex justify-center"
|
||||||
>
|
>
|
||||||
<a class="attr-link" :href="project.url" target="_blank">{{ project.name }} - {{ $vuetify.lang.t(project.description) }} </a>
|
<a class="attr-link" :href="project.url" target="_blank"
|
||||||
|
>{{ project.name }} - {{ $vuetify.lang.t(project.description) }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -113,8 +115,16 @@ export default {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
coolProjects: [
|
coolProjects: [
|
||||||
{ name: "SponsorBlock", url: "https://sponsor.ajay.app/", description: "$vuetify.links.sponsorBlockDescription" },
|
{
|
||||||
{ name: "Filmot", url: "https://filmot.com/", description: "$vuetify.links.filmotDescription" }
|
name: "SponsorBlock",
|
||||||
|
url: "https://sponsor.ajay.app/",
|
||||||
|
description: "$vuetify.links.sponsorBlockDescription",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Filmot",
|
||||||
|
url: "https://filmot.com/",
|
||||||
|
description: "$vuetify.links.filmotDescription",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|||||||
+10
-7
@@ -2,18 +2,23 @@ const path = require("path");
|
|||||||
const CopyPlugin = require("copy-webpack-plugin");
|
const CopyPlugin = require("copy-webpack-plugin");
|
||||||
const FileManagerPlugin = require("filemanager-webpack-plugin");
|
const FileManagerPlugin = require("filemanager-webpack-plugin");
|
||||||
|
|
||||||
const entries = ['ryd.content-script', 'ryd.background', 'popup'];
|
const entries = ["ryd.content-script", "ryd.background", "popup"];
|
||||||
|
|
||||||
const ignorePatterns = [
|
const ignorePatterns = [
|
||||||
"**/manifest-**",
|
"**/manifest-**",
|
||||||
"**/dist/**",
|
"**/dist/**",
|
||||||
"**/src/**",
|
"**/src/**",
|
||||||
"**/readme.md",
|
"**/readme.md",
|
||||||
...entries.map(entry => `**/${entry}.js`)
|
...entries.map((entry) => `**/${entry}.js`),
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: Object.fromEntries(entries.map(entry => [entry, path.join(__dirname, './Extensions/combined/', `${entry}.js`)])),
|
entry: Object.fromEntries(
|
||||||
|
entries.map((entry) => [
|
||||||
|
entry,
|
||||||
|
path.join(__dirname, "./Extensions/combined/", `${entry}.js`),
|
||||||
|
])
|
||||||
|
),
|
||||||
output: {
|
output: {
|
||||||
filename: "[name].js",
|
filename: "[name].js",
|
||||||
path: path.resolve(__dirname, "Extensions/combined/dist"),
|
path: path.resolve(__dirname, "Extensions/combined/dist"),
|
||||||
@@ -59,13 +64,11 @@ module.exports = {
|
|||||||
copy: [
|
copy: [
|
||||||
{
|
{
|
||||||
source: "./Extensions/combined/dist/**.js",
|
source: "./Extensions/combined/dist/**.js",
|
||||||
destination:
|
destination: "./Extensions/combined/dist/firefox/",
|
||||||
"./Extensions/combined/dist/firefox/",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "./Extensions/combined/dist/**.js",
|
source: "./Extensions/combined/dist/**.js",
|
||||||
destination:
|
destination: "./Extensions/combined/dist/chrome/",
|
||||||
"./Extensions/combined/dist/chrome/",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user