Vaultwarden Admin 介面取得所有 users 資料

因為需要固定清點 Valutwarden 的帳號,所以寫了這段程式快速的撈取所有 users

const rows = document.querySelectorAll('#users-table tbody tr');
const users = []
for (const row of rows) {
    const svg = row.querySelector('svg[data-jdenticon-value]')
    const email = svg.getAttribute('data-jdenticon-value')
    const created_at = row.querySelector('td:nth-child(2)').innerText
    const last_active = row.querySelector('td:nth-child(3)').innerText
    users.push({email, created_at, last_active})
}

users