Added Dorcel Club with scene and actor scraping. Added count method to qu.
This commit is contained in:
@@ -95,6 +95,10 @@ function exists(context, selector) {
|
||||
return !!q(context, selector);
|
||||
}
|
||||
|
||||
function count(context, selector) {
|
||||
return all(context, selector)?.length || 0;
|
||||
}
|
||||
|
||||
function content(context, selector, applyTrim = true) {
|
||||
return q(context, selector, 'textContent', applyTrim);
|
||||
}
|
||||
@@ -323,6 +327,7 @@ const quFuncs = {
|
||||
contents,
|
||||
cnt: content,
|
||||
cnts: contents,
|
||||
count,
|
||||
date,
|
||||
dateAgo,
|
||||
dur: duration,
|
||||
|
||||
Reference in New Issue
Block a user