Customise "Buy it Now" button using theme app extension

Is there a method to customize the redirection URL of the default Buy it now button, allowing for the addition of query parameters via theme app extension? I want to add cart attributes.

I am creating a Shopify app that uses a theme app extension.

Hi Mezdev,

You should be able to use JS in your theme app extension to target another element on the page and make a change to it, eg: by using querySelector() and targeting the buy it now on the page.