Skip to content

Commit

Permalink
enable selection of comments and video boxes of the new youtube version
Browse files Browse the repository at this point in the history
  • Loading branch information
glaucocustodio committed Nov 13, 2019
1 parent 4094351 commit 689fc9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions HOW-TO-RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# How to release

- change the version on `manifest.json`
- create a git tag (ex: v0.0.9)
- go to Releases page of the repo
- click "Draft a new release"
Expand Down
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,16 @@ window.addEventListener('load', function() {

SpatialNavigation.init();
/*
video: ytd-grid-video-renderer, ytd-video-renderer, ytd-compact-video-renderer ou apenas ytd-thumbnail
new video box (home page): ytd-rich-grid-video-renderer
video box: ytd-grid-video-renderer, ytd-video-renderer, ytd-compact-video-renderer ou apenas ytd-thumbnail
small screen side menu links (home, trending, subs, library): ytd-mini-guide-entry-renderer
channel box on search results page: ytd-channel-renderer
show more / less button: paper-button.ytd-expander
comment box: ytd-comment-renderer
*/
SpatialNavigation.add({
id: 'yc-initial',
selector: 'ytd-grid-video-renderer, ytd-video-renderer, ytd-compact-video-renderer, ytd-player, ytd-guide-entry-renderer, .ytd-video-primary-info-renderer ytd-toggle-button-renderer, ytd-video-owner-renderer, .paper-tab, #subscribe-button paper-button, yt-confirm-dialog-renderer yt-button-renderer, yt-confirm-dialog-renderer, ytd-mini-guide-entry-renderer, ytd-channel-renderer, paper-button.ytd-expander',
selector: 'ytd-rich-grid-video-renderer, ytd-grid-video-renderer, ytd-video-renderer, ytd-compact-video-renderer, ytd-player, ytd-guide-entry-renderer, .ytd-video-primary-info-renderer ytd-toggle-button-renderer, ytd-video-owner-renderer, .paper-tab, #subscribe-button paper-button, yt-confirm-dialog-renderer yt-button-renderer, yt-confirm-dialog-renderer, ytd-mini-guide-entry-renderer, ytd-channel-renderer, paper-button.ytd-expander, ytd-comment-renderer',
})
// adds another section to avoid focus on the YT logo when accessing the home page
SpatialNavigation.add({
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "YouCaptain",
"version": "0.0.4",
"version": "0.0.5",
"description": "Enables keyboard navigation on YouTube",
"manifest_version": 2,
"homepage_url": "https://github.com/glaucocustodio/youcaptain",
Expand Down

0 comments on commit 689fc9b

Please sign in to comment.