forked from DebaucheryLibrarian/traxxx
Fixed various Kelly Madison scraper issues.
This commit is contained in:
@@ -69,6 +69,10 @@ function prefixUrl(urlValue, origin, protocol = 'https') {
|
||||
}
|
||||
|
||||
function q(context, selector, attrArg, applyTrim = true) {
|
||||
if (!selector && context.nodeName === '#document') {
|
||||
return null;
|
||||
}
|
||||
|
||||
const attr = attrArg === true ? 'textContent' : attrArg;
|
||||
|
||||
if (attr) {
|
||||
|
||||
Reference in New Issue
Block a user