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
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- 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.