! Title: Intentional: Twitch (uBlock Origin) ! Description: Removes Twitch's algorithmic feeds and infinite scrolling, so you only see what you came for. ! Homepage: https://aymericbeaumet.github.io/intentional/ ! License: MIT ! Version: 0.2.0 ! Expires: 1 day ! Redirects need the uBO advanced setting userResourcesLocation = https://aymericbeaumet.github.io/intentional/ublock/scriptlets.js ! ===== Twitch ===== ! Twitch: see site.yaml for the policy and tests.yaml for what each rule must do. ! --- Front page: featured carousel and recommendation shelves (redirects to Following) --- www.twitch.tv##[data-a-target="front-page-carousel"] www.twitch.tv##[data-a-target="front-page-main-content"] ! --- Browse: entry point (Browse redirects to Following) --- www.twitch.tv##a[data-a-target="browse-link"] ! --- Side navigation: recommendation sections; Followed Channels stays --- ! Each section is a `.side-nav-section`; its cards say where they come from in data-test-selector. www.twitch.tv##.side-nav-section:has(a[data-test-selector="recommended-channel"]) www.twitch.tv##.side-nav-section:has(a[data-test-selector="recommended-collab-channel"]) www.twitch.tv##.side-nav-section:has(a[data-test-selector="popular-channel"]) www.twitch.tv##.side-nav-section:has(a[data-test-selector="similarity-channel"]) www.twitch.tv##.side-nav-section:has([data-test-selector="category"]) ! --- Following page: the "Recommended channels" shelf --- ! Recommendation shelves render as `.find-me` with shelf cards; followed live channels use other cards. www.twitch.tv##.find-me:has([data-test-selector="shelf-card-selector"]) ! --- Mobile site: the Live tab, the Browse entry and the front page feed --- m.twitch.tv##li[role="presentation"]:has(> a[role="tab"][href="/"]) m.twitch.tv##a[href="/directory"] m.twitch.tv##:matches-path(/^\/(\?|$)/) #page-main-content-wrapper ! --- Shared clip: remove the clip shelf, keep the channel's own Clips library --- www.twitch.tv##:matches-path(/^\/[^/]+\/clip\//) .channel-info-content div:has(> .tw-tower > [data-a-target^="clips-card-"]) ! Mobile puts the current clip's details first, then links to more clips. m.twitch.tv##:matches-path(/^\/(?:[^/]+\/)?clip\//) [class*="secondaryContent--"] > div:has(> a[href*="/clip/"]) ~ div:has(> a[href*="/clip/"]) ! Twitch: redirects to the intentional view www.twitch.tv,m.twitch.tv##+js(intentional-redirect, 0, ^/(\?.*)?$, /directory/following, www.twitch.tv|m.twitch.tv) www.twitch.tv,m.twitch.tv##+js(intentional-redirect, 1, ^/directory/?(\?.*)?$, /directory/following, www.twitch.tv|m.twitch.tv) www.twitch.tv,m.twitch.tv##+js(intentional-redirect, 2, ^/directory/(all|gaming|irl|music|creative|esports)/?(\?.*)?$, /directory/following, www.twitch.tv|m.twitch.tv)