News for hackers. Stuff that matters.
Re:Self-hosted, simple web browser service – send URL, get s... by synthomat on Thursday February 06, 2025 @03:13PM (#42966050)
That's nice and everything but what to do about the EU cookie banners? Does hosting outside of the EU help?
Re:Self-hosted, simple web browser service – send URL, get s... by cess11 on Thursday February 06, 2025 @03:55PM (#42966416)
No. Tell the services you're using to stop with the malicious compliance.
Re:Self-hosted, simple web browser service – send URL, get s... by gkamer8 on Thursday February 06, 2025 @03:41PM (#42966276)
Yeah the EU cookie banners are annoying, I'm hoping to do some automation to click out of them before taking the screenshots
Re:Self-hosted, simple web browser service – send URL, get s... by cjr on Thursday February 06, 2025 @03:49PM (#42966355)
There are browser extensions you could run like consent-o-matic to try to click and hide the cookies from your screenshots:

https://chromewebstore.google.com/detail/consent-o-matic/mdj...

Otherwise using a combination of well-known class names, ‘accept’ strings, and heuristics such as z-index, position: fixed/sticky etc can also narrow down the number of likely elements that could be modals/banners.

You could also ask a vision model whether a screenshot has a cookie banner, and ask for co-ordinates to remove it, although this could get expensive at scale!

Re:Self-hosted, simple web browser service – send URL, get s... by gkamer8 on Thursday February 06, 2025 @04:06PM (#42966504)
Thanks, that's a great idea! I was originally going to go the vision model route because I'd also like people to be able to send instructions to sign in with some credentials (like when visiting the nytimes or something).
Re:Self-hosted, simple web browser service – send URL, get s... by artur_makly on Thursday February 06, 2025 @04:09PM (#42966528)
yeah that's what we basically did here at https://VisualSitemaps.com, but it can also be quickly become over-the-top, and you may end up removing important content. That's why in the end we added a second option to just manually enter CSS classes.
Re:Self-hosted, simple web browser service – send URL, get s... by busymom0 on Thursday February 06, 2025 @05:10PM (#42967020)
Would recommend using SeleniumBase's CDP mode to search for those substrings, click accept on those cookie banners and then take screenshot.