Skip to content

Commit

Permalink
fix: Playlist Add button appeard only after resize to mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tandashi committed Jan 22, 2022
1 parent 2347074 commit 939096b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ function injectButton(
const container = $(containerSelector);
$(`ytd-button-renderer#${id}`).remove();
if (container.length === 1 && container.find(`#${id}`).length === 0) {
console.log(`ytd-button-renderer#${id}`);
injectYtRenderedButton(container, insertAfter, id, text, icon, cb);
clearInterval(handler);
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const NON_PLAYLIST_CONTAINER_SELECTOR = 'div#secondary div#secondary-inne
export const VIDEO_INFO_BUTTON_INJECT_CONTAINER_SELECTOR =
'div#primary > div#primary-inner > div#info > div#info-contents > ytd-video-primary-info-renderer > div#container > div#info ytd-menu-renderer';
export const VIDEO_PLAYLIST_BUTTON_INJECT_CONTAINER_SELECTOR =
'div#primary ytd-playlist-panel-renderer div#playlist-actions > div#end-actions';
'div#secondary ytd-playlist-panel-renderer div#playlist-actions > div#end-actions';
export const PLAYLIST_PLAYLIST_BUTTON_INJECT_CONTAINER_SELECTOR = 'ytd-playlist-sidebar-primary-info-renderer div#menu';

export const Reactions: Reaction[] = [
Expand Down

0 comments on commit 939096b

Please sign in to comment.