From ef17cae9a179498a4524a85d06c9e6e0959552eb Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 20 May 2020 23:32:57 -0400 Subject: [PATCH] Changed to upvote/downvote from report --- manifest/manifest.json | 4 +- public/_locales/en/messages.json | 5 ++- public/icons/thumbs_down.svg | 58 +++++++++++++++++++++++++ public/icons/thumbs_up.svg | 59 ++++++++++++++++++++++++++ src/components/SkipNoticeComponent.tsx | 29 +++++++------ src/content.ts | 4 +- 6 files changed, 142 insertions(+), 17 deletions(-) create mode 100644 public/icons/thumbs_down.svg create mode 100644 public/icons/thumbs_up.svg diff --git a/manifest/manifest.json b/manifest/manifest.json index a64cbb13..f704bc77 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -1,7 +1,7 @@ { "name": "__MSG_fullName__", "short_name": "__MSG_Name__", - "version": "1.2.28.4", + "version": "1.2.29", "default_locale": "en", "description": "__MSG_Description__", "content_scripts": [{ @@ -30,6 +30,8 @@ "icons/PlayerUploadFailedIconSponsorBlocker256px.png", "icons/upvote.png", "icons/downvote.png", + "icons/thumbs_down.svg", + "icons/thumbs_up.svg", "icons/report.png", "icons/close.png", "icons/beep.ogg", diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 9d8cf88a..c4de7a57 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -35,11 +35,14 @@ "Segments": { "message": "sponsor segments" }, + "upvoteButtonInfo": { + "message": "Upvote this submission" + }, "reportButtonTitle": { "message": "Report" }, "reportButtonInfo": { - "message": "Report this sponsor submission as incorrect." + "message": "Report this submission as incorrect." }, "Dismiss": { "message": "Dismiss" diff --git a/public/icons/thumbs_down.svg b/public/icons/thumbs_down.svg new file mode 100644 index 00000000..09b88432 --- /dev/null +++ b/public/icons/thumbs_down.svg @@ -0,0 +1,58 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/public/icons/thumbs_up.svg b/public/icons/thumbs_up.svg new file mode 100644 index 00000000..85e1b743 --- /dev/null +++ b/public/icons/thumbs_up.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 8c71b947..46c58db0 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -164,19 +164,19 @@ class SkipNoticeComponent extends React.Component - {/* Report Text */} - - - {chrome.i18n.getMessage("reportButtonTitle")} - + {/* Upvote Button */} + this.prepAction(SkipNoticeAction.Upvote)}> + + {/* Report Button */} this.adjustDownvotingState(true)}> @@ -328,6 +328,9 @@ class SkipNoticeComponent extends React.Component