-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathqueries.js
More file actions
27 lines (23 loc) · 947 Bytes
/
queries.js
File metadata and controls
27 lines (23 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function vidQuery() {
return [
`ytd-grid-video-renderer.style-scope.ytd-grid-renderer:not(.${HIDDEN_CLASS})`,
`ytd-rich-item-renderer.style-scope.ytd-rich-grid-renderer:not(.${HIDDEN_CLASS})`,
`ytd-rich-item-renderer.style-scope.ytd-rich-grid-row:not(.${HIDDEN_CLASS})`,
`ytd-rich-item-renderer.style-scope.ytd-rich-shelf-renderer:not([is-post]):not(.${HIDDEN_CLASS})`,
`ytd-item-section-renderer.style-scope.ytd-section-list-renderer:not(.${HIDDEN_CLASS})`,
// New January 2026 layout with lockupViewModel
`ytd-rich-item-renderer:has(lockup-view-model):not(.${HIDDEN_CLASS})`
].join(',');
}
function sectionsQuery() {
return "ytd-item-section-renderer.style-scope.ytd-section-list-renderer";
}
function sectionTitleQuery() {
return "#title";
}
function sectionDismissableQuery() {
return "#dismissible";
}
function sectionContentsQuery() {
return "#contents";
}