mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
Include recent past events
This commit is contained in:
1 parent
0c6389bc35
commit
2a43d8d4cd
1 file changed
+1
-3
@@ -7,9 +7,7 @@ async function getEventLinks() {
|
||||
const response = await fetch(url);
|
||||
const text = await response.text();
|
||||
const root = parse(text);
|
||||
let links = root.querySelectorAll(
|
||||
"#events-list-upcoming h3.c-card-event--result__headline"
|
||||
);
|
||||
let links = root.querySelectorAll(".c-card-event--result__headline");
|
||||
links = links.map(
|
||||
(html) => "https://www.ufc.com" + html.firstChild.getAttribute("href")
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user