forked from OsaSoft/youtube-better-subscriptions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.js
39 lines (35 loc) · 877 Bytes
/
queries.js
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
28
29
30
31
32
33
34
35
36
37
38
39
function vidQuery() {
if (isPolymer) {
return "ytd-grid-video-renderer.style-scope.ytd-grid-renderer:not(." + HIDDEN_CLASS + ")";
} else {
return ".feed-item-container .yt-shelf-grid-item:not(." + HIDDEN_CLASS + ")";
}
}
function sectionsQuery() {
if (isPolymer) {
return "ytd-item-section-renderer.style-scope.ytd-section-list-renderer";
} else {
return ".item-section";
}
}
function sectionTitleQuery() {
if (isPolymer) {
return "#title";
} else {
return "span.branded-page-module-title-text";
}
}
function sectionDismissableQuery() {
if (isPolymer) {
return "#dismissable";
} else {
return ".feed-item-dismissable";
}
}
function sectionContentsQuery() {
if (isPolymer) {
return "#contents";
} else {
return ".multirow-shelf";
}
}