you can try or test like this:
Get the quick publish button id and write a event listener using javascript function:
$(document).on("click", ".cq-siteadmin-admin-actions-quickpublish-activator", function(e) {e.preventDefault();var selectedPages = Granite.author.selection.getSelectedPages();if (sel...