Skip to content

Randomly hijack "Read Latest Summary" button #347

Description

@BhaveshKukreja29

Currently, the /summary/random route is accessible only by URL, added in #75. It was decided to keep it as a hidden easter egg and avoid adding a permanent button since it'd cause clutter, but there is no way for a user to discover it via frontend.

We can add a client side script that has a low probability (5 percent?) of hijacking "Read Latest Summary" and swap with "Read Random Summary". I also considered that we don't want to do this if the user is a first time visitor, we can simply use localStorage and store a boolean value for that.

10-12 lines of code at max. After considering several other approaches, this seems the easiest, and also the most fun. After all, random summary picker definitely deserves a randomly appearing button :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions