From 1be31bbb0740e9c5a02d684e584f0d4d09831c78 Mon Sep 17 00:00:00 2001 From: Aaron Kerckhoff Date: Fri, 20 May 2022 16:27:05 +0200 Subject: Add ratio display to new design --- Extensions/combined/src/bar.js | 8 ++++---- Extensions/combined/src/state.js | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Extensions/combined/src/bar.js b/Extensions/combined/src/bar.js index c56ab57..c82291d 100644 --- a/Extensions/combined/src/bar.js +++ b/Extensions/combined/src/bar.js @@ -1,5 +1,5 @@ import { getButtons } from "./buttons"; -import { extConfig, isMobile, isLikesDisabled } from "./state"; +import { extConfig, isMobile, isLikesDisabled, isNewDesign } from "./state"; import { cLog, getColorFromTheme } from "./utils"; function createRateBar(likes, dislikes) { @@ -23,12 +23,12 @@ function createRateBar(likes, dislikes) { } ( - document.getElementById("menu-container") || + document.getElementById(isNewDesign() ? "actions-inner" : "menu-container") || document.querySelector("ytm-slim-video-action-bar-renderer") ).insertAdjacentHTML( "beforeend", ` -
+
Date: Sat, 21 May 2022 00:08:38 +0200 Subject: Improve ratio display on new design --- Extensions/combined/src/bar.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Extensions/combined/src/bar.js b/Extensions/combined/src/bar.js index c82291d..386ff59 100644 --- a/Extensions/combined/src/bar.js +++ b/Extensions/combined/src/bar.js @@ -28,7 +28,7 @@ function createRateBar(likes, dislikes) { ).insertAdjacentHTML( "beforeend", ` -
+
` ); + + // Add border between info and comments + if (isNewDesign()) { + let descriptionAndActionsElement = document.getElementById("description-and-actions"); + 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 + "%"; -- cgit v1.2.3 From ea5617950f68c647cf2f0ec60270b8b4d6ddc7f4 Mon Sep 17 00:00:00 2001 From: Aaron Kerckhoff Date: Sat, 21 May 2022 00:08:38 +0200 Subject: Improve ratio display on new design --- Extensions/combined/content-style.css | 2 +- Extensions/combined/src/bar.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Extensions/combined/content-style.css b/Extensions/combined/content-style.css index e2e5fa2..d8da7db 100644 --- a/Extensions/combined/content-style.css +++ b/Extensions/combined/content-style.css @@ -41,6 +41,6 @@ height: 2px; position: absolute; padding-top: 6px; - padding-bottom: 28px; + padding-bottom: 12px; top: -6px; } diff --git a/Extensions/combined/src/bar.js b/Extensions/combined/src/bar.js index c82291d..386ff59 100644 --- a/Extensions/combined/src/bar.js +++ b/Extensions/combined/src/bar.js @@ -28,7 +28,7 @@ function createRateBar(likes, dislikes) { ).insertAdjacentHTML( "beforeend", ` -
+
` ); + + // Add border between info and comments + if (isNewDesign()) { + let descriptionAndActionsElement = document.getElementById("description-and-actions"); + 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 + "%"; -- cgit v1.2.3 From 455a67262eba02f53d5549abdb5b6cedd65e077d Mon Sep 17 00:00:00 2001 From: Affan Zaman <47723802+afnzmn@users.noreply.github.com> Date: Fri, 10 Jun 2022 10:31:39 -0400 Subject: TEMPORARILY UNAVAILABLE -> TEMP N/A #641 only for English --- Extensions/combined/_locales/en/messages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/combined/_locales/en/messages.json b/Extensions/combined/_locales/en/messages.json index 28c476c..99deba7 100644 --- a/Extensions/combined/_locales/en/messages.json +++ b/Extensions/combined/_locales/en/messages.json @@ -36,7 +36,7 @@ "message": "Stops counting your likes and dislikes." }, "textTempUnavailable": { - "message": "temporarily unavailable" + "message": "temp n/a" }, "textUpdate": { "message": "update to" -- cgit v1.2.3 From 167b8393b2bd886b32c3348c5cfa486bfc20fcce Mon Sep 17 00:00:00 2001 From: Fjuro Date: Fri, 10 Jun 2022 19:51:07 +0200 Subject: Create cs/messages.json --- Extensions/combined/_locales/cs/messages.json | 62 +++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Extensions/combined/_locales/cs/messages.json diff --git a/Extensions/combined/_locales/cs/messages.json b/Extensions/combined/_locales/cs/messages.json new file mode 100644 index 0000000..f80e3ac --- /dev/null +++ b/Extensions/combined/_locales/cs/messages.json @@ -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." + } +} -- cgit v1.2.3 From af8910c2c26ccbf3d79482a234ce26e8b30f9eb8 Mon Sep 17 00:00:00 2001 From: Fjuro Date: Fri, 10 Jun 2022 20:24:58 +0200 Subject: Create cs.ts --- Website/_locales/cs.ts | 104 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 Website/_locales/cs.ts diff --git a/Website/_locales/cs.ts b/Website/_locales/cs.ts new file mode 100644 index 0000000..73c0dac --- /dev/null +++ b/Website/_locales/cs.ts @@ -0,0 +1,104 @@ +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 bezpečnostní FAQ.', + 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ů' + }, +} -- cgit v1.2.3 From 276daa2fe7d7cf27c6c5ae6e14292a1f1fe5b2e7 Mon Sep 17 00:00:00 2001 From: Fjuro Date: Fri, 10 Jun 2022 20:28:05 +0200 Subject: Add Czech and Japanese --- Website/layouts/default.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index 1db2382..967a4e8 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -103,6 +103,8 @@ export default { { name: "Español", locale: "es" }, { name: "Türkçe", locale: "tr" }, { name: "Русский", locale: "ru" }, + { name: "Čeština", locale: "cs" }, + { name: "やまと", locale: "ja" }, // { name: "Français", locale: "fr" }, // { name: "Deutsch", locale: "de" }, // ... -- cgit v1.2.3 From 2cd4c1a5c25c61063416fb30e2ad117e185935b1 Mon Sep 17 00:00:00 2001 From: Fjuro Date: Fri, 10 Jun 2022 20:29:38 +0200 Subject: Add Czech and Japanese --- Website/nuxt.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Website/nuxt.config.js b/Website/nuxt.config.js index 28d13de..e024b87 100644 --- a/Website/nuxt.config.js +++ b/Website/nuxt.config.js @@ -2,6 +2,8 @@ import en from "./_locales/en"; import es from "./_locales/es"; import tr from "./_locales/tr"; import ru from "./_locales/ru"; +import cs from "./_locales/cs"; +import ja from "./_locales/ja"; // import fr from "./_locales/fr"; // import de from "./_locales/de"; // ... @@ -48,7 +50,7 @@ export default { // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify vuetify: { lang: { - locales: { en, es, tr, ru /*, fr, de, ...*/ }, + locales: { en, es, tr, ru, cs, ja /*, fr, de, ...*/ }, current: "en", }, theme: { -- cgit v1.2.3 From 864729596c6a50af40bb16d4de2d1970e9b16654 Mon Sep 17 00:00:00 2001 From: Fjuro Date: Fri, 10 Jun 2022 20:31:45 +0200 Subject: Add Czech and Japanese --- Website/pages/links.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Website/pages/links.vue b/Website/pages/links.vue index 3fbe465..7be7f05 100644 --- a/Website/pages/links.vue +++ b/Website/pages/links.vue @@ -99,6 +99,14 @@ export default { tag: "PickleNik#0864", lang: "Русский", }, + { + tag: "Fjuro#0179", + lang: "Čeština", + }, + { + tag: "ShaCHO36P", + lang: "やまと", + }, ], coolProjects: [ { name: "SponsorBlock", url: "https://sponsor.ajay.app/", description: "$vuetify.links.sponsorBlockDescription" }, -- cgit v1.2.3 From 79aa5ad11ba63d08e6d3eb07507df3f5ceb43bb7 Mon Sep 17 00:00:00 2001 From: Fjuro Date: Wed, 15 Jun 2022 17:08:53 +0200 Subject: Update links.vue --- Website/pages/links.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/pages/links.vue b/Website/pages/links.vue index 7be7f05..ec58e62 100644 --- a/Website/pages/links.vue +++ b/Website/pages/links.vue @@ -105,7 +105,7 @@ export default { }, { tag: "ShaCHO36P", - lang: "やまと", + lang: "日本語", }, ], coolProjects: [ -- cgit v1.2.3 From bda7e6cdf4806b8a846779d3e8e92104a36485da Mon Sep 17 00:00:00 2001 From: Fjuro Date: Wed, 15 Jun 2022 17:09:16 +0200 Subject: Update default.vue --- Website/layouts/default.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index 967a4e8..106c2cb 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -104,7 +104,7 @@ export default { { name: "Türkçe", locale: "tr" }, { name: "Русский", locale: "ru" }, { name: "Čeština", locale: "cs" }, - { name: "やまと", locale: "ja" }, + { name: "日本語", locale: "ja" }, // { name: "Français", locale: "fr" }, // { name: "Deutsch", locale: "de" }, // ... -- cgit v1.2.3 From e7496a342043bd00bfae7f6930616a1cdd894c7e Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 21 Jun 2022 14:03:01 +0530 Subject: Update Guide__Troubleshooting.md --- Docs/Guide__Troubleshooting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/Guide__Troubleshooting.md b/Docs/Guide__Troubleshooting.md index 62f2d39..9409d49 100644 --- a/Docs/Guide__Troubleshooting.md +++ b/Docs/Guide__Troubleshooting.md @@ -27,8 +27,8 @@ Troubleshooting Guide 1. Make sure you have the latest version of the extension installed. ([Click Here to check](https://chrome.google.com/webstore/detail/return-youtube-dislike/gebbhagfogifgggkldgodflihgfeippi#:~:text=Report%20abuse-,Version,-2.0.0.3)) 2. Close all the tabs & restart your browser 3. Reinstall the extension. -4. [Check API status] -5. [Check service worker] (only for chromium based browsers) +4. [Check API status](#check-api-status) +5. [Check Cloudflare status](https://www.cloudflarestatus.com/) 6. [If you are on Windows 7 read this](#install-certificates)
-- cgit v1.2.3 From 11fc02b00b41413d4c73727e5677c5a829ab553a Mon Sep 17 00:00:00 2001 From: Nikita Krupin <31113245+PickleNik@users.noreply.github.com> Date: Thu, 23 Jun 2022 15:48:01 -0400 Subject: Create FUNDING.yml --- .github/FUNDING.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..7a82eb9 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +patreon: returnyoutubedislike +custom: https://returnyoutubedislike.com/donate -- cgit v1.2.3 From c855267e5b93923fbdd0cec0e4e0a37784f67b5f Mon Sep 17 00:00:00 2001 From: Nikita Krupin <31113245+PickleNik@users.noreply.github.com> Date: Thu, 23 Jun 2022 15:53:14 -0400 Subject: fix FUNDING.yml custom url --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 7a82eb9..16aabc9 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ patreon: returnyoutubedislike -custom: https://returnyoutubedislike.com/donate +custom: "https://returnyoutubedislike.com/donate" -- cgit v1.2.3 From 43d860d5f304fd9293b2d9086deacc0b0763832a Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:52:01 +0530 Subject: Add question to gauge the user's interest resolves #580 --- .github/ISSUE_TEMPLATE/bug.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 2bf949b..8193cca 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -55,4 +55,13 @@ body: value: "Tell us how it happened with detailed steps for us." validations: required: true +- type: dropdown + attributes: + label: "Will you be available for follow-up questions to help developers diagnose & fix the issue?" + options: + - Yes + - No + validations: + required: true + -- cgit v1.2.3 From 3fd5dd58b6ce5e02486c7fdc013444247b0b5702 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Wed, 29 Jun 2022 07:47:39 +0530 Subject: js to add 5 star rating --- Extensions/combined/src/starRating.js | 101 ++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Extensions/combined/src/starRating.js diff --git a/Extensions/combined/src/starRating.js b/Extensions/combined/src/starRating.js new file mode 100644 index 0000000..fbeac2a --- /dev/null +++ b/Extensions/combined/src/starRating.js @@ -0,0 +1,101 @@ +import { cLog } from "./utils"; + +function createStarRating(rating, isMobile) { + let starRating = document.createElement('label'); + + let starSlider = document.createElement("input"); + starSlider.setAttribute("class", "rating"); + starSlider.setAttribute("max", "5"); + starSlider.setAttribute("readonly", ""); + starSlider.setAttribute("style", `--fill:rgb(255, 215, 0);--value:${rating.toString()};};background-color: transparent;`); + starSlider.setAttribute("type", "range"); + + starRating.appendChild(starSlider); + + let YTLikeButton; + + 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)'); + } else { + YTLikeButton = document.querySelector('#top-level-buttons-computed > ytd-toggle-button-renderer:nth-child(1)'); + } + + YTLikeButton.insertAdjacentElement('afterend', starRating); + + try { + let YTBar = document.querySelector('#ryd-bar-container'); + YTBar.setAttribute("style", "width: 196%; height: 2px;"); + } + catch(err) { + cLog("RateBar Not Present"); + } + + + + let style = ``; + +document.head.insertAdjacentHTML("beforeend", style); + + } + + export { createStarRating }; \ No newline at end of file -- cgit v1.2.3 From bb3fdc62c2bbcaf0eb31209c0686b314b83ae191 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Wed, 29 Jun 2022 07:48:32 +0530 Subject: import starRating in state.js Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- Extensions/combined/src/state.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Extensions/combined/src/state.js b/Extensions/combined/src/state.js index df9d561..7160903 100644 --- a/Extensions/combined/src/state.js +++ b/Extensions/combined/src/state.js @@ -8,6 +8,7 @@ import { getColorFromTheme, } from "./utils"; import { localize } from "./utils"; +import { createStarRating } from "./starRating"; //TODO: Do not duplicate here and in ryd.background.js const apiUrl = "https://returnyoutubedislikeapi.com"; @@ -199,6 +200,7 @@ function processResponse(response, storedData) { getDislikeButton().style.color = getColorFromTheme(false); } } + createStarRating(response.rating, isMobile()); } // Tells the user if the API is down -- cgit v1.2.3 From 228b8b9187b7927308efaf1c20d55a800040dab4 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Wed, 29 Jun 2022 08:03:15 +0530 Subject: Decrease rate bar size Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- Extensions/combined/src/starRating.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/combined/src/starRating.js b/Extensions/combined/src/starRating.js index fbeac2a..5d98814 100644 --- a/Extensions/combined/src/starRating.js +++ b/Extensions/combined/src/starRating.js @@ -24,7 +24,7 @@ function createStarRating(rating, isMobile) { try { let YTBar = document.querySelector('#ryd-bar-container'); - YTBar.setAttribute("style", "width: 196%; height: 2px;"); + YTBar.setAttribute("style", "width: 190%; height: 2px;"); } catch(err) { cLog("RateBar Not Present"); @@ -98,4 +98,4 @@ document.head.insertAdjacentHTML("beforeend", style); } - export { createStarRating }; \ No newline at end of file + export { createStarRating }; -- cgit v1.2.3 From 812962f2a484c3e5f0ea4c18182126d1bdf9de24 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Fri, 1 Jul 2022 10:10:44 +0530 Subject: Disallow Blank Titles --- .github/ISSUE_TEMPLATE/bug.yml | 2 +- .github/ISSUE_TEMPLATE/feature-request.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 8193cca..487b69b 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -1,6 +1,6 @@ name: Bug Report description: File a bug report! -title: "(Bug): " +# title: "(Bug): " labels: ["bug"] body: - type: input diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index b9a15d6..4793c70 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -1,6 +1,6 @@ name: Feature Request description: Request or suggest a new feature! -title: "(Feature Request): " +# title: "(Feature Request): " labels: ["enhancement"] body: - type: dropdown -- cgit v1.2.3 From 2d4af2753c4b42b58ce810771ce146cf3ef21c1e Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:26:54 +0530 Subject: Yes & No - boolean --> string Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/bug.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 487b69b..177632e 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -59,8 +59,8 @@ body: attributes: label: "Will you be available for follow-up questions to help developers diagnose & fix the issue?" options: - - Yes - - No + - "Yes" + - "No" validations: required: true -- cgit v1.2.3 From 08269b7421825b531651c3edb68403455af85c41 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Fri, 1 Jul 2022 11:32:00 +0530 Subject: Ask - whether available for follow-up questions Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/feature-request.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/feature-request.yml b/.github/ISSUE_TEMPLATE/feature-request.yml index 4793c70..123d9d0 100644 --- a/.github/ISSUE_TEMPLATE/feature-request.yml +++ b/.github/ISSUE_TEMPLATE/feature-request.yml @@ -28,4 +28,12 @@ body: options: - label: "Yes" - label: "No" +- type: dropdown + attributes: + label: "Will you be available for follow-up questions to help developers implement this?" + options: + - "Yes" + - "No" + validations: + required: true -- cgit v1.2.3 From 1c918cf8181d24fc6b0ea1ff060544113250ab07 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 00:21:40 +0530 Subject: Workflow to assign issue/pull to the commenter resolves Anarios/return-youtube-dislike/issues/354 Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/assignme.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/assignme.yml diff --git a/.github/workflows/assignme.yml b/.github/workflows/assignme.yml new file mode 100644 index 0000000..586033d --- /dev/null +++ b/.github/workflows/assignme.yml @@ -0,0 +1,20 @@ +name: Assign issue/pull to the commenter + +on: + issue_comment: + types: created + +jobs: + assign: + runs-on: ubuntu-latest + if: | + github.event.comment.body == '/assignme' + steps: + - name: Assigning to commentor + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \ + -d '{"assignees":["${{ github.event.comment.user.login }}"]}' -- cgit v1.2.3 From 52669b1b6a746de0d8c1101af33510817a0e8d19 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 00:28:11 +0530 Subject: commentCommands - add request-issue-improvement Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/assignme.yml | 20 ------------------ .github/workflows/commentCommands.yml | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/assignme.yml create mode 100644 .github/workflows/commentCommands.yml diff --git a/.github/workflows/assignme.yml b/.github/workflows/assignme.yml deleted file mode 100644 index 586033d..0000000 --- a/.github/workflows/assignme.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Assign issue/pull to the commenter - -on: - issue_comment: - types: created - -jobs: - assign: - runs-on: ubuntu-latest - if: | - github.event.comment.body == '/assignme' - steps: - - name: Assigning to commentor - run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \ - -d '{"assignees":["${{ github.event.comment.user.login }}"]}' diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml new file mode 100644 index 0000000..5eeff3d --- /dev/null +++ b/.github/workflows/commentCommands.yml @@ -0,0 +1,40 @@ +name: Assign issue/pull to the commenter + +on: + issue_comment: + types: created + +jobs: + + assign-commentor: + runs-on: ubuntu-latest + if: | + github.event.comment.body == '/assignme' + steps: + - name: Assigning to commentor + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \ + -d '{"assignees":["${{ github.event.comment.user.login }}"]}' + + request-issue-framing-improvement: + runs-on: ubuntu-latest + if: | + github.event.comment.body == '/improve' && ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'CONTRIBUTOR' ) + steps: + - name: request-issue-framing-improvement + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \ + -d '{"body":"This issue is put on hold due to low quality. No reviews or fixes will be performed at this time. Eventually, it will be closed. While we appreciate your effort writing, we are not able to further investigate it. Please improve it by writing a better title or providing more details, and you may re-open it."}' + + -- cgit v1.2.3 From 029ca28e514d1021cf771175b37bde855abfdfd5 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 00:53:56 +0530 Subject: add job -> add-label-duplicate GitHub-Bot adds "duplicate" label when owners, collaborators or contributors comment - /duplicate Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index 5eeff3d..393ee22 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -37,4 +37,21 @@ jobs: https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \ -d '{"body":"This issue is put on hold due to low quality. No reviews or fixes will be performed at this time. Eventually, it will be closed. While we appreciate your effort writing, we are not able to further investigate it. Please improve it by writing a better title or providing more details, and you may re-open it."}' + add-label-duplicate: + runs-on: ubuntu-latest + if: | + startsWith(github.event.comment.body, "/duplicate") == '/add' && ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'CONTRIBUTOR' ) + steps: + - name: add-label-duplicate + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/label \ + -d '{"labels":["duplicate"]}' + -- cgit v1.2.3 From b6538c3b256507b14c1062e97448d98a7402f7ba Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sat, 2 Jul 2022 19:42:45 +0000 Subject: revert & fix typo --- .github/workflows/commentCommands.yml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index 393ee22..07fe2b5 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -11,7 +11,7 @@ jobs: if: | github.event.comment.body == '/assignme' steps: - - name: Assigning to commentor + - name: Assigning to commenter run: | curl \ -X POST \ @@ -35,23 +35,4 @@ jobs: -H "Accept: application/vnd.github+json" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \ - -d '{"body":"This issue is put on hold due to low quality. No reviews or fixes will be performed at this time. Eventually, it will be closed. While we appreciate your effort writing, we are not able to further investigate it. Please improve it by writing a better title or providing more details, and you may re-open it."}' - - add-label-duplicate: - runs-on: ubuntu-latest - if: | - startsWith(github.event.comment.body, "/duplicate") == '/add' && ( - github.event.comment.author_association == 'OWNER' || - github.event.comment.author_association == 'COLLABORATOR' || - github.event.comment.author_association == 'CONTRIBUTOR' ) - steps: - - name: add-label-duplicate - run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/label \ - -d '{"labels":["duplicate"]}' - - + -d '{"body":"This issue is put on hold due to low quality. No reviews or fixes will be performed at this time. Eventually, it will be closed. While we appreciate your effort writing, we are not able to further investigate it. Please improve it by writing a better title or providing more details, and you may re-open it."}' -- cgit v1.2.3 From 5c1500da44930dccc45c84c38745c15408682bb4 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 01:20:58 +0530 Subject: fix name Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index 07fe2b5..b11a3c6 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -1,4 +1,4 @@ -name: Assign issue/pull to the commenter +name: commentCommands on: issue_comment: -- cgit v1.2.3 From 5d1c8580f1eccecbac3f6d94d1c7386c396edfbf Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 01:22:29 +0530 Subject: add commentComand add-label-duplicate --- .github/workflows/assignme.yml | 20 ------------------ .github/workflows/commentCommands.yml | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 20 deletions(-) delete mode 100644 .github/workflows/assignme.yml create mode 100644 .github/workflows/commentCommands.yml diff --git a/.github/workflows/assignme.yml b/.github/workflows/assignme.yml deleted file mode 100644 index 586033d..0000000 --- a/.github/workflows/assignme.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Assign issue/pull to the commenter - -on: - issue_comment: - types: created - -jobs: - assign: - runs-on: ubuntu-latest - if: | - github.event.comment.body == '/assignme' - steps: - - name: Assigning to commentor - run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \ - -d '{"assignees":["${{ github.event.comment.user.login }}"]}' diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml new file mode 100644 index 0000000..dd94e84 --- /dev/null +++ b/.github/workflows/commentCommands.yml @@ -0,0 +1,38 @@ +name: commentCommands + +on: + issue_comment: + types: created + +jobs: + + assign-commentor: + runs-on: ubuntu-latest + if: | + github.event.comment.body == '/assignme' + steps: + - name: Assigning to commenter + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees \ + -d '{"assignees":["${{ github.event.comment.user.login }}"]}' + + add-label-duplicate: + runs-on: ubuntu-latest + if: | + startsWith(github.event.comment.body, "/duplicate") == '/add' && ( + github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'COLLABORATOR' || + github.event.comment.author_association == 'CONTRIBUTOR' ) + steps: + - name: add-label-duplicate + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/label \ + -d '{"labels":["duplicate"]}' -- cgit v1.2.3 From 8eeeae0bfd295231796001cc00edba98d8e0d041 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 11:47:45 +0530 Subject: Execute if comment contains command startsWith() --> contains() Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index dd94e84..d835522 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -23,7 +23,7 @@ jobs: add-label-duplicate: runs-on: ubuntu-latest if: | - startsWith(github.event.comment.body, "/duplicate") == '/add' && ( + contains(github.event.comment.body, "/duplicate") == '/add' && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) -- cgit v1.2.3 From 630a271e9ddd126e94d381bba09505e9ff34c82b Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Sun, 3 Jul 2022 13:06:29 +0530 Subject: fix wrong expression & url Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index d835522..89bf1c0 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -23,7 +23,7 @@ jobs: add-label-duplicate: runs-on: ubuntu-latest if: | - contains(github.event.comment.body, "/duplicate") == '/add' && ( + contains(github.event.comment.body, "/duplicate") && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'CONTRIBUTOR' ) @@ -34,5 +34,5 @@ jobs: -X POST \ -H "Accept: application/vnd.github+json" \ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/label \ + https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/labels \ -d '{"labels":["duplicate"]}' -- cgit v1.2.3 From 7ebbbcd40d9d3166cda3dc55879e01dbaa5f285e Mon Sep 17 00:00:00 2001 From: Dexveloper <59431285+Dexveloper@users.noreply.github.com> Date: Sat, 9 Jul 2022 23:01:19 -0700 Subject: Fix string --- Website/_locales/tr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/_locales/tr.ts b/Website/_locales/tr.ts index c5986c1..f064e10 100644 --- a/Website/_locales/tr.ts +++ b/Website/_locales/tr.ts @@ -81,7 +81,7 @@ export default { 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 security FAQ'ya gidin.', + 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 security FAQ\'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?', -- cgit v1.2.3 From 7a9d4b6e82a06fbabc49258c715f75830e310cc9 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:02:19 +0530 Subject: Trigger if mentioned anywhere in the sentence Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index b11a3c6..e5ed4d9 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -23,10 +23,10 @@ jobs: request-issue-framing-improvement: runs-on: ubuntu-latest if: | - github.event.comment.body == '/improve' && ( + contains(github.event.comment.body,'/improve') && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || - github.event.comment.author_association == 'CONTRIBUTOR' ) + github.event.comment.author_association != 'CONTRIBUTOR' ) steps: - name: request-issue-framing-improvement run: | -- cgit v1.2.3 From 815b7372b6683f4670e0e91aa05b02049ee0090d Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:02:59 +0530 Subject: small fix Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index e5ed4d9..8bcb282 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -26,7 +26,7 @@ jobs: contains(github.event.comment.body,'/improve') && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || - github.event.comment.author_association != 'CONTRIBUTOR' ) + github.event.comment.author_association == 'CONTRIBUTOR' ) steps: - name: request-issue-framing-improvement run: | -- cgit v1.2.3 From 5b61c1679e9bc0cfbf9b8364d44d278a4c9c17ef Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:06:10 +0530 Subject: Improve - assign-commenter Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index 8bcb282..d94b732 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -6,10 +6,11 @@ on: jobs: - assign-commentor: + assign-commenter: runs-on: ubuntu-latest if: | - github.event.comment.body == '/assignme' + contains(github.event.comment.body, '/assignme') || + contains(github.event.comment.body, '/assign me') steps: - name: Assigning to commenter run: | -- cgit v1.2.3 From 00fd96e9ade585d91fa269246210d90b0bda6626 Mon Sep 17 00:00:00 2001 From: sy-b <94835959+sy-b@users.noreply.github.com> Date: Tue, 12 Jul 2022 18:07:19 +0530 Subject: Improve - assign-commenter Signed-off-by: sy-b <94835959+sy-b@users.noreply.github.com> --- .github/workflows/commentCommands.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commentCommands.yml b/.github/workflows/commentCommands.yml index 89bf1c0..6344344 100644 --- a/.github/workflows/commentCommands.yml +++ b/.github/workflows/commentCommands.yml @@ -9,7 +9,8 @@ jobs: assign-commentor: runs-on: ubuntu-latest if: | - github.event.comment.body == '/assignme' + contains(github.event.comment.body, '/assignme') || + contains(github.event.comment.body, '/assign me') steps: - name: Assigning to commenter run: | @@ -23,10 +24,10 @@ jobs: add-label-duplicate: runs-on: ubuntu-latest if: | - contains(github.event.comment.body, "/duplicate") && ( + contains(github.event.comment.body, '/duplicate') && ( github.event.comment.author_association == 'OWNER' || github.event.comment.author_association == 'COLLABORATOR' || - github.event.comment.author_association == 'CONTRIBUTOR' ) + github.event.comment.author_association != 'CONTRIBUTOR' ) steps: - name: add-label-duplicate run: | -- cgit v1.2.3 From bc556eecb799c7c85c3e66ee6310367898962bf5 Mon Sep 17 00:00:00 2001 From: Dmitrii Selivanov Date: Tue, 19 Jul 2022 23:48:40 +0200 Subject: Revert "Add ratio display to new design" --- Extensions/combined/content-style.css | 2 +- Extensions/combined/src/bar.js | 15 ++++----------- Extensions/combined/src/state.js | 5 ----- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/Extensions/combined/content-style.css b/Extensions/combined/content-style.css index d8da7db..e2e5fa2 100644 --- a/Extensions/combined/content-style.css +++ b/Extensions/combined/content-style.css @@ -41,6 +41,6 @@ height: 2px; position: absolute; padding-top: 6px; - padding-bottom: 12px; + padding-bottom: 28px; top: -6px; } diff --git a/Extensions/combined/src/bar.js b/Extensions/combined/src/bar.js index 386ff59..c56ab57 100644 --- a/Extensions/combined/src/bar.js +++ b/Extensions/combined/src/bar.js @@ -1,5 +1,5 @@ import { getButtons } from "./buttons"; -import { extConfig, isMobile, isLikesDisabled, isNewDesign } from "./state"; +import { extConfig, isMobile, isLikesDisabled } from "./state"; import { cLog, getColorFromTheme } from "./utils"; function createRateBar(likes, dislikes) { @@ -23,12 +23,12 @@ function createRateBar(likes, dislikes) { } ( - document.getElementById(isNewDesign() ? "actions-inner" : "menu-container") || + document.getElementById("menu-container") || document.querySelector("ytm-slim-video-action-bar-renderer") ).insertAdjacentHTML( "beforeend", ` -
+
` ); - - // Add border between info and comments - if (isNewDesign()) { - let descriptionAndActionsElement = document.getElementById("description-and-actions"); - 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 + "%"; @@ -69,7 +62,7 @@ function createRateBar(likes, dislikes) { } else { cLog("removing bar"); let ratebar = document.getElementById("ryd-bar-container"); - if (ratebar) { + if(ratebar) { ratebar.parentNode.removeChild(ratebar); } } diff --git a/Extensions/combined/src/state.js b/Extensions/combined/src/state.js index 822d9b2..df9d561 100644 --- a/Extensions/combined/src/state.js +++ b/Extensions/combined/src/state.js @@ -39,10 +39,6 @@ function isShorts() { return location.pathname.startsWith("/shorts"); } -function isNewDesign() { - return document.getElementById("comment-teaser") !== null; -} - let mutationObserver = new Object(); if (isShorts() && mutationObserver.exists !== true) { @@ -334,7 +330,6 @@ export { isShorts, isVideoDisliked, isVideoLiked, - isNewDesign, getState, setState, setInitialState, -- cgit v1.2.3 From 343f21359a437fa611d830c5912123c1671f2f66 Mon Sep 17 00:00:00 2001 From: Dmitrii Selivanov Date: Tue, 19 Jul 2022 23:54:57 +0200 Subject: Revert "Add Czech and fix Japanese" --- Extensions/combined/_locales/cs/messages.json | 62 --------------- Website/_locales/cs.ts | 104 -------------------------- Website/layouts/default.vue | 2 - Website/nuxt.config.js | 4 +- Website/pages/links.vue | 8 -- 5 files changed, 1 insertion(+), 179 deletions(-) delete mode 100644 Extensions/combined/_locales/cs/messages.json delete mode 100644 Website/_locales/cs.ts diff --git a/Extensions/combined/_locales/cs/messages.json b/Extensions/combined/_locales/cs/messages.json deleted file mode 100644 index f80e3ac..0000000 --- a/Extensions/combined/_locales/cs/messages.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "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." - } -} diff --git a/Website/_locales/cs.ts b/Website/_locales/cs.ts deleted file mode 100644 index 73c0dac..0000000 --- a/Website/_locales/cs.ts +++ /dev/null @@ -1,104 +0,0 @@ -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 bezpečnostní FAQ.', - 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ů' - }, -} diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index 106c2cb..1db2382 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -103,8 +103,6 @@ export default { { name: "Español", locale: "es" }, { name: "Türkçe", locale: "tr" }, { name: "Русский", locale: "ru" }, - { name: "Čeština", locale: "cs" }, - { name: "日本語", locale: "ja" }, // { name: "Français", locale: "fr" }, // { name: "Deutsch", locale: "de" }, // ... diff --git a/Website/nuxt.config.js b/Website/nuxt.config.js index e024b87..28d13de 100644 --- a/Website/nuxt.config.js +++ b/Website/nuxt.config.js @@ -2,8 +2,6 @@ import en from "./_locales/en"; import es from "./_locales/es"; import tr from "./_locales/tr"; import ru from "./_locales/ru"; -import cs from "./_locales/cs"; -import ja from "./_locales/ja"; // import fr from "./_locales/fr"; // import de from "./_locales/de"; // ... @@ -50,7 +48,7 @@ export default { // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify vuetify: { lang: { - locales: { en, es, tr, ru, cs, ja /*, fr, de, ...*/ }, + locales: { en, es, tr, ru /*, fr, de, ...*/ }, current: "en", }, theme: { diff --git a/Website/pages/links.vue b/Website/pages/links.vue index ec58e62..3fbe465 100644 --- a/Website/pages/links.vue +++ b/Website/pages/links.vue @@ -99,14 +99,6 @@ export default { tag: "PickleNik#0864", lang: "Русский", }, - { - tag: "Fjuro#0179", - lang: "Čeština", - }, - { - tag: "ShaCHO36P", - lang: "日本語", - }, ], coolProjects: [ { name: "SponsorBlock", url: "https://sponsor.ajay.app/", description: "$vuetify.links.sponsorBlockDescription" }, -- cgit v1.2.3