← All examples

Action Productivity booksy.com

Copy the day's appointment list

An action button gathers every visible appointment block from the Booksy Biz schedule and copies them as a text list ready to share with the team.

Code to copy

try {
  var blocks = document.querySelectorAll('[class*="calendar" i] [class*="event" i], [data-testid*="appointment-block" i]');
  var lines = [];
  blocks.forEach(function (b) {
    try {
      var t = (b.textContent || '').replace(/\s+/g, ' ').trim();
      if (t) lines.push(t);
    } catch (e) {}
  });
  if (!lines.length) { alert('No appointments found on screen.'); }
  else {
    var out = lines.join('\n');
    navigator.clipboard.writeText(out).then(function () {
      alert('Copied ' + lines.length + ' appointment(s) to clipboard.');
    });
  }
} catch (e) { alert('Could not copy the day list: ' + e.message); }

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Enable the action panel, add a button in the Actions tab and paste the code into it — run it with one click.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases