Skip to content

Commit

Permalink
code-charity#314 Dislike button configurable from popup & handled usi…
Browse files Browse the repository at this point in the history
…ng css
  • Loading branch information
priyank780 committed Aug 1, 2020
1 parent 38c1c23 commit 882eb16
Show file tree
Hide file tree
Showing 18 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _locales/ar/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "يحد اليوتيوب من جودة الفيديو الى ١٠٨٠ لـ الترميز h.264"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube begrenzt die Qualität auf 1080 Zeilen für den h.264 Codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limits video quality to 1080p for h.264 codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limits video quality to 1080p for h.264 codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limits video quality to 1080p for h.264 codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -790,5 +790,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limita la qualità video a 1080p per il codec h.264"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube はH.264コーデックの画質を1080pに制限しています"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/nl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limiteerd video kwaliteit tot 1080p voor h.264 codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/no/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube begrenser videokvaliteten til 1080p for h.264-kodeken"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "O YouTube limita o codec h.264 à resolução de 1080p"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/pt_PT/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -794,5 +794,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "O YouTube limita a qualidade do video em 1080p para o codec h.264"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube ограничивает качетво видео до 1080p для кодека h.264"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/sk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube obmedzuje kvalitu videa na 1080p pri kodeku h.264"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/tr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube, h.264 codec bileşeni için video kalitesini 1080p ile sınırlar"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -799,5 +799,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limits video quality to 1080p for h.264 codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
3 changes: 3 additions & 0 deletions _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -793,5 +793,8 @@
},
"youtubeLimitsVideoQualityTo1080pForH264Codec": {
"message": "YouTube limits video quality to 1080p for h.264 codec"
},
"redDislikeButton": {
"message": "Show dislike button red colour"
}
}
4 changes: 4 additions & 0 deletions src/template/js/template-parts/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ Menu.main.section.appearance = {
always_show_progress_bar: {
type: 'switch',
label: 'alwaysShowProgressBar'
},
red_dislike_button: {
type: 'switch',
label: 'redDislikeButton'
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions src/youtube/css/appearance.css
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ html[it-hide-views-count=true] #watch7-views-info > .watch-view-count
color: transparent !important;
}

[it-red-dislike-button=true] #top-level-buttons > ytd-toggle-button-renderer.style-scope.ytd-menu-renderer.force-icon-button:nth-child(2).style-default-active > a
{
color: #fc0000 !important;
}


/*-----------------------------------------------------------------------------
Expand Down

0 comments on commit 882eb16

Please sign in to comment.