jvolker / miq-nz-booking-tools

Tools to help booking a spot in New Zealand Managed Isolation and Quarantine. Automatically refreshes, checks and fills forms in the website to find and book the rare spots.
MIT License
83 stars 35 forks source link

Scroll to July element #112

Closed stilljake closed 3 years ago

stilljake commented 3 years ago

Fix for #110 If we scroll to the July element, the calendar and captcha/next buttons are all in view.

JulieONeill commented 3 years ago

Thanks @stilljake! Does this mean there’s another script version to download? (I don’t know how to update any part of the code myself to adjust the scrolling 😔)

stilljake commented 3 years ago

Hey @JulieONeill do you think this is redundant now that we know zooming out solves the problem?

BananaHammock743 commented 3 years ago

I have manually added this to the code of v0.10.3 and can confirm it works well. Much more pleasant to have the screen autoscroll to a logical position 👍

Edit: Typo

BananaHammock743 commented 3 years ago

@stilljake this will need to be changed as July is not an available month anymore. I've manually updated mine to be getElementsByClassName('col-12 / mo-6'); which seems to work (#not-a-dev) 🤷‍♂️