Merge pull request #699 from Anarios/develop

Many PRs merget, prettier applied globally.
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2022-07-26 00:26:21 +02:00
commit 4e9441ae3f
60 files changed
+2728 -981

No files matched your search

+60 -62
View File
@@ -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
+33 -34
View File
@@ -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
-1
View File
@@ -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: |
+7 -8
View File
@@ -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
+10 -1
View File
@@ -1,8 +1,11 @@
Read this in other languages: [Français](CONTRIBUTINGfr.md)
# Welcome To Return YouTube Dislikes contributing guide # Welcome To Return YouTube Dislikes contributing guide
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
@@ -36,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.
+67
View File
@@ -0,0 +1,67 @@
Lisez ceci dans d'autres langues : [English](CONTRIBUTING.md)
# Bienvenue dans le guide de contribution à Return YouTube Dislikes
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
Veuillez utiliser [Prettier](https://prettier.io/) avec les paramètres par défaut pour le formatage du code.
#### Prérequis
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 :
- node: 12.18.4
- npm: 6.14.6
Pour créer le fichier `bundled-content-script.js` qui contient la plupart de la logique de cette extension, vous devez d'abord installer toutes les dépendances.
1. Allez à la racine du repo et exécutez :
```
npm install
```
2. Exécutez la commande suivante pour créer le fichier `bundled-content-script.js` qui est utilisé dans le fichier `manifest.json`.
```
npm start // pour créer le(s) fichier(s) de construction et lancer un observateur de fichiers qui recharge à chaud lors de la sauvegarde.
// ou
npm run build // pour créer le(s) fichier(s) de construction une seule fois
```
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).
### Problèmes (aussi appelé issues en anglais)
#### 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.
#### 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).
### Demande de fonctionnalité (aussi appelé feature request en anglais)
#### 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.
#### 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).
### Quels PR acceptons-nous ?
- Correction de problèmes.
- Implémentation de fonctionnalités.
- Fautes de frappe ou utilisation de mots plus simples et plus efficaces.
- Contributions au site web.
+67
View File
@@ -0,0 +1,67 @@
Прочитать на других языках: [English](CONTRIBUTING.md)
# Добро пожаловать в руководство по внесению вклада Return YouTube Dislikes
Благодарим вас за то, что вы потратили своё время на участие в нашем проекте! Все ваши изменения будут отражены в следующей версии расширения (или на [сайте](https://www.returnyoutubedislike.com/)).
## Приступая к работе
Пожалуйста, используйте Prettier с настройками по умолчанию для форматирования кода.
#### Необходимое
Вам необходимо иметь установленные node и npm, чтобы создать bundled-версию источника.
Версии, используемые при настройке:
- node: 12.18.4
- npm: 6.14.6
Для создания `bundled-content-script.js` который содержит большую часть бизнес-логики этого расширения, вы должны сначала установить все зависимости.
1. Перейдите в корень репозитория и выполните следующее:
```
npm install
```
2. Выполните следующую команду, чтобы создать `bundled-content-script.js`, который используется в `manifest.json`
```
npm start // для создания файла(ов) сборки и запуска наблюдателя за файлами, который выполняет hot-reload при сохранении
// или
npm run build // для создания файла(ов) сборки один раз
```
Поздравляем, теперь вы готовы к разработке!
Если вы новичок в разработке расширений Chrome или вам нужна дополнительная помощь, посмотрите [это руководство на YouTube (англ.)](https://www.youtube.com/watch?v=mdOj6HYE3_0)
### Вопросы
#### Открытие нового вопроса/проблемы
Если у вас возникли проблемы с расширением, пожалуйста, поищите, чтобы убедиться, что о проблеме ещё не сообщалось. Если это не так, откройте вопрос(issue), использование формы проблемы настоятельно рекомендуется, но не является обязательным.
#### Решение вопроса
Если вы нашли проблему, которую, как вам кажется, вы можете решить, не стесняйтесь. Откройте запрос на извлечение(pull request) с исправлением и обязательно укажите вопрос, который вы устраняете.
### Запрос функции
#### Открытие запроса на новую функцию
Если у вас есть идея для расширения, не стесняйтесь открыть запрос на функцию, но, пожалуйста, прежде поищите другие запросы, чтобы убедиться, что функция уже не предложена. Использование формы запроса функции настоятельно рекомендуется, но не является обязательным
#### Внедрение запроса на функцию
Если вы нашли функцию, которую, как вам кажется, вы могли бы реализовать, не стесняйтесь. Откройте запрос на извлечение(pull request) с исправлением и обязательно укажите функцию, которую вы реализуете.
### Какие запросы на извлечение(pull request) мы принимаем?
- Исправления проблем.
- Внедрения новых функций.
- Исправления опечаток и упрощение текста.
- Улучшения сайта.
+40
View File
@@ -1,21 +1,61 @@
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>
### **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.
<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.
<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>
### **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>
### **5. How is the dislike count calculated?**
RYD uses the votes from it's users to extrapolate the dislike count.
- If the video was uploaded after the API was shut down:
$$ \textup{RYD Dislike Count} = \left( \frac{\textup{RYD Users Like Count}}{\textup{RYD Users Dislike Count}} \right) \times \textup{Public Like Count} $$
- If the RYD database somehow had the actual like and dislike count (provided by the uploader or from the archive), the dislike count will be calculated based on both - the users' votes and the archived value. The archived value will have less influence on the final count as it ages.
<br>
---
This in video form
[![IReturn YouTube Dislike Explained](https://yt-embed.herokuapp.com/embed?v=GSmmtv-0yYQ)](https://www.youtube.com/watch?v=GSmmtv-0yYQ)
---
<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.
+29
View File
@@ -0,0 +1,29 @@
Lisez ceci dans d'autres langues : [English](FAQ.md)
# Foire Aux Questions
## Avant de poser une question sur GitHub ou Discord, veuillez vous référer à ceci.
### **1. Où cette extension obtient-elle les donné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.
### **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.
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 ?**
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 ?**
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é
Voir [cette page](SECURITY-FAQfr.md) pour plus d'informations.
+21
View File
@@ -0,0 +1,21 @@
# Часто задаваемые вопросы
## Прежде чем задать вопрос на GitHub или в Discord, пожалуйста, ознакомьтесь с этим.
### **1. Откуда это расширение получает данные?**
Комбинация API Google и старых данных.
Мы сохраняем все имеющиеся данные в нашей базе данных, чтобы они были доступны после того, как Google прекратит подсчёт отметок «Не нравится» в своём API.
### **2. Количество не понравившихся видео не обновляется**
В настоящее время видео с отметками «Не нравится» кэшируются и обновляются не очень часто. Раз в 2-3 дня, не чаще.
Да, это не идеально, но это то, что есть. Мы работаем над тем, чтобы улучшить частоту их обновления.
### **3. Как это работает?**
Расширение собирает идентификатор видео, которое вы смотрите, извлекает данные об отметках «Не нравится» (и другие поля, такие как просмотры, отметки «Нравится» и т.д.) с помощью нашего API, если видео было извлечено нашим API впервые, оно использует YouTube API для получения данных, затем сохраняет данные в базе данных для кэширования (кэшируются около 2-3 дней) и архивирования и возвращает их вам. После этого расширение отображает отметки «Не нравится» вам.
### **4. Что произойдёт после того, как API YouTube перестанет возвращать данные о количестве отметок «Не нравится»?**
Внутренняя часть нашего сервера переключится на использование комбинации архивных статистик отметок «Не нравится», оценок, экстраполированных из данных о пользователях расширения, и оценок, основанных на соотношении просмотров и отметок «Нравится» для видео, чьи отметки «Не нравится» не были заархивированы, и для устаревших архивов с отметками «Не нравится».
## Я беспокоюсь о безопасности / конфиденциальности
Более подробную информацию смотрите на [этой странице](SECURITY-FAQ.md).
-8
View File
@@ -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
+2 -5
View File
@@ -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
+2 -1
View File
@@ -1,3 +1,5 @@
Read this in other languages: [Français](SECURITY-FAQfr.md)
# Security # Security
### Are you tracking my viewing history? ### Are you tracking my viewing history?
@@ -27,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.
+31
View File
@@ -0,0 +1,31 @@
Lisez ceci dans d'autres langues : [English](SECURITY-FAQ.md)
# Sécurité
### Est-ce que vous traquer l'historique des vidéos que je visionne ?
Non. Le code de l'extension est public et vous pouvez le voir par vous-même. La seule information envoyée est l'ID de la vidéo, qui est nécessaire pour récupérer le nombre de dislikes des vidéos. Aucun en-tête (headers) supplémentaire n'est envoyé. Sur la [couche de communication](https://fr.wikipedia.org/wiki/Mod%C3%A8le_OSI#Caract%C3%A9risation_r%C3%A9sum%C3%A9e_des_couches), votre adresse IP publique sera exposée au serveur, ainsi que l'heure à laquelle la demande a été faite. Toutefois, aucun de ces éléments ne permet de vous identifier de manière unique. Dans un environnement où vous ne pouvez avoir confiance en personne (zero-trust environment), le mieux que l'on puisse obtenir est une IP dynamique. Qui, aujourd'hui est la vôtre, demain est celle de votre voisin. Si vous êtes vraiment inquiet que votre IP soit tracée, vous utilisez probablement déjà un VPN.
### Pouvez-vous m'identifier de manière unique si je dislike ?
Oui. Lorsque vous dislikez une vidéo, nous créons pour vous un identifiant unique généré de manière aléatoire et non lié à votre compte Google. Cette mesure vise à empêcher les robots. Mais il n'y a aucun moyen de lier cet identifiant aléatoire à vous ou à votre compte YouTube personnel.
### Quelles sont les informations dont vous disposez, exactement ?
Juste l'ID de la vidéo. Pas vos commentaires, pas votre nom d'utilisateur, pas les personnes avec qui vous avez partagé la vidéo, pas de métadonnées supplémentaires. Rien. Juste l'ID de la vidéo.
### Comment mon IP est-elle stockée ?
Le backend conserve les adresses IP non hachées uniquement dans la mémoire volatile (RAM). Ces adresses ne sont pas stockées sur un disque dur et ne sont donc pas enregistrées. Nous hachons les adresses IP et stockons ça à la place. Ceci est fait pour empêcher le vandalisme de la base de données.
### J'ai entendu des discussions sur OAuth, et l'accès à mon compte YouTube !
Cette fonctionnalité sera facultative et fera l'objet d'une demande d'adhésion. Si vous êtes un créateur YouTube et que vous souhaitez partager vos statistiques de dislikes avec nous, vous pouvez le faire. La façon dont [OAuth](https://fr.wikipedia.org/wiki/OAuth) a été structuré, c'est en fait très sûr. Vous pouvez révoquer l'accès à votre compte à tout moment et nous donner des autorisations très spécifiques. Nous ne demanderons pas d'autorisations qui ne sont pas nécessaires. Nous ne vous demanderons que l'autorisation de consulter les statistiques de vos vidéos.
### Comment puis-je faire confiance à ce compte de dislikes ?
Nous avons mis en place des mesures pour prévenir les attaques de robots et nous allons continuer à travailler pour améliorer l'efficacité du système de prévention des robots : cela nous aidera à faire en sorte que le nombre de dislikes soit une bonne représentation du nombre réel. Bien entendu, il ne sera jamais précis à 100 %, c'est donc à vous de décider si vous lui faites confiance ou non.
### Pourquoi ne pas partager le code du backend ?
Nous la partagerons à un moment donné - mais il n'y a pas vraiment de raison de la partager pour le moment. Cela donne un faux sentiment de sécurité, car dans un système zero-trust, nous pourrions tout aussi bien publier une version et en déployer une autre. Il y a de nombreuses raisons de garder le code caché, notamment pour lutter contre le spam. Cacher/dissimuler le code de traitement du spam est une pratique assez standard.
+31
View File
@@ -0,0 +1,31 @@
Прочитать на других языках: [English](SECURITY-FAQ.md)
# Безопасность
### Вы отслеживаете мою историю просмотров?
Нет. Код расширения находится в открытом доступе, и вы можете ознакомиться с ним самостоятельно. Единственная передаваемая информация - это идентификатор видео, который необходим для получения данных о количестве просмотров видео. Никаких дополнительных заголовков не передаётся. На коммуникационном уровне серверу будет передан ваш публичный IP-адрес, а также время, когда был сделан запрос. Однако ничто из этого не идентифицирует вас каким-либо образом. Предполагая среду с нулевым доверием, лучшее, что мы можем получить, это динамический IP. Который сегодня ваш, а завтра - вашего соседа. Если вы действительно беспокоитесь о том, что ваш IP может быть отслежен, вы, вероятно, уже используете какой-нибудь VPN.
### Можете ли вы однозначно идентифицировать меня, если я оставил отметку «Не нравится»?
Да. Когда вы оставляете видео отметку «Не нравится», мы создаём для вас случайно созданный уникальный идентификатор, который не привязан к вашему аккаунту Google. Это делается для избежания ботов. Но нет никакого способа привязать этот случайный идентификатор к вам или вашему личному аккаунту YouTube.
### Какой именно информацией вы располагаете?
Только идентификатор видео. Ни ваших комментариев, ни вашего имени пользователя, ни того, с кем вы поделились видео, ни каких-либо дополнительных метаданных. Ничего. Только идентификатор видео.
### Как хранится мой IP-адрес?
Внутренняя часть нашего сервера хранит нехешированные IP-адреса только в энергозависимой памяти (ОЗУ). Эти адреса не хранятся на жёстком диске и поэтому не регистрируются. Мы хэшируем IP-адреса, и оно хранится вместо них. Это сделано для предотвращения вандализма в базе данных.
### Я слышал обсуждение 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>) очень безопасен. Вы можете отозвать доступ к своему аккаунту в любое время, и можете дать нам ограниченные разрешения. Мы не будем запрашивать никаких разрешений, которые не требуются. Мы будем запрашивать разрешения только для просмотра статистики ваших видео.
### Как я могу доверять этому счётчику отметок «Не нравится»?
Мы приняли меры по предотвращению атак ботов и собираемся продолжать работать над повышением эффективности системы предотвращения ботов: это поможет нам сохранить подсчёт отметок «Не нравится» как хороший представитель фактического количества. Конечно, он никогда не будет точным на 100%, поэтому вы сами решаете, доверять ему или нет.
### Почему бы вам не поделиться кодом внутренней части своего сервера?
Мы поделимся им в какой-то момент - но сейчас нет никаких реальных причин делиться ею. Это даёт ложное чувство безопасности - ведь в системе с нулевым доверием мы можем с таким же успехом раскрыть одну версию, но развернуть другую. Есть много причин держать код в тайне, в частности, как мы боремся со спамом. Скрытие и запутывание кода обработки спама - это довольно стандартная практика.
+2 -1
View File
@@ -1,3 +1,5 @@
Read this in other languages: [Français](readmefr.md)
**Contents** **Contents**
- [Guides](#guides) - [Guides](#guides)
@@ -18,7 +20,6 @@
<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)
+38
View File
@@ -0,0 +1,38 @@
Lisez ceci dans d'autres langues : [English](readme.md)
**Contenu**
- [Guides](#guides)
- [FAQ](#faq)
<!-- - [Autres listes](#autres-listes) -->
<br>
## Guides
- [Téléchargement, installation et utilisation](https://github.com/Anarios/return-youtube-dislike/wiki/T%C3%A9l%C3%A9chargement,-installation-et-utilisation)
- [Dépannage](https://github.com/Anarios/return-youtube-dislike/wiki/Guide-de-d%C3%A9pannage)
<!-- - [FAQ](FAQfr.md)
- [Quand et comment signaler les bugs](Guide__Bug_Reportingfr.md)
- [Contribution](/CONTRIBUTINGfr.md) -->
<!-- - [Comment mettre à jour le wiki](/) -->
<br>
## FAQ
- [Général](FAQfr.md)
- [Sécurité](SECURITY-FAQfr.md)
<!-- - [Vie privée](FAQ_Privacyfr.md)
- [Technique](FAQ_Technicalfr.md)
- [Créateurs](FAQ_Creatorsfr.md)
<br>
## Autres listes
- [Problèmes courants](Common_Problemsfr.md)
- [Questions répétitives](Repeated_Questionsfr.md)
- [Demandes répétitives de fonctionnalités](Repeated_Feature_requestsfr.md)
- [Questions répétitives](Repeated_Issuesfr.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)
@@ -33,8 +33,9 @@ const extConfig = {
colorTheme: "classic", // [classic*, accessible, neon] Color theme (red/green, blue/yellow, pink/cyan) colorTheme: "classic", // [classic*, accessible, neon] Color theme (red/green, blue/yellow, pink/cyan)
numberDisplayFormat: "compactShort", // [compactShort*, compactLong, standard] Number format (For non-English locale users, you may be able to improve appearance with a different option. Please file a feature request if your locale is not covered) numberDisplayFormat: "compactShort", // [compactShort*, compactLong, standard] Number format (For non-English locale users, you may be able to improve appearance with a different option. Please file a feature request if your locale is not covered)
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.
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";
@@ -100,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
);
}); });
}); });
} }
@@ -203,10 +212,10 @@ function getLikeCountFromButton() {
if (isShorts()) { if (isShorts()) {
//Youtube Shorts don't work with this query. It's not nessecary; we can skip it and still see the results. //Youtube Shorts don't work with this query. It's not nessecary; we can skip it and still see the results.
//It should be possible to fix this function, but it's not critical to showing the dislike count. //It should be possible to fix this function, but it's not critical to showing the dislike count.
return 0; return false;
} }
let likesStr = getLikeButton() let likesStr = getLikeButton()
.querySelector("button") .querySelector("yt-formatted-string#text")
.getAttribute("aria-label") .getAttribute("aria-label")
.replace(/\D/g, ""); .replace(/\D/g, "");
return likesStr.length > 0 ? parseInt(likesStr) : false; return likesStr.length > 0 ? parseInt(likesStr) : false;
@@ -262,6 +271,31 @@ function createRateBar(likes, dislikes) {
const widthPercent = const widthPercent =
likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50; likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50;
var likePercentage = parseFloat(widthPercent.toFixed(1));
const dislikePercentage = (100 - likePercentage).toLocaleString();
likePercentage = likePercentage.toLocaleString();
var tooltipInnerHTML;
switch (extConfig.tooltipPercentageMode) {
case "dash_like":
tooltipInnerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}&nbsp;&nbsp;-&nbsp;&nbsp;${likePercentage}%`;
break;
case "dash_dislike":
tooltipInnerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}&nbsp;&nbsp;-&nbsp;&nbsp;${dislikePercentage}%`;
break;
case "both":
tooltipInnerHTML = `${likePercentage}%&nbsp;/&nbsp;${dislikePercentage}%`;
break;
case "only_like":
tooltipInnerHTML = `${likePercentage}%`;
break;
case "only_dislike":
tooltipInnerHTML = `${dislikePercentage}%`;
break;
default:
tooltipInnerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}`;
}
if (!rateBar && !isMobile) { if (!rateBar && !isMobile) {
let colorLikeStyle = ""; let colorLikeStyle = "";
let colorDislikeStyle = ""; let colorDislikeStyle = "";
@@ -286,7 +320,7 @@ function createRateBar(likes, dislikes) {
</div> </div>
</div> </div>
<tp-yt-paper-tooltip position="top" id="ryd-dislike-tooltip" class="style-scope ytd-sentiment-bar-renderer" role="tooltip" tabindex="-1"> <tp-yt-paper-tooltip position="top" id="ryd-dislike-tooltip" class="style-scope ytd-sentiment-bar-renderer" role="tooltip" tabindex="-1">
<!--css-build:shady-->${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()} <!--css-build:shady-->${tooltipInnerHTML}
</tp-yt-paper-tooltip> </tp-yt-paper-tooltip>
</div> </div>
` `
@@ -298,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 = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}`;
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);
} }
} }
} }
@@ -333,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);
@@ -372,6 +418,12 @@ function likeClicked() {
createRateBar(likesvalue, dislikesvalue); createRateBar(likesvalue, dislikesvalue);
previousState = 1; previousState = 1;
} }
if (extConfig.numberDisplayReformatLikes === true) {
const nativeLikes = getLikeCountFromButton();
if (nativeLikes !== false) {
setLikes(numberFormat(nativeLikes));
}
}
} }
} }
@@ -393,6 +445,12 @@ function dislikeClicked() {
setDislikes(numberFormat(dislikesvalue)); setDislikes(numberFormat(dislikesvalue));
createRateBar(likesvalue, dislikesvalue); createRateBar(likesvalue, dislikesvalue);
previousState = 2; previousState = 2;
if (extConfig.numberDisplayReformatLikes === true) {
const nativeLikes = getLikeCountFromButton();
if (nativeLikes !== false) {
setLikes(numberFormat(nativeLikes));
}
}
} }
} }
} }
@@ -434,32 +492,40 @@ function roundDown(num) {
} }
function numberFormat(numberState) { function numberFormat(numberState) {
let userLocales;
try {
userLocales = new URL(
Array.from(document.querySelectorAll("head > link[rel='search']"))
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href")
)?.searchParams?.get("locale");
} catch {
userLocales = document.documentElement.lang;
}
let numberDisplay; let numberDisplay;
if (extConfig.numberDisplayRoundDown === false) { if (extConfig.numberDisplayRoundDown === false) {
numberDisplay = numberState; numberDisplay = numberState;
} else { } else {
numberDisplay = roundDown(numberState); numberDisplay = roundDown(numberState);
} }
return getNumberFormatter(extConfig.numberDisplayFormat, userLocales).format( return getNumberFormatter(extConfig.numberDisplayFormat).format(
numberDisplay numberDisplay
); );
} }
function getNumberFormatter(optionSelect, userLocales) { function getNumberFormatter(optionSelect) {
let userLocales;
if (document.documentElement.lang) {
userLocales = document.documentElement.lang;
} else if (navigator.language) {
userLocales = navigator.language;
} else {
try {
userLocales = new URL(
Array.from(document.querySelectorAll("head > link[rel='search']"))
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href")
)?.searchParams?.get("locale");
} catch {
cLog(
"Cannot find browser locale. Use en as default for number formatting."
);
userLocales = "en";
}
}
let formatterNotation; let formatterNotation;
let formatterCompactDisplay; let formatterCompactDisplay;
switch (optionSelect) { switch (optionSelect) {
case "compactLong": case "compactLong":
formatterNotation = "compact"; formatterNotation = "compact";
@@ -475,13 +541,10 @@ function getNumberFormatter(optionSelect, userLocales) {
formatterCompactDisplay = "short"; formatterCompactDisplay = "short";
} }
const formatter = Intl.NumberFormat( const formatter = Intl.NumberFormat(userLocales, {
document.documentElement.lang || userLocales || navigator.language, notation: formatterNotation,
{ compactDisplay: formatterCompactDisplay,
notation: formatterNotation, });
compactDisplay: formatterCompactDisplay,
}
);
return formatter; return formatter;
} }
@@ -516,7 +579,7 @@ function getColorFromTheme(voteIsLike) {
function setEventListeners(evt) { function setEventListeners(evt) {
let jsInitChecktimer; let jsInitChecktimer;
function checkForJS_Finish(check) { function checkForJS_Finish() {
console.log(); console.log();
if (isShorts() || (getButtons()?.offsetParent && isVideoLoaded())) { if (isShorts() || (getButtons()?.offsetParent && isVideoLoaded())) {
const buttons = getButtons(); const buttons = getButtons();
@@ -0,0 +1,62 @@
{
"extensionName": {
"message": "Return YouTube Dislike"
},
"extensionNameBeta": {
"message": "Return YouTube Dislike Beta"
},
"extensionDesc": {
"message": "Navrátí možnost zobrazení počtu disliků"
},
"textDeveloper": {
"message": "vytvořil Dmitry Selivanov & komunita"
},
"linkWebsite": {
"message": "Web"
},
"linkFAQ": {
"message": "FAQ"
},
"linkDonate": {
"message": "Přispějte"
},
"linkHelp": {
"message": "Nápověda"
},
"legendSettings": {
"message": "Nastavení"
},
"textSettings": {
"message": "Zakázat odesílání like/dislike"
},
"textLikesDisabled": {
"message": "zakázáno majitelem"
},
"textSettingsHover": {
"message": "Zastaví počítání vašich liků a disliků."
},
"textTempUnavailable": {
"message": "dočasně nedostupné"
},
"textUpdate": {
"message": "aktualizovat na"
},
"version30installed": {
"message": "Verze 3.0.0.1 nainstalována"
},
"whatsnew": {
"message": "Co je nového"
},
"shortsSupport": {
"message": "Podpora YouTube Shorts"
},
"customColors": {
"message": "Vlastní barvy pro lištu disliků a tlačítka"
},
"customNumberFormats": {
"message": "Vlastní formáty čísel"
},
"considerDonating": {
"message": "Jediná věc, díky které rozšíření funguje, jsou vaše příspěvky. Zvažte prosím podpoření projektu."
}
}
+33 -1
View File
@@ -2,7 +2,6 @@
"extensionName": { "extensionName": {
"message": "Return YouTube Dislike" "message": "Return YouTube Dislike"
}, },
"extensionNameBeta": { "extensionNameBeta": {
"message": "Return YouTube Dislike Beta" "message": "Return YouTube Dislike Beta"
}, },
@@ -50,5 +49,38 @@
}, },
"customNumberFormats": { "customNumberFormats": {
"message": "Benutzerdefinierte Zahlenformate" "message": "Benutzerdefinierte Zahlenformate"
},
"considerDonating": {
"message": "Das Einzige, was die Erweiterung am Laufen hält, sind Ihre Spenden, bitte erwägen Sie, das Projekt zu unterstützen."
},
"roundNumbers": {
"message": "Zeige abgerundete Zahlen"
},
"roundNumbersHover": {
"message": "Zahlen abrunden (Standardverhalten von YouTube)."
},
"reformatLikes": {
"message": "Wie Zahlen neu formatieren"
},
"reformatLikesHover": {
"message": "Machen Sie das Format der Vorlieben und Abneigungen konsistent."
},
"numberFormat": {
"message": "Zahlenformat:"
},
"colorizeRatio": {
"message": "Verhältnisbalken einfärben"
},
"colorizeRatioHover": {
"message": "Benutzerdefinierte Farben für die Verhältnisleiste verwenden."
},
"colorizeThumbs": {
"message": "Buttons einfärben"
},
"colorizeThumbsHover": {
"message": "Benutzerdefinierte Farben für die Schaltflächensymbole verwenden."
},
"colorTheme": {
"message": "Farbschema:"
} }
} }
+75 -3
View File
@@ -23,6 +23,9 @@
"linkHelp": { "linkHelp": {
"message": "Help" "message": "Help"
}, },
"linkChangelog": {
"message": "Change Log"
},
"legendSettings": { "legendSettings": {
"message": "Settings" "message": "Settings"
}, },
@@ -30,16 +33,55 @@
"message": "Disable like/dislike submission" "message": "Disable like/dislike submission"
}, },
"textLikesDisabled": { "textLikesDisabled": {
"message": "disabled by owner" "message": "Disabled by Owner"
}, },
"textSettingsHover": { "textSettingsHover": {
"message": "Stops counting your likes and dislikes." "message": "Stops counting your likes and dislikes."
}, },
"textRoundingNumbers": {
"message": "Round down like/dislike stats (default YouTube behavior)"
},
"textRoundingNumbersHover": {
"message": "Show rounded down stats."
},
"textConsistentFormat": {
"message": "Make likes and dislikes format consistent"
},
"textConsistentFormatHover": {
"message": "Re-format like numbers."
},
"textNumberFormat": {
"message": "Number format:"
},
"textColorizeRatioBar": {
"message": "Colorize ratio bar"
},
"textColorizeRatioBarHover": {
"message": "Use custom colors for ratio bar."
},
"textColorizeThumbs": {
"message": "Colorize thumbs"
},
"textColorizeThumbsHover": {
"message": "Use custom colors for thumb icons."
},
"textColorTheme": {
"message": "Color theme:"
},
"textColorTheme1": {
"message": "Classic"
},
"textColorTheme2": {
"message": "Accessible"
},
"textColorTheme3": {
"message": "Neon"
},
"textTempUnavailable": { "textTempUnavailable": {
"message": "temp n/a" "message": "Temporarily Unavailable"
}, },
"textUpdate": { "textUpdate": {
"message": "update to" "message": "Update to"
}, },
"version30installed": { "version30installed": {
"message": "Version 3.0.0.1 installed" "message": "Version 3.0.0.1 installed"
@@ -58,5 +100,35 @@
}, },
"considerDonating": { "considerDonating": {
"message": "The only thing that keeps the extension running is your donations, please consider supporting the project." "message": "The only thing that keeps the extension running is your donations, please consider supporting the project."
},
"roundNumbers": {
"message": "Show rounded down numbers"
},
"roundNumbersHover": {
"message": "Round down numbers (default YouTube behavior)."
},
"reformatLikes": {
"message": "Re-format like numbers"
},
"reformatLikesHover": {
"message": "Make likes and dislikes format consistent."
},
"numberFormat": {
"message": "Number format:"
},
"colorizeRatio": {
"message": "Colorize ratio bar"
},
"colorizeRatioHover": {
"message": "Use custom colors for the ratio bar."
},
"colorizeThumbs": {
"message": "Colorize thumbs"
},
"colorizeThumbsHover": {
"message": "Use custom colors for the thumb icons."
},
"colorTheme": {
"message": "Color theme:"
} }
} }
+101 -5
View File
@@ -1,15 +1,15 @@
{ {
"extensionName": { "extensionName": {
"message": "Regresar los Dislikes de YouTube" "message": "Return YouTube Dislike"
}, },
"extensionNameBeta": { "extensionNameBeta": {
"message": "Return YouTube Dislike Beta" "message": "Return YouTube Dislike Beta"
}, },
"extensionDesc": { "extensionDesc": {
"message": "Regresa la posibilidad de ver los dislikes" "message": "Recupera la característica de los «dislikes» («No me gusta»)"
}, },
"textDeveloper": { "textDeveloper": {
"message": "por Dmitry Selivanov y la Comunidad" "message": "por Dmitry Selivanov y la comunidad"
}, },
"linkWebsite": { "linkWebsite": {
"message": "Página web" "message": "Página web"
@@ -23,16 +23,112 @@
"linkHelp": { "linkHelp": {
"message": "Ayuda" "message": "Ayuda"
}, },
"linkChangelog": {
"message": "Historial de cambios"
},
"legendSettings": { "legendSettings": {
"message": "Ajustes" "message": "Ajustes"
}, },
"textSettings": { "textSettings": {
"message": "Desactivar los dislikes" "message": "Desactivar envío de votos"
},
"textLikesDisabled": {
"message": "desactivado por el propietario"
}, },
"textSettingsHover": { "textSettingsHover": {
"message": "Dejar de contar los dislikes." "message": "Deja de contar tus «Me gusta» y «No me gusta»."
},
"textRoundingNumbers": {
"message": "Redondear cifras (comportamiento original de YouTube)"
},
"textRoundingNumbersHover": {
"message": "Muestra las estadísticas redondeadas."
},
"textConsistentFormat": {
"message": "Unificar formato de votos"
},
"textConsistentFormatHover": {
"message": "Cambia el formato de las cifras de «Me gusta» y «No me gusta»."
},
"textNumberFormat": {
"message": "Formato de cifras:"
},
"textColorizeRatioBar": {
"message": "Cambiar color de barra de votos"
},
"textColorizeRatioBarHover": {
"message": "Utiliza colores personalizados para la barra de votos."
},
"textColorizeThumbs": {
"message": "Cambiar color de iconos de pulgares"
},
"textColorizeThumbsHover": {
"message": "Utiliza colores personalizados para los iconos de los pulgares."
},
"textColorTheme": {
"message": "Esquema de colores:"
},
"textColorTheme1": {
"message": "Clásico"
},
"textColorTheme2": {
"message": "Accesible"
},
"textColorTheme3": {
"message": "Neón"
},
"textTempUnavailable": {
"message": "no disponible temporalmente"
}, },
"textUpdate": { "textUpdate": {
"message": "actualizar a" "message": "actualizar a"
},
"version30installed": {
"message": "Versión 3.0.0.1 instalada"
},
"whatsnew": {
"message": "Novedades"
},
"shortsSupport": {
"message": "Soporte de YouTube Shorts"
},
"customColors": {
"message": "Colores personalizados para la barra y los botones que no me gustan"
},
"customNumberFormats": {
"message": "Formatos de números personalizados"
},
"considerDonating": {
"message": "Lo único que mantiene la extensión en funcionamiento son sus donaciones, considere apoyar el proyecto."
},
"roundNumbers": {
"message": "Mostrar números redondeados hacia abajo"
},
"roundNumbersHover": {
"message": "Redondear números hacia abajo (comportamiento predeterminado de YouTube)."
},
"reformatLikes": {
"message": "Reformatear como números"
},
"reformatLikesHover": {
"message": "Haz que el formato de like y dislike sea consistente."
},
"numberFormat": {
"message": "Formato de número:"
},
"colorizeRatio": {
"message": "Colorear barra de relación"
},
"colorizeRatioHover": {
"message": "Usar colores personalizados para la barra de proporción."
},
"colorizeThumbs": {
"message": "Colorear los botones likes y dislike"
},
"colorizeThumbsHover": {
"message": "Usar colores personalizados para los íconos de los botones."
},
"colorTheme": {
"message": "Combinación de colores:"
} }
} }
@@ -40,5 +40,53 @@
}, },
"textUpdate": { "textUpdate": {
"message": "mettre à jour vers" "message": "mettre à jour vers"
},
"version30installed": {
"message": "Version 3.0.0.1 installée"
},
"whatsnew": {
"message": "Quoi de neuf"
},
"shortsSupport": {
"message": "Prise en charge des YouTube Shorts"
},
"customColors": {
"message": "Couleurs personnalisées pour la barre du dislike et les boutons"
},
"customNumberFormats": {
"message": "Formats numériques personnalisés"
},
"considerDonating": {
"message": "La seule chose qui permet à l'extension de fonctionner est vos dons, veuillez envisager de soutenir le projet."
},
"roundNumbers": {
"message": "Afficher les nombres arrondis"
},
"roundNumbersHover": {
"message": "Arrondir les nombres à la baisse (comportement par défaut de YouTube)."
},
"reformatLikes": {
"message": "Formater le nombre de likes"
},
"reformatLikesHover": {
"message": "Rend la valeur des statistiques plus cohérente."
},
"numberFormat": {
"message": "Format numérique:"
},
"colorizeRatio": {
"message": "Coloriser la barre de ratio"
},
"colorizeRatioHover": {
"message": "Utilisez des couleurs personnalisées pour la barre de ratio."
},
"colorizeThumbs": {
"message": "Mettre en couleur les boutons like et dislike"
},
"colorizeThumbsHover": {
"message": "Utiliser des couleurs personnalisées pour les boutons like et dislike."
},
"colorTheme": {
"message": "Schéma de couleur:"
} }
} }
@@ -49,5 +49,38 @@
}, },
"customNumberFormats": { "customNumberFormats": {
"message": "Προσαρμοζόμενη μορφή αριθμών." "message": "Προσαρμοζόμενη μορφή αριθμών."
},
"considerDonating": {
"message": "Το μόνο πράγμα που διατηρεί την επέκταση σε λειτουργία είναι οι δωρεές σας, σκεφτείτε να υποστηρίξετε το έργο."
},
"roundNumbers": {
"message": "Εμφάνιση στρογγυλεμένων αριθμών"
},
"roundNumbersHover": {
"message": "Στρογγυλοποιήστε την τιμή μέτρησης (αυτή είναι η προεπιλεγμένη επιλογή του YouTube)."
},
"reformatLikes": {
"message": "Μορφοποίηση του αριθμού των likes"
},
"reformatLikesHover": {
"message": "Κάνει την αξία των στατιστικών πιο συνεπή."
},
"numberFormat": {
"message": "Αριθμητική μορφή"
},
"colorizeRatio": {
"message": "Χρωματίστε τη γραμμή dislikes"
},
"colorizeRatioHover": {
"message": "Χρωματίστε τη γραμμή dislikes με προσαρμοσμένα χρώματα."
},
"colorizeThumbs": {
"message": "Χρωματίστε τα κουμπιά"
},
"colorizeThumbsHover": {
"message": "Χρωματίστε τα κουμπιά likes και dislikes με προσαρμοσμένα χρώματα."
},
"colorTheme": {
"message": "Χρωματικός συνδυασμός:"
} }
} }
+37 -4
View File
@@ -9,7 +9,7 @@
"message": "Ripristina la possibilità di vedere i dislikes" "message": "Ripristina la possibilità di vedere i dislikes"
}, },
"textDeveloper": { "textDeveloper": {
"message": "di Dmitry Selivanov e la Community" "message": "grazie a Dmitry Selivanov e alla Comunità"
}, },
"linkWebsite": { "linkWebsite": {
"message": "Sito web" "message": "Sito web"
@@ -27,10 +27,10 @@
"message": "Impostazioni" "message": "Impostazioni"
}, },
"textSettings": { "textSettings": {
"message": "Disabilita l'invio di like/dislike" "message": "Disabilita l'invio dei like e dei dislike"
}, },
"textSettingsHover": { "textSettingsHover": {
"message": "Interrompe il conteggio dei tuoi likes e dislikes." "message": "Interrompe il conteggio dei tuoi likes e dislikes da parte dell'estensione."
}, },
"textUpdate": { "textUpdate": {
"message": "aggiorna a" "message": "aggiorna a"
@@ -39,7 +39,7 @@
"message": "Versione 3.0.0.1 installata" "message": "Versione 3.0.0.1 installata"
}, },
"whatsnew": { "whatsnew": {
"message": "Cosa c'è di nuovo" "message": "Quali sono le novità"
}, },
"shortsSupport": { "shortsSupport": {
"message": "Supporto per YouTube Shorts" "message": "Supporto per YouTube Shorts"
@@ -49,5 +49,38 @@
}, },
"customNumberFormats": { "customNumberFormats": {
"message": "Formati numerici personalizzati" "message": "Formati numerici personalizzati"
},
"considerDonating": {
"message": "Le uniche cosa che tengono in piedi il progetto sono le vostre donazioni. Per favore, considera di effettuare una donazione per supportarci. Grazie."
},
"roundNumbers": {
"message": "Mostra i numeri arrotondati"
},
"roundNumbersHover": {
"message": "Arrotonda il valore del conteggio (questa è l'opzione predefinita di YouTube)."
},
"reformatLikes": {
"message": "Formatta il numero di like"
},
"reformatLikesHover": {
"message": "Rende il valore delle statistiche più consistente."
},
"numberFormat": {
"message": "Formato numerico"
},
"colorizeRatio": {
"message": "Colora la barra dei dislike"
},
"colorizeRatioHover": {
"message": "Colora la barra dei dislike con colori personalizzati."
},
"colorizeThumbs": {
"message": "Colora i pulsanti"
},
"colorizeThumbsHover": {
"message": "Colora i pulsanti dei like e dei dislike con colori personalizzati."
},
"colorTheme": {
"message": "Schema colori:"
} }
} }
+31 -1
View File
@@ -57,6 +57,36 @@
"message": "評価数の表示形式のカスタマイズ" "message": "評価数の表示形式のカスタマイズ"
}, },
"considerDonating": { "considerDonating": {
"message": "この拡張機能を存続させることができるのは、皆様からの寄付だけです。" "message": "この拡張機能を存続させることができるのは,皆様からの寄付だけです。"
},
"roundNumbers": {
"message": "四捨五入された数値を表示"
},
"roundNumbersHover": {
"message": "カウント値を四捨五入します(これはYouTubeのデフォルトオプションです)。"
},
"reformatLikes": {
"message": "いいねの数をフォーマットする"
},
"reformatLikesHover": {
"message": "統計値の一貫性を高めます。"
},
"numberFormat": {
"message": "数値形式"
},
"colorizeRatio": {
"message": "嫌いなバーに色を付ける"
},
"colorizeRatioHover": {
"message": "嫌いなバーをカスタムカラーで色付けします。"
},
"colorizeThumbs": {
"message": "ボタンに色を付ける"
},
"colorizeThumbsHover": {
"message": "カスタムカラーのボタンの色が好きで嫌いです。"
},
"colorTheme": {
"message": "配色:"
} }
} }
@@ -1,21 +1,21 @@
{ {
"extensionName": { "extensionName": {
"message": "Devolver Dislikes do YouTube" "message": "Voltar Dislikes do YouTube"
}, },
"extensionNameBeta": { "extensionNameBeta": {
"message": "Return YouTube Dislike Beta" "message": "Voltar Dislikes do YouTube Beta"
}, },
"extensionDesc": { "extensionDesc": {
"message": "A capacidade de ver os retornos de não gostos" "message": "Voltar os Deslikes do YouTube"
}, },
"textDeveloper": { "textDeveloper": {
"message": "por Dmitry Selivanov e a Comunidade" "message": "por Dmitry Selivanov e Comunidade"
}, },
"linkWebsite": { "linkWebsite": {
"message": "Website" "message": "Website"
}, },
"linkFAQ": { "linkFAQ": {
"message": "FAQ" "message": "Perguntas Frequentes"
}, },
"linkDonate": { "linkDonate": {
"message": "Doe" "message": "Doe"
@@ -24,15 +24,39 @@
"message": "Ajuda" "message": "Ajuda"
}, },
"legendSettings": { "legendSettings": {
"message": "Ajustes" "message": "Configurações"
}, },
"textSettings": { "textSettings": {
"message": "Desaproveitar as aversões" "message": "Desativar envio de Curtidas/Não Curtidas"
},
"textLikesDisabled": {
"message": "Desativado pelo proprietário"
}, },
"textSettingsHover": { "textSettingsHover": {
"message": "Pare de contar as antipatias." "message": "Parar de contar suas curtidas e não curtidas."
},
"textTempUnavailable": {
"message": "Temporariamente indisponível"
}, },
"textUpdate": { "textUpdate": {
"message": "atualização para" "message": "Atualizar para"
},
"version30installed": {
"message": "Versão 3.0.0.1 instalada"
},
"whatsnew": {
"message": "O que há de novo?"
},
"shortsSupport": {
"message": "Suporte para Shorts"
},
"customColors": {
"message": "Cores personalizadas para barra de não curtidas e botões"
},
"customNumberFormats": {
"message": "Formato de números personalizados"
},
"considerDonating": {
"message": "A única coisa que mantém a extensão funcionando são suas doações, considere apoiar o projeto."
} }
} }
@@ -52,5 +52,35 @@
}, },
"considerDonating": { "considerDonating": {
"message": "Единственный источник доходов позволяющий расширению продолжать работу - ваши пожертвования. Пожалуйста, поддержите нас и помогите нам развиваться." "message": "Единственный источник доходов позволяющий расширению продолжать работу - ваши пожертвования. Пожалуйста, поддержите нас и помогите нам развиваться."
},
"roundNumbers": {
"message": "Показывать округленные числа"
},
"roundNumbersHover": {
"message": "Округлить значение счетчика (это параметр YouTube по умолчанию)."
},
"reformatLikes": {
"message": "Форматировать количество лайков"
},
"reformatLikesHover": {
"message": "Делает значение статистики более последовательным."
},
"numberFormat": {
"message": "Числовой формат"
},
"colorizeRatio": {
"message": "Раскрасьте полосу неприязни"
},
"colorizeRatioHover": {
"message": "Раскрасьте полосу неприязни собственными цветами."
},
"colorizeThumbs": {
"message": "Раскрасьте кнопки"
},
"colorizeThumbsHover": {
"message": "Раскрасьте кнопки нравится и не нравится с помощью пользовательских цветов."
},
"colorTheme": {
"message": "Цветовая схема:"
} }
} }
+1 -1
View File
@@ -41,6 +41,6 @@
height: 2px; height: 2px;
position: absolute; position: absolute;
padding-top: 6px; padding-top: 6px;
padding-bottom: 28px; padding-bottom: 12px;
top: -6px; top: -6px;
} }
+1 -3
View File
@@ -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"
}, },
+62 -5
View File
@@ -15,7 +15,8 @@ html,
body { body {
background-color: var(--background); background-color: var(--background);
color: var(--white); color: var(--white);
min-width: 300px; min-width: 310px;
min-height: 350px;
padding: 0.5em; padding: 0.5em;
font-family: "Roboto", Arial, Helvetica, sans-serif; font-family: "Roboto", Arial, Helvetica, sans-serif;
font-size: 14px; font-size: 14px;
@@ -68,9 +69,12 @@ button:hover {
border-radius: 0.25rem; border-radius: 0.25rem;
} }
.switch:before { .switch::before,
.label-with-hover-tip::before {
content: attr(data-hover); content: attr(data-hover);
visibility: hidden; visibility: hidden;
opacity: 0;
transition: visibility 0.1s linear, opacity 0.1s linear;
width: 250px; width: 250px;
background-color: var(--secondary); background-color: var(--secondary);
border-radius: 0.5rem; border-radius: 0.5rem;
@@ -82,8 +86,27 @@ button:hover {
top: 160%; top: 160%;
} }
.switch:hover:before { .switch:hover::before,
.label-with-hover-tip:hover::before {
visibility: visible; visibility: visible;
opacity: 1;
}
.fade-in {
opacity: 1;
animation-name: fadeInOpacity;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 2s;
}
@keyframes fadeInOpacity {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
} }
#advancedToggle { #advancedToggle {
@@ -123,6 +146,32 @@ button:hover {
border: 2px solid var(--secondary); border: 2px solid var(--secondary);
border-radius: 0.5rem; border-radius: 0.5rem;
padding: 1rem; padding: 1rem;
overflow-y: auto;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 1rem;
}
::-webkit-scrollbar-track {
background: #111; /* color of the tracking area */
}
::-webkit-scrollbar-thumb {
background-color: #333; /* color of the scroll thumb */
border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
}
::-webkit-scrollbar-thumb:hover {
background-color: #f22; /* color of the scroll thumb */
border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
} }
#advancedLegend { #advancedLegend {
@@ -142,6 +191,14 @@ button:hover {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.label-with-hover-tip {
position: relative;
display: inline-block;
width: 80px;
height: 17px;
margin-bottom: 1rem;
}
.switch:last-of-type { .switch:last-of-type {
margin-bottom: 0; margin-bottom: 0;
} }
@@ -162,7 +219,7 @@ button:hover {
border-radius: 34px; border-radius: 34px;
} }
.slider:before { .slider::before {
position: absolute; position: absolute;
content: ""; content: "";
height: 13px; height: 13px;
@@ -178,7 +235,7 @@ input:checked + .slider {
background: var(--accent); background: var(--accent);
} }
input:checked + .slider:before { input:checked + .slider::before {
transform: translateX(13px); transform: translateX(13px);
background: var(--primary); background: var(--primary);
} }
+204 -153
View File
@@ -1,172 +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"
Change Log />
</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="__MSG_textSettingsHover__"> <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__</span <input type="checkbox" id="colored_thumbs" />
> <span class="slider" />
</label> <span class="switchLabel">__MSG_colorizeThumbs__</span>
<br/> </label>
<label class="switch" data-hover="Round down numbers (default YouTube behavior)"> <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">Show rounded down numbers</span> <select name="color_theme" id="color_theme">
</label> <option value="classic" id="color_theme_classic">
<br/> "__MSG_textColorTheme1__"
<label class="switch" data-hover="Make likes and dislikes format consistent"> </option>
<input type="checkbox" id="number_reformat_likes"/> <option value="accessible" id="color_theme_accessible">
<span class="slider"/> "__MSG_textColorTheme2__"
<span class="switchLabel">Re-format like numbers</span> </option>
</label> <option value="neon" id="color_theme_neon">
<br/> "__MSG_textColorTheme3__"
<div class="custom-select"> </option>
<label for="number_format">Number format:</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="Use custom colors for ratio bar.">
<input type="checkbox" id="colored_bar"/>
<span class="slider"/>
<span class="switchLabel">Colorize ratio bar</span>
</label>
</div>
<label class="switch" data-hover="Use custom colors for thumb icons.">
<input type="checkbox" id="colored_thumbs"/>
<span class="slider"/>
<span class="switchLabel">Colorize thumbs</span>
</label>
<br/>
<div class="custom-select">
<label for="color_theme">Color theme:</label>
<select name="color_theme" id="color_theme">
<option value="classic" id="color_theme_classic">Classic</option>
<option value="accessible" id="color_theme_accessible">
Accessible
</option>
<option value="neon" id="color_theme_neon">Neon</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;
" "
>&nbsp;</span >&nbsp;</span
> >
<span <span
id="color_theme_example_dislike" id="color_theme_example_dislike"
style=" style="
display: inline-block; display: inline-block;
vertical-align: text-top; vertical-align: text-top;
width: 1em; width: 1em;
height: 1em; height: 1em;
" "
>&nbsp;</span >&nbsp;</span
> >
</div> </div>
</fieldset> <br />
</body> <label
<script src="popup.js"></script> class="switch"
data-hover="Display percentage in like/dislike bar tooltip."
>
<input type="checkbox" id="show_tooltip_percentage" />
<span class="slider" />
<span class="switchLabel">Percentage in like/dislike bar tooltip.</span>
</label>
<div class="custom-select">
<label
for="tooltip_percentage_mode"
data-hover="Use custom percentage display on hover."
>Percent mode:</label
>
<select name="tooltip_percentage_mode" id="tooltip_percentage_mode">
<option value="dash_like" id="tooltip_percentage_mode_dash_like">
190&nbsp;/&nbsp;10&nbsp;&nbsp;-&nbsp;&nbsp;95%
</option>
<option
value="dash_dislike"
id="tooltip_percentage_mode_dash_dislike"
>
190&nbsp;/&nbsp;10&nbsp;&nbsp;-&nbsp;&nbsp;5%
</option>
<option value="both" id="tooltip_percentage_mode_both">
95%&nbsp;/&nbsp;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>
+62 -8
View File
@@ -1,3 +1,5 @@
import { cLog } from "./src/utils";
/* Config */ /* Config */
const config = { const config = {
advanced: false, advanced: false,
@@ -7,6 +9,8 @@ const config = {
colorTheme: "classic", colorTheme: "classic",
numberDisplayFormat: "compactShort", numberDisplayFormat: "compactShort",
numberDisplayRoundDown: true, numberDisplayRoundDown: true,
showTooltipPercentage: false,
tooltipPercentageMode: "dash_like",
numberDisplayReformatLikes: false, numberDisplayReformatLikes: false,
showAdvancedMessage: showAdvancedMessage:
'<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"><rect fill="none" height="24" width="24"/><path 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"/></svg>', '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor"><rect fill="none" height="24" width="24"/><path 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"/></svg>',
@@ -20,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",
}, },
}; };
@@ -86,9 +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("number_reformat_likes").addEventListener("click", (ev) => { document
chrome.storage.sync.set({ numberDisplayReformatLikes: 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) => {
chrome.storage.sync.set({ tooltipPercentageMode: ev.target.value });
});
document
.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");
@@ -99,14 +117,13 @@ advancedToggle.addEventListener("click", () => {
adv.style.pointerEvents = "none"; adv.style.pointerEvents = "none";
adv.style.opacity = "0"; adv.style.opacity = "0";
advancedToggle.innerHTML = config.showAdvancedMessage; advancedToggle.innerHTML = config.showAdvancedMessage;
config.advanced = false;
} else { } else {
adv.style.transform = "scale(1)"; adv.style.transform = "scale(1)";
adv.style.pointerEvents = "auto"; adv.style.pointerEvents = "auto";
adv.style.opacity = "1"; adv.style.opacity = "1";
advancedToggle.innerHTML = config.hideAdvancedMessage; advancedToggle.innerHTML = config.hideAdvancedMessage;
config.advanced = true;
} }
config.advanced = !config.advanced;
}); });
initConfig(); initConfig();
@@ -119,6 +136,8 @@ function initConfig() {
initializeColorTheme(); initializeColorTheme();
initializeNumberDisplayFormat(); initializeNumberDisplayFormat();
initializeNumberDisplayRoundDown(); initializeNumberDisplayRoundDown();
initializeTooltipPercentage();
initializeTooltipPercentageMode();
initializeNumberDisplayReformatLikes(); initializeNumberDisplayReformatLikes();
} }
@@ -133,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";
} }
}); });
@@ -190,6 +209,18 @@ function initializeNumberDisplayRoundDown() {
}); });
} }
function initializeTooltipPercentage() {
chrome.storage.sync.get(["showTooltipPercentage"], (res) => {
handleShowTooltipPercentageChangeEvent(res.showTooltipPercentage);
});
}
function initializeTooltipPercentageMode() {
chrome.storage.sync.get(["tooltipPercentageMode"], (res) => {
handleTooltipPercentageModeChangeEvent(res.tooltipPercentageMode);
});
}
function initializeNumberDisplayFormat() { function initializeNumberDisplayFormat() {
chrome.storage.sync.get(["numberDisplayFormat"], (res) => { chrome.storage.sync.get(["numberDisplayFormat"], (res) => {
handleNumberDisplayFormatChangeEvent(res.numberDisplayFormat); handleNumberDisplayFormatChangeEvent(res.numberDisplayFormat);
@@ -243,8 +274,15 @@ function storageChangeHandler(changes, area) {
if (changes.numberDisplayFormat !== undefined) { if (changes.numberDisplayFormat !== undefined) {
handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue); handleNumberDisplayFormatChangeEvent(changes.numberDisplayFormat.newValue);
} }
if (changes.showTooltipPercentage !== undefined) {
handleShowTooltipPercentageChangeEvent(
changes.showTooltipPercentage.newValue
);
}
if (changes.numberDisplayReformatLikes !== undefined) { if (changes.numberDisplayReformatLikes !== undefined) {
handleNumberDisplayReformatLikesChangeEvent(changes.numberDisplayReformatLikes.newValue); handleNumberDisplayReformatLikesChangeEvent(
changes.numberDisplayReformatLikes.newValue
);
} }
} }
@@ -293,6 +331,22 @@ function handleNumberDisplayFormatChangeEvent(value) {
.querySelector('option[value="' + value + '"]').selected = true; .querySelector('option[value="' + value + '"]').selected = true;
} }
function handleShowTooltipPercentageChangeEvent(value) {
config.showTooltipPercentage = value;
document.getElementById("show_tooltip_percentage").checked = value;
}
function handleTooltipPercentageModeChangeEvent(value) {
if (!value) {
value = "dash_like";
}
config.tooltipPercentageMode = value;
document
.getElementById("tooltip_percentage_mode")
.querySelector('option[value="' + value + '"]').selected = true;
}
function handleNumberDisplayReformatLikesChangeEvent(value) { function handleNumberDisplayReformatLikesChangeEvent(value) {
config.numberDisplayReformatLikes = value; config.numberDisplayReformatLikes = value;
document.getElementById("number_reformat_likes").checked = value; document.getElementById("number_reformat_likes").checked = value;
+45
View File
@@ -77,6 +77,8 @@ api.runtime.onInstalled.addListener((details) => {
if ( if (
// No need to show changelog if its was a browser update (and not extension update) // No need to show changelog if its was a browser update (and not extension update)
details.reason === "browser_update" || details.reason === "browser_update" ||
// Chromium (e.g., Google Chrome Cannary) uses this name instead of the one above for some reason
details.reason === "chrome_update" ||
// No need to show changelog if developer just reloaded the extension // No need to show changelog if developer just reloaded the extension
details.reason === "update" details.reason === "update"
) )
@@ -277,6 +279,16 @@ function storageChangeHandler(changes, area) {
changes.numberDisplayReformatLikes.newValue changes.numberDisplayReformatLikes.newValue
); );
} }
if (changes.showTooltipPercentage !== undefined) {
handleShowTooltipPercentageChangeEvent(
changes.showTooltipPercentage.newValue
);
}
if (changes.numberDisplayReformatLikes !== undefined) {
handleNumberDisplayReformatLikesChangeEvent(
changes.numberDisplayReformatLikes.newValue
);
}
} }
function handleDisableVoteSubmissionChangeEvent(value) { function handleDisableVoteSubmissionChangeEvent(value) {
@@ -292,6 +304,17 @@ function handleNumberDisplayFormatChangeEvent(value) {
extConfig.numberDisplayFormat = value; extConfig.numberDisplayFormat = value;
} }
function handleShowTooltipPercentageChangeEvent(value) {
extConfig.showTooltipPercentage = value;
}
function handleTooltipPercentageModeChangeEvent(value) {
if (!value) {
value = "dash_like";
}
extConfig.tooltipPercentageMode = value;
}
function handleNumberDisplayRoundDownChangeEvent(value) { function handleNumberDisplayRoundDownChangeEvent(value) {
extConfig.numberDisplayRoundDown = value; extConfig.numberDisplayRoundDown = value;
} }
@@ -333,6 +356,8 @@ function initExtConfig() {
initializeNumberDisplayFormat(); initializeNumberDisplayFormat();
initializeNumberDisplayRoundDown(); initializeNumberDisplayRoundDown();
initializeNumberDisplayReformatLikes(); initializeNumberDisplayReformatLikes();
initializeTooltipPercentage();
initializeTooltipPercentageMode();
} }
function initializeDisableVoteSubmission() { function initializeDisableVoteSubmission() {
@@ -396,6 +421,26 @@ function initializeNumberDisplayFormat() {
}); });
} }
function initializeTooltipPercentage() {
api.storage.sync.get(["showTooltipPercentage"], (res) => {
if (res.showTooltipPercentage === undefined) {
api.storage.sync.set({ showTooltipPercentage: false });
} else {
extConfig.showTooltipPercentage = res.showTooltipPercentage;
}
});
}
function initializeTooltipPercentageMode() {
api.storage.sync.get(["tooltipPercentageMode"], (res) => {
if (res.tooltipPercentageMode === undefined) {
api.storage.sync.set({ tooltipPercentageMode: "dash_like" });
} else {
extConfig.tooltipPercentageMode = res.tooltipPercentageMode;
}
});
}
function initializeNumberDisplayReformatLikes() { function initializeNumberDisplayReformatLikes() {
api.storage.sync.get(["numberDisplayReformatLikes"], (res) => { api.storage.sync.get(["numberDisplayReformatLikes"], (res) => {
if (res.numberDisplayReformatLikes === undefined) { if (res.numberDisplayReformatLikes === undefined) {
+88 -43
View File
@@ -1,5 +1,11 @@
import { getButtons } from "./buttons"; import { getButtons } from "./buttons";
import { extConfig, isMobile, isLikesDisabled } 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) {
@@ -14,55 +20,94 @@ function createRateBar(likes, dislikes) {
const widthPercent = const widthPercent =
likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50; likes + dislikes > 0 ? (likes / (likes + dislikes)) * 100 : 50;
if (!rateBar && !isMobile()) { var likePercentage = parseFloat(widthPercent.toFixed(1));
let colorLikeStyle = ""; const dislikePercentage = (100 - likePercentage).toLocaleString();
let colorDislikeStyle = ""; likePercentage = likePercentage.toLocaleString();
if (extConfig.coloredBar) {
colorLikeStyle = "; background-color: " + getColorFromTheme(true);
colorDislikeStyle = "; background-color: " + getColorFromTheme(false);
}
( if (extConfig.showTooltipPercentage) {
document.getElementById("menu-container") || var tooltipInnerHTML;
document.querySelector("ytm-slim-video-action-bar-renderer") switch (extConfig.tooltipPercentageMode) {
).insertAdjacentHTML( case "dash_dislike":
"beforeend", tooltipInnerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}&nbsp;&nbsp;-&nbsp;&nbsp;${dislikePercentage}%`;
` break;
<div class="ryd-tooltip" style="width: ${widthPx}px"> case "both":
<div class="ryd-tooltip-bar-container"> tooltipInnerHTML = `${likePercentage}%&nbsp;/&nbsp;${dislikePercentage}%`;
<div break;
id="ryd-bar-container" case "only_like":
style="width: 100%; height: 2px;${colorDislikeStyle}" tooltipInnerHTML = `${likePercentage}%`;
> break;
<div case "only_dislike":
id="ryd-bar" tooltipInnerHTML = `${dislikePercentage}%`;
style="width: ${widthPercent}%; height: 100%${colorLikeStyle}" break;
></div> default: // dash_like
</div> tooltipInnerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}&nbsp;&nbsp;-&nbsp;&nbsp;${likePercentage}%`;
</div> }
<tp-yt-paper-tooltip position="top" id="ryd-dislike-tooltip" class="style-scope ytd-sentiment-bar-renderer" role="tooltip" tabindex="-1">
<!--css-build:shady-->${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}
</tp-yt-paper-tooltip>
</div>
`
);
} else { } else {
document.getElementById("ryd-bar-container").style.width = widthPx + "px"; tooltipInnerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}`;
document.getElementById("ryd-bar").style.width = widthPercent + "%"; }
document.querySelector(
"#ryd-dislike-tooltip > #tooltip" if (!isShorts()) {
).innerHTML = `${likes.toLocaleString()}&nbsp;/&nbsp;${dislikes.toLocaleString()}`; if (!rateBar && !isMobile()) {
if (extConfig.coloredBar) { let colorLikeStyle = "";
document.getElementById("ryd-bar-container").style.backgroundColor = let colorDislikeStyle = "";
getColorFromTheme(false); if (extConfig.coloredBar) {
document.getElementById("ryd-bar").style.backgroundColor = colorLikeStyle = "; background-color: " + getColorFromTheme(true);
getColorFromTheme(true); colorDislikeStyle = "; background-color: " + getColorFromTheme(false);
}
(
document.getElementById(
isNewDesign() ? "actions-inner" : "menu-container"
) || document.querySelector("ytm-slim-video-action-bar-renderer")
).insertAdjacentHTML(
"beforeend",
`
<div class="ryd-tooltip" style="width: ${widthPx}px${
isNewDesign() ? "; margin-bottom: -2px" : ""
}">
<div class="ryd-tooltip-bar-container">
<div
id="ryd-bar-container"
style="width: 100%; height: 2px;${colorDislikeStyle}"
>
<div
id="ryd-bar"
style="width: ${widthPercent}%; height: 100%${colorLikeStyle}"
></div>
</div>
</div>
<tp-yt-paper-tooltip position="top" id="ryd-dislike-tooltip" class="style-scope ytd-sentiment-bar-renderer" role="tooltip" tabindex="-1">
<!--css-build:shady-->${tooltipInnerHTML}
</tp-yt-paper-tooltip>
</div>
`
);
// Add border between info and comments
if (isNewDesign()) {
let descriptionAndActionsElement = document.getElementById("top-row");
descriptionAndActionsElement.style.borderBottom =
"1px solid var(--yt-spec-10-percent-layer)";
descriptionAndActionsElement.style.paddingBottom = "10px";
}
} else {
document.getElementById("ryd-bar-container").style.width =
widthPx + "px";
document.getElementById("ryd-bar").style.width = widthPercent + "%";
document.querySelector("#ryd-dislike-tooltip > #tooltip").innerHTML =
tooltipInnerHTML;
if (extConfig.coloredBar) {
document.getElementById("ryd-bar-container").style.backgroundColor =
getColorFromTheme(false);
document.getElementById("ryd-bar").style.backgroundColor =
getColorFromTheme(true);
}
} }
} }
} 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);
} }
} }
+16 -1
View File
@@ -8,6 +8,7 @@ import {
extConfig, extConfig,
storedData, storedData,
setLikes, setLikes,
getLikeCountFromButton,
} from "./state"; } from "./state";
import { createRateBar } from "./bar"; import { createRateBar } from "./bar";
@@ -41,6 +42,12 @@ function likeClicked() {
createRateBar(storedData.likes, storedData.dislikes); createRateBar(storedData.likes, storedData.dislikes);
storedData.previousState = NEUTRAL_STATE; storedData.previousState = NEUTRAL_STATE;
} }
if (extConfig.numberDisplayReformatLikes === true) {
const nativeLikes = getLikeCountFromButton();
if (nativeLikes !== false) {
setLikes(numberFormat(nativeLikes));
}
}
} }
} }
@@ -65,6 +72,12 @@ function dislikeClicked() {
setDislikes(numberFormat(storedData.dislikes)); setDislikes(numberFormat(storedData.dislikes));
createRateBar(storedData.likes, storedData.dislikes); createRateBar(storedData.likes, storedData.dislikes);
storedData.previousState = DISLIKED_STATE; storedData.previousState = DISLIKED_STATE;
if (extConfig.numberDisplayReformatLikes === true) {
const nativeLikes = getLikeCountFromButton();
if (nativeLikes !== false) {
setLikes(numberFormat(nativeLikes));
}
}
} }
} }
} }
@@ -105,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
);
} }
} }
+32 -29
View File
@@ -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 };
+33 -3
View File
@@ -23,6 +23,8 @@ let extConfig = {
colorTheme: "classic", colorTheme: "classic",
numberDisplayFormat: "compactShort", numberDisplayFormat: "compactShort",
numberDisplayRoundDown: true, numberDisplayRoundDown: true,
showTooltipPercentage: false,
tooltipPercentageMode: "dash_like",
numberDisplayReformatLikes: false, numberDisplayReformatLikes: false,
}; };
@@ -40,6 +42,10 @@ function isShorts() {
return location.pathname.startsWith("/shorts"); return location.pathname.startsWith("/shorts");
} }
function isNewDesign() {
return document.getElementById("comment-teaser") !== null;
}
let mutationObserver = new Object(); let mutationObserver = new Object();
if (isShorts() && mutationObserver.exists !== true) { if (isShorts() && mutationObserver.exists !== true) {
@@ -151,10 +157,10 @@ function getLikeCountFromButton() {
if (isShorts()) { if (isShorts()) {
//Youtube Shorts don't work with this query. It's not nessecary; we can skip it and still see the results. //Youtube Shorts don't work with this query. It's not nessecary; we can skip it and still see the results.
//It should be possible to fix this function, but it's not critical to showing the dislike count. //It should be possible to fix this function, but it's not critical to showing the dislike count.
return 0; return false;
} }
let likesStr = getLikeButton() let likesStr = getLikeButton()
.querySelector("button") .querySelector("yt-formatted-string#text")
.getAttribute("aria-label") .getAttribute("aria-label")
.replace(/\D/g, ""); .replace(/\D/g, "");
return likesStr.length > 0 ? parseInt(likesStr) : false; return likesStr.length > 0 ? parseInt(likesStr) : false;
@@ -200,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
@@ -254,6 +261,8 @@ function initExtConfig() {
initializeColorTheme(); initializeColorTheme();
initializeNumberDisplayFormat(); initializeNumberDisplayFormat();
initializeNumberDisplayRoundDown(); initializeNumberDisplayRoundDown();
initializeTooltipPercentage();
initializeTooltipPercentageMode();
initializeNumberDisplayReformatLikes(); initializeNumberDisplayReformatLikes();
} }
@@ -317,6 +326,26 @@ function initializeNumberDisplayFormat() {
}); });
} }
function initializeTooltipPercentage() {
getBrowser().storage.sync.get(["showTooltipPercentage"], (res) => {
if (res.showTooltipPercentage === undefined) {
getBrowser().storage.sync.set({ showTooltipPercentage: false });
} else {
extConfig.showTooltipPercentage = res.showTooltipPercentage;
}
});
}
function initializeTooltipPercentageMode() {
getBrowser().storage.sync.get(["tooltipPercentageMode"], (res) => {
if (res.tooltipPercentageMode === undefined) {
getBrowser().storage.sync.set({ tooltipPercentageMode: "dash_like" });
} else {
extConfig.tooltipPercentageMode = res.tooltipPercentageMode;
}
});
}
function initializeNumberDisplayReformatLikes() { function initializeNumberDisplayReformatLikes() {
getBrowser().storage.sync.get(["numberDisplayReformatLikes"], (res) => { getBrowser().storage.sync.get(["numberDisplayReformatLikes"], (res) => {
if (res.numberDisplayReformatLikes === undefined) { if (res.numberDisplayReformatLikes === undefined) {
@@ -332,6 +361,7 @@ export {
isShorts, isShorts,
isVideoDisliked, isVideoDisliked,
isVideoLiked, isVideoLiked,
isNewDesign,
getState, getState,
setState, setState,
setInitialState, setInitialState,
+28 -29
View File
@@ -9,15 +9,6 @@ function roundDown(num) {
} }
function numberFormat(numberState) { function numberFormat(numberState) {
let userLocales;
try {
userLocales = new URL(
Array.from(document.querySelectorAll("head > link[rel='search']"))
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href")
)?.searchParams?.get("locale");
} catch {}
let numberDisplay; let numberDisplay;
if (extConfig.numberDisplayRoundDown === false) { if (extConfig.numberDisplayRoundDown === false) {
numberDisplay = numberState; numberDisplay = numberState;
@@ -29,22 +20,29 @@ function numberFormat(numberState) {
); );
} }
function localize(localeString) {
return chrome.i18n.getMessage(localeString);
}
function getNumberFormatter(optionSelect) { function getNumberFormatter(optionSelect) {
let userLocales;
if (document.documentElement.lang) {
userLocales = document.documentElement.lang;
} else if (navigator.language) {
userLocales = navigator.language;
} else {
try {
userLocales = new URL(
Array.from(document.querySelectorAll("head > link[rel='search']"))
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href")
)?.searchParams?.get("locale");
} catch {
cLog(
"Cannot find browser locale. Use en as default for number formatting."
);
userLocales = "en";
}
}
let formatterNotation; let formatterNotation;
let formatterCompactDisplay; let formatterCompactDisplay;
let userLocales;
try {
userLocales = new URL(
Array.from(document.querySelectorAll("head > link[rel='search']"))
?.find((n) => n?.getAttribute("href")?.includes("?locale="))
?.getAttribute("href")
)?.searchParams?.get("locale");
} catch {}
switch (optionSelect) { switch (optionSelect) {
case "compactLong": case "compactLong":
formatterNotation = "compact"; formatterNotation = "compact";
@@ -60,16 +58,17 @@ function getNumberFormatter(optionSelect) {
formatterCompactDisplay = "short"; formatterCompactDisplay = "short";
} }
const formatter = Intl.NumberFormat( const formatter = Intl.NumberFormat(userLocales, {
document.documentElement.lang || userLocales || navigator.language, notation: formatterNotation,
{ compactDisplay: formatterCompactDisplay,
notation: formatterNotation, });
compactDisplay: formatterCompactDisplay,
}
);
return formatter; return formatter;
} }
function localize(localeString) {
return chrome.i18n.getMessage(localeString);
}
function getBrowser() { function getBrowser() {
if (typeof chrome !== "undefined" && typeof chrome.runtime !== "undefined") { if (typeof chrome !== "undefined" && typeof chrome.runtime !== "undefined") {
return chrome; return chrome;
+13 -16
View File
@@ -7,7 +7,7 @@
[![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF) [![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE) [![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
Read this in other languages: [Español](READMEes.md), [русский](READMEru.md), [Türkçe](READMEtr.md) Read this in other languages: [Español](READMEes.md), [русский](READMEru.md), [Français](READMEfr.md), [日本語](READMEja.md), [Türkçe](READMEtr.md)
# Return YouTube Dislike # Return YouTube Dislike
@@ -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)
+31 -33
View File
@@ -7,90 +7,88 @@
[![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF) [![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE) [![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
Leer en otros idiomas: [English](README.md), [русский](READMEru.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
<p align="center"> <p align="center">
<b>Return YouTube Dislike es una extensión de código abierto que regresa el contador de dislikes.</b><br> <b>Return YouTube Dislike (recuperar los *dislikes* de YouTube) es una extensión de código abierto que reintroduce el contador de *dislikes* (o «No me gustas»).</b><br>
Disponible para Chrome y Firefox cómo una extensión web.<br> Está disponible para Chrome y Firefox como una extensión web.<br>
También disponible para otros navegadores cómo un Userscript de JS.<br><br> También está disponible para otros navegadores como un *userscript* de JS.<br><br>
<img width="400px" src="https://user-images.githubusercontent.com/18729296/141743755-2be73297-250e-4cd1-ac93-8978c5a39d10.png"/> <img width="400px" src="https://user-images.githubusercontent.com/18729296/141743755-2be73297-250e-4cd1-ac93-8978c5a39d10.png"/>
</p> </p>
## La historia ## La historia
El 10 de Noviembre de 2021, Google [anunció](https://blog.youtube/news-and-events/update-to-youtube/) que el contador de dislikes de YouTube sería eliminado. 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 de 'dislike' en la API de YouTube fue [eliminado](https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts) el 13 de Diciembre de 2021, acabando con la habilidad de juzgar la calidad del 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.
## Que hace ## Qué hace
Con 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 de dislikes archivadas 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)
## Por qué importa ## Por qué importa
Puedes aprender más en nuestro sitio web en: [returnyoutubedislike.com](https://www.returnyoutubedislike.com/) Para más información, visita nuestro sitio web: [returnyoutubedislike.com](https://www.returnyoutubedislike.com/)
## Documentación de la API ## Documentación de la API
El uso de terceros de esta API abierta se permite 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 link 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 por minuto y 10.000 por día. Excederlos retornará un código de estado *409* 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 sobre 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
### Obtener 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 retornará el codigo 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 retornará *400* "Bad Request" (solicitud incorrecta).
<!--- <!---
## API documentation ## Documentación de la API
You can view all documentation on our website. 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
Por favor, lee la [guía de contribución](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md). Rogamos que leas la [guía de contribución](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md) antes de empezar.
## ¡Apoya este proyecto! ## ¡Apoya este proyecto!
Puedes apoyar este proyecto donándonos en el enlace inferior: 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)
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike) [PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
[Hazte nuestro patrocionador](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601) [Patrocínanos](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
+94
View File
@@ -0,0 +1,94 @@
[![Chrome Web Store](https://img.shields.io/chrome-web-store/stars/gebbhagfogifgggkldgodflihgfeippi?label=Chrome%20Rating&style=flat&logo=google)](https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/)
[![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/gebbhagfogifgggkldgodflihgfeippi?label=Chrome%20Users&style=flat&logo=google)](https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/)
[![Mozilla rating](https://img.shields.io/amo/stars/return-youtube-dislikes?label=Firefox%20Rating&style=flat&logo=firefox)](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
[![Mozilla downloads](https://img.shields.io/amo/users/return-youtube-dislikes?label=Firefox%20Users&style=flat&logo=firefox)](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
[![Commit rate](https://img.shields.io/github/commit-activity/m/Anarios/return-youtube-dislike?label=Commits&style=flat)](https://github.com/Anarios/return-youtube-dislike/commits/main)
[![Issues](https://img.shields.io/github/issues/Anarios/return-youtube-dislike?style=flat&label=Issues)](https://github.com/Anarios/return-youtube-dislike/issues)
[![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](LICENSE)
# Return YouTube Dislike
Lisez ceci dans d'autres langues : [English](README.md), [Español](READMEes.md), [русский](READMEru.md), [Türkçe](READMEtr.md)
<p align="center">
<b>Return YouTube Dislike est une extension open-source qui ré-affiche les dislikes (pouces rouges) sur YouTube.</b><br>
Disponible pour Chrome et Firefox en tant qu'extension Web.<br>
Également disponible pour d'autres navigateurs en tant que JS Userscript.<br><br>
<img width="400px" src="https://user-images.githubusercontent.com/18729296/141743755-2be73297-250e-4cd1-ac93-8978c5a39d10.png"/>
</p>
## Le récit des événements
Le 10 novembre 2021, Google [a annoncé](https://blog.youtube/news-and-events/update-to-youtube/) que le compteur de dislike sur YouTube serait supprimé.
En outre, le champ `dislike` de l'API YouTube a été [supprimé](https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts) le 13 décembre 2021, supprimant ainsi toute possibilité de juger de la qualité du contenu d'une vidéo avant de la regarder.
## Ce qu'il fait
Avec la suppression des statistiques du nombre de dislike de l'API YouTube, notre backend est passé à l'utilisation d'une combinaison de statistiques du nombre de dislike scrapé et d'estimations extrapolées à partir des données d'extension des utilisateurs.
[FAQ](Docs/FAQfr.md)
## Pourquoi c'est important
Vous pouvez en savoir plus sur notre site web à l'adresse suivante : [returnyoutubedislike.com](https://www.returnyoutubedislike.com/)
## Documentation de l'API
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/).
- **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:
https://returnyoutubedislikeapi.com
La liste des endpoints est disponible ici:
https://returnyoutubedislikeapi.com/swagger/index.html
### Obtenir les likes
Exemple pour obtenir les likes d'une vidéo YouTube avec un ID donné:
`/votes?videoId=kxOuG8jMIgI`
```json
{
"id": "kxOuG8jMIgI",
"dateCreated": "2021-12-20T12:25:54.418014Z",
"likes": 27326,
"dislikes": 498153,
"rating": 1.212014408444885,
"viewCount": 3149885,
"deleted": false
}
```
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".
<!---
## Documentation de l'API
Vous pouvez consulter toute la documentation sur notre site web.
[https://returnyoutubedislike.com/docs](https://returnyoutubedislike.com/docs) -->
## Contribution
Veuillez lire le [guide des contributions](CONTRIBUTINGfr.md).
## Soutenez ce projet !
Vous pouvez soutenir ce projet en faisant un don grâce au lien ci-dessous :
[Donner](https://returnyoutubedislike.com/donate)
## Sponsors
[Piepacker](https://piepacker.com)
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
[Devenez notre sponsor](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
+96
View File
@@ -0,0 +1,96 @@
[![Chrome Web Store](https://img.shields.io/chrome-web-store/stars/gebbhagfogifgggkldgodflihgfeippi?label=Chrome%20Rating&style=flat&logo=google)](https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/)
[![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/gebbhagfogifgggkldgodflihgfeippi?label=Chrome%20Users&style=flat&logo=google)](https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/)
[![Mozilla rating](https://img.shields.io/amo/stars/return-youtube-dislikes?label=Firefox%20Rating&style=flat&logo=firefox)](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
[![Mozilla downloads](https://img.shields.io/amo/users/return-youtube-dislikes?label=Firefox%20Users&style=flat&logo=firefox)](https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/)
[![Commit rate](https://img.shields.io/github/commit-activity/m/Anarios/return-youtube-dislike?label=Commits&style=flat)](https://github.com/Anarios/return-youtube-dislike/commits/main)
[![Issues](https://img.shields.io/github/issues/Anarios/return-youtube-dislike?style=flat&label=Issues)](https://github.com/Anarios/return-youtube-dislike/issues)
[![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
別の言語: [English](README.md), [Español](READMEes.md), [русский](READMEru.md), [Türkçe](READMEtr.md)
# Return YouTube Dislike
<p align="center">
<b>Return YouTube DislikeはYouTubeの低評価を表示するためのオープンソースな拡張機能です。</b><br>
ChromeとFireFoxで拡張機能を利用可能です。<br>
また、他のブラウザでもJS Userscriptを利用できます。<br><br>
<img width="400px" src="https://user-images.githubusercontent.com/18729296/141743755-2be73297-250e-4cd1-ac93-8978c5a39d10.png"/>
</p>
## これまでの経緯
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)>)され、動画のクオリティを判断する手段がなくなってしまいました。
## What it Does
<!-- この部分の翻訳が微妙? -->
YouTube API から低評価が削除されたことにより、バックエンドは拡張機能のユーザーをもとにスクレイピングされたデータと組み合わせて表示するように切り替わりました
[FAQ](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQ.md)
## 低評価が重要な理由
ウェブサイトに詳細が書かれています: [returnyoutubedislike.com](https://www.returnyoutubedislike.com/)
## API ドキュメント
サードパーティは以下の制限のもとで API を利用できます:
- **帰属**: [returnyoutubedislike.com](https://returnyoutubedislike.com/) へのリンクを明確に表記してください。
- **レート制限**: クライアントごとに 1 分あたり 100 回、1 日あたり 10000 回という制限があります。制限に達すると*429*コードが返されます。
API は以下の Base URL でアクセスできます:
https://returnyoutubedislikeapi.com
利用可能なエンドポイントはこちらを参照してください:
https://returnyoutubedislikeapi.com/swagger/index.html
### 評価を取得
API を利用して YouTube video ID から評価を取得する例です:
`/votes?videoId=kxOuG8jMIgI`
```json
{
"id": "kxOuG8jMIgI",
"dateCreated": "2021-12-20T12:25:54.418014Z",
"likes": 27326,
"dislikes": 498153,
"rating": 1.212014408444885,
"viewCount": 3149885,
"deleted": false
}
```
存在しない YouTube ID の場合 _404_ "Not Found" が返されます。
不正なフォーマットの YouTube ID の場合 _400_ "Bad Request"が返されます。
<!---
## API ドキュメント
APIの完全なドキュメントは公式サイトを参照してください。
[https://returnyoutubedislike.com/documentation/](https://returnyoutubedislike.com/documentation/) -->
## 貢献する
こちらの[contribution guide](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTING.md)を読んでください。
## プロジェクトを支援!
以下のリンクに寄付をしてこのプロジェクトを支援できます:
[寄付](https://returnyoutubedislike.com/donate)
## スポンサー
[Piepacker](https://piepacker.com)
[Seed4.Me VPN](https://www.seed4.me/users/register?gift=ReturnYoutubeDislike)
[PocketTube](https://yousub.info/?utm_source=returnyoutubedislike)
[Become our sponsor](https://www.patreon.com/join/returnyoutubedislike/checkout?rid=8008601)
+17 -20
View File
@@ -7,7 +7,7 @@
[![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF) [![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE) [![License](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
Прочитать на других языках: [English](README.md), [Español](READMEes.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
@@ -22,13 +22,13 @@
10 ноября 2021 года Google [объявили](https://blog.youtube/news-and-events/update-to-youtube/), что счётчик «Не нравится» на YouTube будет удален. 10 ноября 2021 года Google [объявили](https://blog.youtube/news-and-events/update-to-youtube/), что счётчик «Не нравится» на YouTube будет удален.
Кроме того, поле отметок `«Не нравится»` в API YouTube было [удалено]](https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts) 13 декабря 2021 года, удалив любую возможность судить о качестве контента перед просмотром. Кроме того, поле отметок `dislike` в API YouTube было [удалено]](https://support.google.com/youtube/thread/134791097/update-to-youtube-dislike-counts) 13 декабря 2021 года, удалив любую возможность судить о качестве контента перед просмотром.
## Как оно работает ## Как оно работает
С удалением статистики отметок из API YouTube наш сервер переключился на использование комбинации собранной статистики отметок «Не нравится», оценок, экстраполированных из пользовательских данных расширения. С удалением статистики отметок из API YouTube наш сервер переключился на использование комбинации собранной статистики отметок «Не нравится», оценок, экстраполированных из пользовательских данных расширения.
[ЧаВО (англ.)](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQ.md) [ЧаВО](https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/FAQru.md)
## Почему это важно ## Почему это важно
@@ -38,8 +38,8 @@
Стороннее использование этого открытого 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
@@ -48,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
@@ -75,10 +73,9 @@ 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/CONTRIBUTING.md). Пожалуйста, ознакомьтесь с [руководством по внесению вклада в проект](https://github.com/Anarios/return-youtube-dislike/blob/main/CONTRIBUTINGru.md).
## Поддержите этот проект! ## Поддержите этот проект!
@@ -87,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)
@@ -94,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)
+12 -14
View File
@@ -7,7 +7,7 @@
[![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF) [![Discord](https://img.shields.io/discord/909435648170160229?label=Discord&style=flat&logo=discord)](https://discord.gg/UMxyMmCgfF)
[![Lisans](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE) [![Lisans](https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat)](https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE)
Bunu diğer dillerde okuyun: [English](README.md), [Español](READMEes.md), [русский](READMEru.md) Bunu diğer dillerde okuyun: [English](README.md), [Español](READMEes.md), [Français](READMEfr.md), [русский](READMEru.md), [日本語](READMEja.md)
# YouTube Dislike Sayısını Geri Getir # YouTube Dislike Sayısını Geri Getir
@@ -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
View File
@@ -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": {
+125
View File
@@ -0,0 +1,125 @@
import { cs } from "vuetify/src/locale";
// By Fjuro
export default {
...cs,
home: {
name: "Domů",
title: "Return YouTube Dislike",
subtitle: "Rozšíření prohlížeče a API, která zobrazí disliky na YouTube",
ukraine: "Podpořte Ukrajinu",
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",
},
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: {
name: "Nápověda",
title: "Řešení problémů",
bullet1:
"Ujistěte se, že používáte nejnovější verzi rozšíření. Momentálně je to verze ",
bullet11: "",
bullet2:
"Zkuste odebrat a znovu nainstalovat rozšíření a poté restartovat váš prohlížeč (všechna aktivní okna, ne jen jednu kartu)",
bullet3: "Ujistěte se, že se otevře následující odkaz: ",
bullet31: "měli byste vidět tento text: ",
bullet4:
"Pokud nepomůže ani jedna z možností výše, nahlaste svůj problém do kanálu",
bullet41: "v našem",
bullet4a:
"Řekněte nám jaký máte operační systém, název prohlížeče a verzi prohlížeče",
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",
title: "Často kladené dotazy",
subtitle: "Stále máte otázky? Připojte se na náš Discord server!",
bullet1: "Jak získává rozšíření svá data?",
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
View File
@@ -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, 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 -95
View File
@@ -1,101 +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: 'Regresar los Dislikes de YouTube', title: "Return YouTube Dislike",
subtitle: 'Una extensión de navegador y una API que te muestra los dislikes 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: 'Instalar', 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 propio riesgo',
}, },
api: { endpoints: {
name: 'API', title: "«Endpoints» disponibles",
title: '¡Bienvenido 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: 'El uso de terceros de esta API abierta se permite bajo las siguientes restricciones: ',
bullet1: 'Atribución: ',
bullet1text: 'El proyecto debe estar claramente atribuido con un link a esta página o a returnyoutubedislike.com',
bullet2: 'Límites de velocidad',
bullet2text: 'Hay límites de velocidad por cliente de 100 por minuto y 10.000 por día. Esto regresará un código de estado 409 indicando que tu aplicación debe bajar la velocidad.',
},
url: {
title: 'Información de URL',
subtitle: 'Esta API es accesible sobre la siguiente URL base: ',
},
endpoints: {
title: 'Endpoints disponibles',
subtitle: 'La lista de los endpoints disponibles está disponible 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 inválido responderá con el código de estado 404 "Not Found"',
error2: 'Un ID de YouTube con mal formato responderá con 400 "Bad Request"'
},
}, },
help: { fetching: {
name: 'Ayuda', title: "Tutorial de consulta básica",
title: 'Solución de problemas', subtitle:
bullet1: 'Asegúrate de que tienes la última versión de la extensión instalada, ', "Ejemplo para obtener los votos del ID de un vídeo de YouTube: ",
bullet11: 'ahora mismo', 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: 'Asegúrate de qué este link se abre: ', method: "Método de la consulta: ",
bullet31: 'deberías ver este texto: ', headers: "Encabezados: ",
bullet4: 'Si nada de esto funciona, reporta tú problema en', response: "Respuesta: ",
bullet41: 'en nuestro', error1:
bullet4a: 'Dínos tu sistema operativo, nombre del navegador y versión del navegador', 'Un ID de YouTube no existente mostrará el código de estado 404 "Not Found" (no encontrado).',
bullet4b: 'Toma una captura de pantalla de la página con el problema (cómo una página de un vídeo de YouTube) con la consola abierta (pulsa ', error2:
bullet4b1: ') - captura de pantalla de ejemplo abajo.', 'Un ID de YouTube mal estructurado mostrará el código 400 "Bad Request" (solicitud incorrecta).',
bullet4c: 'Toma una captura de la página de extensiones de tu navegador con la extensión instalada.',
bullet4c1: 'Para ver las extensiones pon esto en la barra de dirección: ',
firefox: 'para Firefox',
chrome: 'para Chrome, Edge, Brave, Opera, Vivaldi',
}, },
faq: { },
name: 'FAQ', help: {
title: 'Preguntas frecuentes', name: "Ayuda",
subtitle: '¿Sígues teniendo problemas? ¡Sientete libre de unirte a nuestro Discord (en inglés)!', title: "Solución de problemas",
bullet1: '¿De dónde saca sus datos la extensión?', bullet1:
bullet1text: 'Una combinación de datos archivados antes de que la API oficial de dislikes de YouTube se apagará, y datos estimados basados en los usuarios.', "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: 'Ahora mismo los dislikes son guardados y no se actualizan muy frecuentemente. Varia 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 esto?', "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 recoge el ID del vídeo qué estas viendo, carga los dislikes (y otros campos cómo las visitas, likes, etc) usando nuestra API. Entonces, la extensión muestra los dislikes y el radio en la página. Si le das like o dislike a un vídeo, eso se guarda y se envía a la base de datos para qué un contador de dislikes más acertado pueda ser creado.', 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 o una API diferente de solo lectura con alcance limitado para que los creadores puedan compartir sus contadores de dislikes verificablemente.', bullet4:
bullet5: '¿Qué datos guardais 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 solo guarda datos que son estrictamente necesarios para que funcione correctamente, cómo la dirección IP o el ID del vídeo que estas viendo. Tus datos nunca serán vendidos a terceros. Si te gustaría saber más sobre cómo tratamos la seguridad y la privacidad mira nuestra <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">security FAQ</a>.', bullet41: "de nuestro",
bullet6: '¿Cómo funciona la API/Backend?', bullet4a:
bullet6text: 'El backend usa datos archivados de cuando la API de YouTube seguía proporcionando el contador de dislikes, los votos de usuarios de la extensión y extrapolación. En un futuro cercano permitíremos a los creadores de contenido proporcionar su contador de dislikes de forma fácil y segura y añadíremos datos archivados de ArchiveTeam (4,56 billones 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 DISABLED"?', bullet4b:
bullet7text: 'A veces, un vídeo subido recientemente puede mostrar "DISLIKES DISABLED" incluso si el creador no lo ha desactivado, esto se debe a la forma en que detectamos si los "dislikes" están desactivados, 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 de mantener el internet libre con una donación!', 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: 'Links del proyecto', },
subtitle: 'Links al proyecto y sus desarrolladores', faq: {
contact: 'Contactame', name: "Preguntas",
translators: 'Traductores', title: "Preguntas más frecuentes",
}, subtitle:
} "¿Sigues teniendo problemas? ¡Pásate por nuestro servidor de Discord (en inglés)!",
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",
},
};
+131
View File
@@ -0,0 +1,131 @@
import { fr } from "vuetify/src/locale";
export default {
...fr,
home: {
name: "Accueil",
title: "Return YouTube Dislike",
subtitle:
"Une extension de navigateur et une API qui vous montre les dislike sur Youtube",
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.",
},
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: {
name: "Aide",
title: "Dépannage",
bullet1:
"Assurez-vous que la dernière version de l'extension est installée, ",
bullet11: "à l'heure actuelle",
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).",
bullet3: "Assurez-vous que ce lien s'ouvre : ",
bullet31: "vous devriez voir du texte brut : ",
bullet4:
"Si rien de ce qui précède ne vous aide, signalez votre problème sur",
bullet41: "ou sur notre",
bullet4a:
"Indiquez-nous votre système d'exploitation ansi que le nom et la version de votre navigateur",
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 ",
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",
title: "Foire Aux Questions",
subtitle:
"Vous avez encore des questions ? N'hésitez pas à rejoindre notre Discord (en anglais) !",
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
View File
@@ -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: 'Пример получения голосов на заданный видео ID на YouTube ',
title2: 'Пример запроса: ',
url: 'URL-адрес запроса: ',
method: 'Способ запроса: ',
headers: 'Шапка: ',
response: 'Ответ: ',
error1: 'Неверный YouTube ID вернет код состояния 404 "Не найден"',
error2: 'Неправильно отформатированный YouTube ID вернет 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: 'FAQ', help: {
title: 'Частые Вопросы', name: "Помощь",
subtitle: 'Все еще есть вопросы? Не стесняйтесь заглянуть в наш Дискорд!', title: "Диагностика",
bullet1: 'Откуда расширение получает данные?', bullet1: "Убедитесь, что у вас установлена последняя версия расширения, ",
bullet1text: 'Комбинация архивных данных, полученных до закрытия официального YouTube дизлайк API, и экстраполяция поведения пользователей расширения.', bullet11: "прямо сейчас",
bullet2: 'Почему количество дизлайков не обновляется?', bullet2:
bullet2text: 'На данный момент видео дизлайки кэшируются, и обновляются не очень часто. Это зависит от популярности видео, но обновление может занять от нескольких часов до нескольких дней.', "Попробуйте удалить расширение и установить его снова, затем перезагрузите браузер (все активные окна, а не только одну вкладку).",
bullet3: 'Как это работает?', bullet3: "Убедитесь, что эта ссылка открывается:",
bullet3text: 'Расширение берет ID видео которое вы смотрите, извлекает количество дизлайков (и другие поля, такие как просмотры, лайки и т.д.) используя наш API. Затем расширение отображает количество дизлайков на странице. Если если вы лайкаете или дизлайкаете видео, это записывается и отправляется в базу данных, чтобы можно было экстраполировать точное количество дизлайков.', bullet31: "вы должны увидеть текст: ",
bullet4: 'Могу я поделиться с вами своим количеством дизлайков?', bullet4:
bullet4text: 'Скоро. Мы рассматриваем возможность использования Oauth или другого API, доступного только для чтения, с ограниченной областью действия, чтобы создатели могли делиться своим количеством дизлайков.', "Если ничего из вышеперечисленного не помогает - сообщите о своей проблеме в",
bullet5: 'Какие данные вы собираете и как они обрабатываются?', bullet41: "в нашем",
bullet5text: 'Расширение собирает только те данные, которые строго необходимы для его правильной работы, такие как IP-адрес или ID видео которое вы смотрите. Ваши данные никогда не будут проданы третьим лицам. Если вы хотите узнать больше о том, как мы обеспечиваем безопасность и конфиденциальность, ознакомьтесь с нашим <a href="https://github.com/Anarios/return-youtube-dislike/blob/main/Docs/SECURITY-FAQ.md">FAQ по безопасности</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
View File
@@ -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",
},
};
+3 -1
View File
@@ -103,7 +103,9 @@ export default {
{ name: "Español", locale: "es" }, { name: "Español", locale: "es" },
{ name: "Türkçe", locale: "tr" }, { name: "Türkçe", locale: "tr" },
{ name: "Русский", locale: "ru" }, { name: "Русский", locale: "ru" },
// { name: "Français", locale: "fr" }, { name: "Čeština", locale: "cs" },
{ name: "日本語", locale: "ja" },
{ name: "Français", locale: "fr" },
// { name: "Deutsch", locale: "de" }, // { name: "Deutsch", locale: "de" },
// ... // ...
], ],
+4 -2
View File
@@ -2,7 +2,9 @@ import en from "./_locales/en";
import es from "./_locales/es"; import es from "./_locales/es";
import tr from "./_locales/tr"; import tr from "./_locales/tr";
import ru from "./_locales/ru"; import ru from "./_locales/ru";
// import fr from "./_locales/fr"; import cs from "./_locales/cs";
import ja from "./_locales/ja";
import fr from "./_locales/fr";
// import de from "./_locales/de"; // import de from "./_locales/de";
// ... // ...
export default { export default {
@@ -48,7 +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 /*, fr, de, ...*/ }, locales: { en, es, tr, ru, cs, ja, fr /* de, ...*/ },
current: "en", current: "en",
}, },
theme: { theme: {
+26 -14
View File
@@ -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)
);
} }
}; };
}, },
+29 -7
View File
@@ -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>
@@ -99,10 +101,30 @@ export default {
tag: "PickleNik#0864", tag: "PickleNik#0864",
lang: "Русский", lang: "Русский",
}, },
{
tag: "Fjuro#0179",
lang: "Čeština",
},
{
tag: "ShaCHO36P",
lang: "日本語",
},
{
tag: "NiniKo",
lang: "Français",
},
], ],
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",
},
], ],
}), }),
}; };
+20
View File
@@ -0,0 +1,20 @@
Return YouTube Dislike rétablit la possibilité de voir les dislikes sur YouTube.
Si cela ne fonctionne pas : ouvrez l'onglet des extensions (chrome://extensions/) désactivez cette extension et réactivez-la. Il s'agit d'un bug dans Chromium qui casse l'extension dans certains cas. Cela devrait résoudre la plupart des problèmes. Espérons que l'équipe de Chromium corrigera ce problème bientôt.
Depuis le 13 décembre 2021, YouTube a supprimé la possibilité de voir les dislikes de son API.
Cette extension vise à redonner le pouvoir aux utilisateurs en utilisant une combinaison de données archivées des likes et des dislikes, ainsi que les likes et les dislikes faits par les utilisateurs de l'extension pour montrer les évaluations les plus précises.
Nous disposons à ce jour de plus de 200 millions de vidéos avec leurs données de likes et de dislikes datant d'avant le 13 décembre 2021.
Croissance active et reste à jour avec les uploads datant d'après le 13 décembre 2021.
Plus il y aura d'utilisateurs de l'extension, plus elle sera précise.
Les vidéos impopulaires mises en ligne ultérieurement au 13 décembre 2021 peuvent présenter des données moins précises que les vidéos plus populaires.
Cette extension est actuellement en développement actif, donc si vous rencontrez des problèmes, n'hésitez pas à les signaler sur notre page GitHub ou sur notre serveur Discord.
D'autres fonctionnalités seront bientôt disponibles !
https://github.com/Anarios/return-youtube-dislike
+20
View File
@@ -0,0 +1,20 @@
Return YouTube Dislikes restaura la capacidad de ver los «dislikes» («No me gusta»), en YouTube.
En caso de que no funcione: abre la pestaña de Extensiones (chrome://extensions/), desactiva esta extensión y luego vuelve a activarla. Existe un fallo en Chromium que, en algunos casos, da problemas con la extensión. Esta solución debería arreglar la mayoría de los problemas. Con suerte, el equipo de Chromium resolverá el problema pronto.
A partir del 13 de diciembre de 2021, YouTube quitó la capacidad de ver la cantidad de «dislikes» desde su API.
El fin de esta extensión es el de devolver poder a los usuarios mediante una combinación de datos archivados de cantidades de «likes» («Me gusta») y «dislikes» («No me gusta»), a los que se sumarán los «likes» y «dislikes» enviados por los usuarios de esta extensión, con el fin de mostrar valoraciones precisas.
Actualmente tiene almacenada la información recuperada antes del 13 de diciembre de 2021 de los «likes»/«dislikes» de más de 200 millones de vídeos.
La extensión está creciendo de forma activa y actualizándose con los vídeos subidos después del 13 de diciembre de 2021.
Cuantas más personas utilicen la extensión, más precisa será.
Los vídeos menos populares que se hayan subido después del 13 de diciembre de 2021 podrían mostrar datos menos precisos que los vídeos más populares.
Esta extensión está siendo desarrollada de forma activa: si tienes cualquier problema, no dudes en comentarlo a través de nuestra página de GitHub o en nuestro servidor de Discord (en inglés, por favor).
¡Próximamente incluiremos más características!
https://github.com/Anarios/return-youtube-dislike
+1 -1
View File
@@ -1,6 +1,6 @@
Return YouTube Dislike restores the ability to see dislikes on YouTube. Return YouTube Dislike restores the ability to see dislikes on YouTube.
If it doesn't work: open extensions tab (chrome://extensions/) disable this extension and enable it again. This is a bug in chromium that breaks the extension in some cases. This should fix most of the problems. Hopefully the chromium team will fix this soon. If it doesn't work: open the Extensions tab (chrome://extensions/), disable this extension and enable it again. This should fix most of the problems, since there is a bug in Chromium that breaks the extension in some cases. Hopefully the Chromium team will fix this soon.
Starting December 13th 2021, YouTube removed the ability to see dislikes from their API. Starting December 13th 2021, YouTube removed the ability to see dislikes from their API.
This extension aims to restore power to users by using a combination of archived like and dislike data, as well as the likes and dislikes made by extension users to show the most accurate ratings. This extension aims to restore power to users by using a combination of archived like and dislike data, as well as the likes and dislikes made by extension users to show the most accurate ratings.
+10 -7
View File
@@ -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/",
}, },
], ],
}, },