Live data from Hacker News

Website moves the “change cookie settings” button when you hover over it

vielhuber.de

21–29 of 29 posts

Re: Website moves the “change cookie settings” button when you hover over it

#21
post #12
post #9

not-even-mad.jpg Funny enough he went through the trouble to make sure tabbing works, and that the bottom url indicator is readable. If you tab to "Define Settings" you can in fact disable analytics, and "Accept All" changes to "Accept".

You can also click "reject" in the text to reject the cookies.

... and hope his definition of "basic" unblockable cookies aligns with yours:

https://news.ycombinator.com/item?id=29753032

Re: Website moves the “change cookie settings” button when you hover over it

#22

The only cookies of this website are (and no local storage or anything): cc_hide_prompt:"1", which is there for the cookie prompt itself to function, and: cc_accepted_providers:"analytics,dummy_group_1", which doesn't contain any other info than that, no unique tracking codes Why is this web developer even adding cookies at all here, given that there doesn't seem to be anything of value in them (unless the dummy grou…

Likely just a demonstration of this quirk for fun, and I imagine it's good conversation for interviews in case the interviewer took a look at their website beforehand.

Re: Website moves the “change cookie settings” button when you hover over it

#23

> I have a weakness for beautiful design I take it to mean he's weak in this area. It's never cool to do stuff like this, unless it's a joke or a troll. I have he extension "I don't care about cookies" installed and he doesn't seem to know how to make it easy if we don't care about cookies.

I don’t understand your complaint. This is just like every newspaper website, just slightly more obvious about what they want to make you do. Heck, the “manage cookies” button isn’t in some tiny, unreadable pale gray, so this is probably a less tricky design than most.

Re: Website moves the “change cookie settings” button when you hover over it

#24
post #15

I think it's a glitch / unintentional. First, hover over the buttons. Then try widening your browser window from 800px to 1600px in chrome. Then back down to 800px. Do it slowly. You'll see that button position swap regardless whether you hover or not. Also, it doesn't happen in smaller viewport.

It is intentional. It's caused by `funnyButton` function which after beautifying looks like this.

            funnyButton() {
                document.addEventListener("mouseover", e => {
                    if (e.target.closest(".chefcookie__button--settings")) {
                        if (window.innerWidth  {
                            this.funnyButtonAnimation = !1
                        }, 550)
                    }
                }), document.addEventListener("click", e => {
                    e.target.closest(".chefcookie__button--settings") && (this.funnyButtonStop = !0)
                })
            }

Re: Website moves the “change cookie settings” button when you hover over it

#25
post #23

> I have a weakness for beautiful design I take it to mean he's weak in this area. It's never cool to do stuff like this, unless it's a joke or a troll. I have he extension "I don't care about cookies" installed and he doesn't seem to know how to make it easy if we don't care about cookies.

I don’t understand your complaint. This is just like every newspaper website, just slightly more obvious about what they want to make you do. Heck, the “manage cookies” button isn’t in some tiny, unreadable pale gray, so this is probably a less tricky design than most.

I take it some aren't seeing the button move out from under them, like a deceptive trick. JavaScript disabled? I can assure, every other newspaper site doesn't do this.

Re: Website moves the “change cookie settings” button when you hover over it

#26
post #2

What exactly moves? I'm looking at the banner at the top, and nothing moves when I hover over the "Define settings" or "Accept all" buttons, or any of the text links in the banner (in Chrome, Linux). Edit: turns out it only swaps under some conditions, according to the prettied code here [1]. One of those conditions is having a touch screen, which my laptop does. [1] https://news.ycombinator.com/item?id=29753092

It moves the button for me in Chrome. Do you have javascript disabled?

I do not. They animate (fading a little bit), but they don't swap, even after a bunch of page reloads. Turns out the swap is disabled if you have a touch screen.

Re: Website moves the “change cookie settings” button when you hover over it

#27

The only cookies of this website are (and no local storage or anything): cc_hide_prompt:"1", which is there for the cookie prompt itself to function, and: cc_accepted_providers:"analytics,dummy_group_1", which doesn't contain any other info than that, no unique tracking codes Why is this web developer even adding cookies at all here, given that there doesn't seem to be anything of value in them (unless the dummy grou…

Likely just a demonstration of this quirk for fun, and I imagine it's good conversation for interviews in case the interviewer took a look at their website beforehand.

Pretty sure you're supposed to indicate that it's a parody when do you something that, taken seriously, breaks the law.

Re: Website moves the “change cookie settings” button when you hover over it

#28
post #23

Earlier quoted context omitted.

I don’t understand your complaint. This is just like every newspaper website, just slightly more obvious about what they want to make you do. Heck, the “manage cookies” button isn’t in some tiny, unreadable pale gray, so this is probably a less tricky design than most.

I take it some aren't seeing the button move out from under them, like a deceptive trick. JavaScript disabled? I can assure, every other newspaper site doesn't do this.

No, I’m seeing it. It’s just less scummy than the average website because they admit to trying to trick you into accepting tracking, instead of using every dark pattern in the book for more advertising dollars.

Re: Website moves the “change cookie settings” button when you hover over it

#29
post #2

What exactly moves? I'm looking at the banner at the top, and nothing moves when I hover over the "Define settings" or "Accept all" buttons, or any of the text links in the banner (in Chrome, Linux). Edit: turns out it only swaps under some conditions, according to the prettied code here [1]. One of those conditions is having a touch screen, which my laptop does. [1] https://news.ycombinator.com/item?id=29753092

My laptop doesn't have a touch screen (M1 Air with Safari), and "Define Settings" moves when I go for it. So that check is either wrong or misleading.

Made me chuckle, though. And to be fair there is an option to "Decline Cookies" - which doesn't move.

Post reply on HN