From e0807139eb83db63b2d0316526701e521fce3ce3 Mon Sep 17 00:00:00 2001 From: syeopite Date: Sun, 17 Sep 2023 11:58:14 -0700 Subject: [PATCH] Use button instead of anchor for try reddit link --- assets/css/default.css | 29 +++++++++++++++++++++-------- assets/js/comments.js | 4 ++-- src/invidious/views/watch.ecr | 4 ++-- 3 files changed, 25 insertions(+), 12 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index b9433643..0b059a31 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -58,6 +58,11 @@ body { justify-content: flex-end; } +button.simulated_a { + background: none; + border: none; +} + /* * Channel page @@ -516,7 +521,9 @@ span > select { .light-theme a:active, .light-theme summary:hover, .light-theme a:focus, -.light-theme summary:focus { +.light-theme summary:focus, +.light-theme .simulated_a:hover, +.light-theme .simulated_a:active { color: #075A9E !important; } @@ -534,7 +541,7 @@ span > select { background-color: #fff2; } -.light-theme a { +.light-theme a, .light-theme .simulated_a { color: #335d7a; text-decoration: none; } @@ -555,7 +562,9 @@ span > select { .no-theme a:active, .no-theme summary:hover, .no-theme a:focus, - .no-theme summary:focus { + .no-theme summary:focus, + .no-theme .simulated_a:hover, + .no-theme .simulated_a:active { color: #075A9E !important; } @@ -573,7 +582,7 @@ span > select { background-color: #fff2; } - .no-theme a { + .no-theme a, .no-theme .simulated_a{ color: #335d7a; text-decoration: none; } @@ -607,7 +616,9 @@ span > select { .dark-theme a:active, .dark-theme summary:hover, .dark-theme a:focus, -.dark-theme summary:focus { +.dark-theme summary:focus, +.dark-theme .simulated_a:hover, +.dark-theme .simulated_a:active { color: rgb(0, 182, 240); } @@ -625,7 +636,7 @@ span > select { color: #ddd; } -.dark-theme a { +.dark-theme a, .dark-theme .simulated_a { color: #adadad; text-decoration: none; } @@ -661,7 +672,9 @@ body.dark-theme { @media (prefers-color-scheme: dark) { .no-theme a:hover, .no-theme a:active, - .no-theme a:focus { + .no-theme a:focus, + .no-theme .simulated_a:hover, + .no-theme .simulated_a:active { color: rgb(0, 182, 240); } @@ -679,7 +692,7 @@ body.dark-theme { color: #ddd; } - .no-theme a { + .no-theme a, .no-theme .simulated_a{ color: #adadad; text-decoration: none; } diff --git a/assets/js/comments.js b/assets/js/comments.js index f6fffeea..45817bff 100644 --- a/assets/js/comments.js +++ b/assets/js/comments.js @@ -78,9 +78,9 @@ function get_youtube_comments() {

${video_data.comments_youtube_disabled_text}

-

+

`; document.getElementById("try-reddit-comments-link").onclick = swap_comments; diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 5a686fcd..78b2af02 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -319,9 +319,9 @@ we're going to need to do it here in order to allow for translations.

- +