Added Dorcel Club with scene and actor scraping. Added count method to qu.

This commit is contained in:
DebaucheryLibrarian
2020-09-16 04:55:30 +02:00
parent 34e087098b
commit 6fb15fb591
20 changed files with 165 additions and 6 deletions

View File

@@ -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,