Last active
March 18, 2025 11:35
-
-
Save leyuskckiran1510/ade6c15afefb9f088150d77031b82290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| www.youtube.com##div#like-button > .style-scope.ytd-reel-player-overlay-renderer | |
| www.youtube.com###actions | |
| www.youtube.com###metapanel | |
| www.youtube.com##span.caption-visual-line:nth-of-type(1) | |
| www.youtube.com##span.caption-visual-line:nth-of-type(2) | |
| www.youtube.com##ytd-guide-section-renderer.style-scope.ytd-guide-renderer:nth-of-type(1) | |
| www.youtube.com##ytd-guide-section-renderer.style-scope.ytd-guide-renderer:nth-of-type(2) | |
| www.youtube.com##ytd-guide-section-renderer.style-scope.ytd-guide-renderer:nth-of-type(3) | |
| www.youtube.com##ytd-guide-section-renderer.style-scope.ytd-guide-renderer:nth-of-type(4) | |
| www.youtube.com##ytd-guide-section-renderer.style-scope.ytd-guide-renderer:nth-of-type(5) | |
| www.youtube.com###guide-links-secondary | |
| www.youtube.com###guide-links-primary | |
| www.youtube.com###copyright | |
| www.youtube.com###chips | |
| www.youtube.com##div#contents:nth-of-type(3) > ytd-reel-shelf-renderer.style-scope.ytd-item-section-renderer:nth-of-type(1) | |
| www.youtube.com##ytd-item-section-renderer.style-scope.ytd-watch-next-secondary-results-renderer | |
| www.youtube.com###secondary | |
| www.youtube.com##.yt-spec-button-shape-next.yt-spec-button-shape-next--text.yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-only-default > yt-touch-feedback-shape > .yt-spec-touch-feedback-shape.yt-spec-touch-feedback-shape--overlay-touch-response > .yt-spec-touch-feedback-shape__fill | |
| www.youtube.com##.yt-spec-button-shape-next.yt-spec-button-shape-next--text.yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-only-default > yt-touch-feedback-shape > .yt-spec-touch-feedback-shape.yt-spec-touch-feedback-shape--overlay-touch-response > .yt-spec-touch-feedback-shape__stroke | |
| www.youtube.com##.yt-spec-button-shape-next.yt-spec-button-shape-next--text.yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-only-default > yt-touch-feedback-shape > .yt-spec-touch-feedback-shape.yt-spec-touch-feedback-shape--overlay-touch-response | |
| www.youtube.com##.yt-spec-button-shape-next.yt-spec-button-shape-next--tonal.yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-leading > yt-touch-feedback-shape > .yt-spec-touch-feedback-shape.yt-spec-touch-feedback-shape--overlay-touch-response > .yt-spec-touch-feedback-shape__fill | |
| www.youtube.com###sections | |
| www.youtube.com##.ytVideoMetadataCarouselViewModelHost | |
| www.youtube.com###description | |
| www.youtube.com###owner-sub-count | |
| www.youtube.com##.yt-simple-endpoint.style-scope.ytd-video-owner-renderer | |
| www.youtube.com###contentContainer | |
| www.youtube.com###guide-button | |
| www.youtube.com###buttons > ytd-button-renderer.style-scope.ytd-masthead > yt-button-shape | |
| www.youtube.com###button | |
| www.youtube.com###rich-shelf-header-container | |
| www.youtube.com###content > ytm-shorts-lockup-view-model-v2.shortsLockupViewModelHost.style-scope.ytd-rich-item-renderer > .shortsLockupViewModelHost.style-scope.ytd-rich-item-renderer > .shortsLockupViewModelHostEndpoint.reel-item-endpoint > .shortsLockupViewModelHostThumbnailContainer.shortsLockupViewModelHostThumbnailContainerRounded.shortsLockupViewModelHostThumbnailContainerCustomDimensions > .yt-core-image.shortsLockupViewModelHostThumbnail.yt-core-image--fill-parent-height.yt-core-image--fill-parent-width.yt-core-image--content-mode-scale-aspect-fill.yt-core-image--loaded | |
| www.youtube.com###content > ytm-shorts-lockup-view-model-v2.shortsLockupViewModelHost.style-scope.ytd-rich-item-renderer > .shortsLockupViewModelHost.style-scope.ytd-rich-item-renderer > .shortsLockupViewModelHostEndpoint.reel-item-endpoint > .shortsLockupViewModelHostThumbnailContainer.shortsLockupViewModelHostThumbnailContainerRounded.shortsLockupViewModelHostThumbnailContainerCustomDimensions | |
| www.youtube.com###content > ytm-shorts-lockup-view-model-v2.shortsLockupViewModelHost.style-scope.ytd-rich-item-renderer > .shortsLockupViewModelHost.style-scope.ytd-rich-item-renderer > .shortsLockupViewModelHostOutsideMetadata.shortsLockupViewModelHostMetadataRounded.image-overlay-text > .shortsLockupViewModelHostMetadataTitle.shortsLockupViewModelHostOutsideMetadataTitle > .shortsLockupViewModelHostEndpoint.shortsLockupViewModelHostOutsideMetadataEndpoint > .yt-core-attributed-string.yt-core-attributed-string--white-space-pre-wrap | |
| www.youtube.com##div#content:nth-of-type(1) > .style-scope.ytd-rich-section-renderer | |
| www.youtube.com###country-code | |
| www.youtube.com##.yt-spec-button-shape-next.yt-spec-button-shape-next--text.yt-spec-button-shape-next--overlay.yt-spec-button-shape-next--size-m.yt-spec-button-shape-next--icon-only-default | |
| www.youtube.com###movie_player > .ytp-chrome-top > .ytp-chrome-top-buttons > .ytp-button.ytp-cards-button > .ytp-cards-button-icon-default > .ytp-cards-button-icon | |
| www.youtube.com###country-code | |
| www.youtube.com##+js(user-youtube.js) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.addEventListener("DOMContentLoaded", function () { | |
| document.querySelectorAll("video").forEach(video => { | |
| video.addEventListener("pause", function () { | |
| const button = document.querySelector("yt-button-renderer.style-scope.yt-confirm-dialog-renderer"); | |
| if (button) { | |
| button.click(); | |
| } | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment