Add Return YouTube Dislike extension example
Add a new example extension that displays YouTube dislike counts using the public Return YouTube Dislike API. This is a simplified port of the Anarios/return-youtube-dislike project adapted for Nebula's native extension runtime (content-script only, no Chrome APIs). Includes proper attribution and respects rate limits and GPL-3.0 licensing requirements.
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
/* Return YouTube Dislike — Nebula port
|
||||
* Ratio bar styles adapted from Anarios/return-youtube-dislike (GPL-3.0)
|
||||
* https://github.com/Anarios/return-youtube-dislike
|
||||
*/
|
||||
|
||||
#ryd-bar-container {
|
||||
background: #cc0000 !important;
|
||||
border-radius: 2px;
|
||||
width: 100% !important;
|
||||
height: 3px !important;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#ryd-bar {
|
||||
background: #2ba640 !important;
|
||||
border-radius: 2px 0 0 2px;
|
||||
transition: width 0.15s ease-in-out;
|
||||
height: 100% !important;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ryd-tooltip {
|
||||
display: block !important;
|
||||
height: 3px !important;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
ytd-menu-renderer.ytd-watch-metadata {
|
||||
overflow-y: visible !important;
|
||||
}
|
||||
|
||||
#top-level-buttons-computed {
|
||||
position: relative !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
#actions-inner,
|
||||
#actions {
|
||||
position: relative;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.ryd-dislike-count {
|
||||
margin-left: 4px;
|
||||
font: 500 14px / 1 "Roboto", "Arial", sans-serif;
|
||||
color: var(--yt-spec-text-primary, inherit);
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
dislike-button-view-model,
|
||||
#segmented-dislike-button,
|
||||
ytd-toggle-button-renderer {
|
||||
min-width: 60px !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user