Skip to content

you_won: hide href from browser hints - #5

Merged
boreq merged 4 commits into
mainfrom
coderobe-patch-1
Apr 20, 2026
Merged

boreq merged 4 commits into
mainfrom
coderobe-patch-1

Conversation

@coderobe

Copy link
Copy Markdown
Member

No description provided.

@coderobe
coderobe requested a review from boreq April 20, 2026 22:11
@boreq

boreq commented Apr 20, 2026

Copy link
Copy Markdown
Member

@copilot Change the code so that the links are present in href attrs on page load but are replaced with # if javascript works to support users with javascript disabled.

Copilot AI commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

@copilot Change the code so that the links are present in href attrs on page load but are replaced with # if javascript works to support users with javascript disabled.

Implemented in 22fc51c.

Now both links render with their real destinations in href on initial page load, and JavaScript replaces them with # after load while preserving navigation behavior for JS-enabled users.

Screenshot:
you_won page after JS href replacement

@coderobe

Copy link
Copy Markdown
Member Author

look how it massacred my boy

@boreq

boreq commented Apr 20, 2026

Copy link
Copy Markdown
Member

@copilot

now get back to just doing

        <script>
            for (const link of document.querySelectorAll(".js-href")) {
                link.href = "#";
            }
        </script>

Copilot AI commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

@copilot

now get back to just doing
...

Done in 4725d65.

I simplified it back to just replacing .js-href links with # in a minimal inline loop.

Screenshot:
updated you_won page

@boreq boreq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot: when you do your best and it isn't enough

@coderobe

Copy link
Copy Markdown
Member Author

dude how many tokens did that burn those sessions were running for 20 minutes

@boreq
boreq merged commit eb614ef into main Apr 20, 2026
2 checks passed
@boreq

boreq commented Apr 20, 2026

Copy link
Copy Markdown
Member

dude how many tokens did that burn those sessions were running for 20 minutes

screenshots for the 15th time

@boreq
boreq deleted the coderobe-patch-1 branch May 11, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants