Skip to content

Commit f9892c3

Browse files
Merge pull request #3 from SuppliedOrange/SuppliedOrange-test-add-number
Updated 4
2 parents 8edceef + 261b1bc commit f9892c3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

data/numbers.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ const data: ScrapeQuery[] = [
3838
},
3939
{
4040
number: 4,
41-
url: "https://imgur.com/upload",
41+
url: "https://stackoverflow.com/questions/34001917/queryselectorall-with-multiple-conditions-in-javascript",
4242
queryFunction: () => {
43-
return document.querySelector(".PopUpActions-textPicker > input").placeholder.split(" ").length
43+
return Array.from(
44+
document.querySelectorAll(".user-action-time > span.relativetime") )
45+
.map(x => x.innerText.split(" ")[1]
46+
).filter( x => x[0] == 4 )[0][0]
4447
}
4548
},
4649
{

0 commit comments

Comments
 (0)