Skip to content

Instantly share code, notes, and snippets.

@thomasfedb
Last active April 5, 2025 06:15
Show Gist options
  • Save thomasfedb/4965a79fe88df09fa23b6e0d681935cf to your computer and use it in GitHub Desktop.
Save thomasfedb/4965a79fe88df09fa23b6e0d681935cf to your computer and use it in GitHub Desktop.
Exporting your ACRRM logbook

📥 Exporting your ACRRM logbook

1. Open Your Logbook

Go to the ACRRM MyCollege portal and open your logbook.

2. Open the Web Console

To access the developer console:

  • Right-click anywhere on the page
  • Click “Inspect” or “Inspect Element”
  • In the panel that opens, click the “Console” tab

💡 Keyboard Shortcuts:

  • Windows/Linux:
    • Chrome / Edge: Ctrl + Shift + J
    • Firefox: Ctrl + Shift + K
  • Mac:
    • Chrome / Edge: Cmd + Option + J
    • Firefox: Cmd + Option + K
    • Safari: Cmd + Option + C (Enable “Develop” menu first in Preferences > Advanced)

3. Run the Export Script

  • Paste the full code (below) into the Console
  • Press Enter
  • A file named procedures.csv will automatically download

Code

(function() {
  let csv = [];

  // Add header row
  csv.push("Section,Procedure,,Level Required,Level Completed,Facility,Certifier,Date,Status");

  $('table').each(function() {
    // Find the label text and remove any parentheses with text inside
    let label = $(this).parent().parent().prev().find('.FloatLeft').text()
      .replace(/\([^\)]*\)/g, '').trim().replace(/"/g, '""');

    $(this).find('tr').not('.HeadRow').each(function() {
      let row = [`"${label}"`];
      $(this).find('td, th').each(function() {
        let text = $(this).text().trim().replace(/"/g, '""');
        row.push(`"${text}"`);
      });
      csv.push(row.join(','));
    });
  });

  let csvContent = csv.join('\n');

  // Trigger CSV download
  let blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
  let url = URL.createObjectURL(blob);
  let link = document.createElement('a');
  link.setAttribute('href', url);
  link.setAttribute('download', 'procedures.csv');
  link.style.display = 'none';
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment