User:Habst/getMeetEditions.js

window.results ??= await (await fetch(`${window.location.href.split('/').slice(0, 7).join('/')}/api/competitions/all?${new URLSearchParams({query:'Meeting Hauts-de-France Pas-de-Calais'})}`, { "headers": { "authorization": auth }, })).json results.divs.flatMap(div => div.tables).flatMap(table => table.body).toReversed.map((r, i) => `| || ${r.startDate.slice(0, 4)} Meeting Hauts-de-France Pas-de-Calais || ${r.startDate} || `).join('\n|-\n') // [...Array(2024 - 1908)].map((_, i) => `| || ${1908 + i} Millrose Games || ${1908 + i} ||`).join('\n|-\n')