Added URL helper to q. Getting social links from Boobpedia.
This commit is contained in:
@@ -42,6 +42,10 @@ function qimages(context, selector = 'img', attr = 'src') {
|
||||
return qall(context, selector, attr);
|
||||
}
|
||||
|
||||
function qurls(context, selector = 'a', attr = 'href') {
|
||||
return qall(context, selector, attr);
|
||||
}
|
||||
|
||||
function qposter(context, selector = 'video', attr = 'poster') {
|
||||
return q(context, selector, attr);
|
||||
}
|
||||
@@ -71,12 +75,14 @@ const funcs = {
|
||||
qposter,
|
||||
qlength,
|
||||
qtrailer,
|
||||
qurls,
|
||||
qa: qall,
|
||||
qd: qdate,
|
||||
qi: qimages,
|
||||
qp: qposter,
|
||||
ql: qlength,
|
||||
qt: qtrailer,
|
||||
qu: qurls,
|
||||
};
|
||||
|
||||
function ctx(element, window) {
|
||||
|
||||
Reference in New Issue
Block a user