Skip to content

Commit

Permalink
fixed the modal popup issue and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahgurung committed Oct 5, 2020
1 parent 7526961 commit 2388a08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Coming Soon
## Highlights
GENERAL
- Keep the sidebar collapsed by default ([@gurrrung](https://github.com/gurrrung))
- Hide boosted videos in search results ([@iamsahil1910](https://github.com/iamsahil1910))
- Hide boosted videos in search results ([@gurrrung](https://github.com/gurrrung))

VIDEO
- Make sure that the AutoPlay is disabled by default always ([@gurrrung](https://github.com/gurrrung))
Expand Down Expand Up @@ -54,6 +54,4 @@ Both commands will create a `dist/` directory, it will contain the built files t

## Contributing

### Note: We can accept outside contributors only after 5 Oct as this project is being submitted to a hackathon.

Contributions are welcome, feel free to create an issue with your feature idea or just resolve any available issues. The guide for creating a new feature is available [here](https://github.com/gurrrung/YourTube/blob/master/CONTRIBUTING.md).
8 changes: 6 additions & 2 deletions src/features/expand-description.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import elementReady from 'element-ready';
export default async function () {
await elementReady('yt-formatted-string.more-button.style-scope.ytd-video-secondary-info-renderer');
await elementReady('paper-button#less.style-scope.ytd-expander');
$('yt-formatted-string.more-button.style-scope.ytd-video-secondary-info-renderer').trigger('click');
$('paper-button#less.style-scope.ytd-expander').hide();
let isCollapsed = $('ytd-expander.style-scope.ytd-video-secondary-info-renderer').attr('collapsed');

if (typeof isCollapsed !== typeof undefined && isCollapsed !== false) {
$('yt-formatted-string.more-button.style-scope.ytd-video-secondary-info-renderer').trigger('click');
$('paper-button#less.style-scope.ytd-expander').hide();
}
}

0 comments on commit 2388a08

Please sign in to comment.