From 1be31bbb0740e9c5a02d684e584f0d4d09831c78 Mon Sep 17 00:00:00 2001 From: Aaron Kerckhoff Date: Fri, 20 May 2022 16:27:05 +0200 Subject: [PATCH 01/20] 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: [PATCH 02/20] 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 + "%"; From ea5617950f68c647cf2f0ec60270b8b4d6ddc7f4 Mon Sep 17 00:00:00 2001 From: Aaron Kerckhoff Date: Sat, 21 May 2022 00:08:38 +0200 Subject: [PATCH 03/20] 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 + "%"; 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: [PATCH 04/20] 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 + 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: [PATCH 05/20] 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 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: [PATCH 06/20] 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 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: [PATCH 07/20] 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 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: [PATCH 08/20] 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 }}"]}' 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: [PATCH 09/20] 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."}' + + 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: [PATCH 10/20] 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"]}' + 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: [PATCH 11/20] 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."}' 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: [PATCH 12/20] 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: 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: [PATCH 13/20] 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"]}' 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: [PATCH 14/20] 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' ) 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: [PATCH 15/20] 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"]}' 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: [PATCH 16/20] 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: | 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: [PATCH 17/20] 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: | 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: [PATCH 18/20] 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: | 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: [PATCH 19/20] 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: | From bc556eecb799c7c85c3e66ee6310367898962bf5 Mon Sep 17 00:00:00 2001 From: Dmitrii Selivanov Date: Tue, 19 Jul 2022 23:48:40 +0200 Subject: [PATCH 20/20] 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,