Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Programmer Humor
  3. [comiCSS] Visited Link

[comiCSS] Visited Link

Scheduled Pinned Locked Moved Programmer Humor
programmerhumor
17 Posts 13 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pro@programming.devP [email protected]

    Source

    cypherpunks@lemmy.mlC This user is from outside of this forum
    cypherpunks@lemmy.mlC This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #2

    a bit of context:

    • I Still Know What You Visited Last Summer

    • https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors/Privacy_and_the_visited_selector

    • https://www.theregister.com/2025/04/07/chrome_135_history_sniffing/

    J P 2 Replies Last reply
    47
    • cypherpunks@lemmy.mlC [email protected]

      a bit of context:

      • I Still Know What You Visited Last Summer

      • https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors/Privacy_and_the_visited_selector

      • https://www.theregister.com/2025/04/07/chrome_135_history_sniffing/

      J This user is from outside of this forum
      J This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #3

      For a long time this protection was so strict in firefox that even the dev tools was not allowed to see the :visited styles.

      30p87@feddit.org3 1 Reply Last reply
      28
      • J [email protected]

        For a long time this protection was so strict in firefox that even the dev tools was not allowed to see the :visited styles.

        30p87@feddit.org3 This user is from outside of this forum
        30p87@feddit.org3 This user is from outside of this forum
        [email protected]
        wrote on last edited by [email protected]
        #4

        I hate that, in the modern web, customizing is so important that websites want access to the link itself, instead of just stylizing the div outside like normal.

        J 1 Reply Last reply
        13
        • pro@programming.devP [email protected]

          Source

          O This user is from outside of this forum
          O This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #5

          great example of a code smell, too!
          JS needs to know about styles?

          shouldn't be styling in JS! make it asd/remove a class instead

          need to know whether to load content or not? save it to local/session storage! don't make a server call if it already exists!

          need to enhance your tracking? include it with your payloads as it happens, you're asking for race conditions

          client side disabled local caching? great! working as intended. make a graceful fall-back

          everything here is a short term problem that belies long term tech debt. tight coupling sounds sexy, but SOLID principals and The Law of Demeter exist to stop our codebases from rotting
          if we can't change it, then it's not software it's hardware

          M S 2 Replies Last reply
          12
          • 30p87@feddit.org3 [email protected]

            I hate that, in the modern web, customizing is so important that websites want access to the link itself, instead of just stylizing the div outside like normal.

            J This user is from outside of this forum
            J This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #6

            I'm not sure I understand the point you're making?

            30p87@feddit.org3 1 Reply Last reply
            8
            • J [email protected]

              I'm not sure I understand the point you're making?

              30p87@feddit.org3 This user is from outside of this forum
              30p87@feddit.org3 This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #7

              That I don't want any website customizing the color, font etc. of links. Therefore, they shouldn't need access to any properties of those objects after they have been created.

              J 1 Reply Last reply
              6
              • cypherpunks@lemmy.mlC [email protected]

                a bit of context:

                • I Still Know What You Visited Last Summer

                • https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors/Privacy_and_the_visited_selector

                • https://www.theregister.com/2025/04/07/chrome_135_history_sniffing/

                P This user is from outside of this forum
                P This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #8

                TIL, thanks

                1 Reply Last reply
                3
                • pro@programming.devP [email protected]

                  Source

                  S This user is from outside of this forum
                  S This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #9

                  For those who are curious about its history, this is where it all began for the visited links to be that color by default.

                  Date: Mon, 12 Apr 93 02:38:29 -0500

                  Subject: NCSA Mosaic 0.13 released.

                  • Changed default anchor representations: blue and single solid underline for unvisited, dark purple and single dashed underline for visited.
                  M 1 Reply Last reply
                  43
                  • 30p87@feddit.org3 [email protected]

                    That I don't want any website customizing the color, font etc. of links. Therefore, they shouldn't need access to any properties of those objects after they have been created.

                    J This user is from outside of this forum
                    J This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #10

                    You can use user styles for that

                    1 Reply Last reply
                    5
                    • S [email protected]

                      For those who are curious about its history, this is where it all began for the visited links to be that color by default.

                      Date: Mon, 12 Apr 93 02:38:29 -0500

                      Subject: NCSA Mosaic 0.13 released.

                      • Changed default anchor representations: blue and single solid underline for unvisited, dark purple and single dashed underline for visited.
                      M This user is from outside of this forum
                      M This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #11

                      A dashed underline would make it a lot better and accessible. Don't think I've seen a browser do that by default

                      1 Reply Last reply
                      19
                      • pro@programming.devP [email protected]

                        Source

                        _cnt0@sh.itjust.works_ This user is from outside of this forum
                        _cnt0@sh.itjust.works_ This user is from outside of this forum
                        [email protected]
                        wrote on last edited by
                        #12

                        I like to style visited links blue and unvisited links purple, just to mess with people.

                        1 Reply Last reply
                        18
                        • O [email protected]

                          great example of a code smell, too!
                          JS needs to know about styles?

                          shouldn't be styling in JS! make it asd/remove a class instead

                          need to know whether to load content or not? save it to local/session storage! don't make a server call if it already exists!

                          need to enhance your tracking? include it with your payloads as it happens, you're asking for race conditions

                          client side disabled local caching? great! working as intended. make a graceful fall-back

                          everything here is a short term problem that belies long term tech debt. tight coupling sounds sexy, but SOLID principals and The Law of Demeter exist to stop our codebases from rotting
                          if we can't change it, then it's not software it's hardware

                          M This user is from outside of this forum
                          M This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #13

                          JS needs to know about styles?

                          It's about JS trying to detect if the link was visited, not about style. People used to do that to evade cross-site tracking protection, and this is why JS isn't allowed to know that anymore.

                          N O 2 Replies Last reply
                          8
                          • M [email protected]

                            JS needs to know about styles?

                            It's about JS trying to detect if the link was visited, not about style. People used to do that to evade cross-site tracking protection, and this is why JS isn't allowed to know that anymore.

                            N This user is from outside of this forum
                            N This user is from outside of this forum
                            [email protected]
                            wrote on last edited by
                            #14

                            This. Did a seminar on these techniques during my it security degree. Porn sites invented that to detect people that use competing sites.

                            1 Reply Last reply
                            3
                            • O [email protected]

                              great example of a code smell, too!
                              JS needs to know about styles?

                              shouldn't be styling in JS! make it asd/remove a class instead

                              need to know whether to load content or not? save it to local/session storage! don't make a server call if it already exists!

                              need to enhance your tracking? include it with your payloads as it happens, you're asking for race conditions

                              client side disabled local caching? great! working as intended. make a graceful fall-back

                              everything here is a short term problem that belies long term tech debt. tight coupling sounds sexy, but SOLID principals and The Law of Demeter exist to stop our codebases from rotting
                              if we can't change it, then it's not software it's hardware

                              S This user is from outside of this forum
                              S This user is from outside of this forum
                              [email protected]
                              wrote on last edited by
                              #15

                              great example of a code smell, too! JS needs to know about styles?

                              shouldn't be styling in JS!

                              But what if I want to use JSSS?

                              1 Reply Last reply
                              2
                              • M [email protected]

                                JS needs to know about styles?

                                It's about JS trying to detect if the link was visited, not about style. People used to do that to evade cross-site tracking protection, and this is why JS isn't allowed to know that anymore.

                                O This user is from outside of this forum
                                O This user is from outside of this forum
                                [email protected]
                                wrote on last edited by
                                #16

                                hence the comment about tracking 😉
                                anything more than recording your events as they happen are a security and privacy risk

                                1 Reply Last reply
                                0
                                • pro@programming.devP [email protected]

                                  Source

                                  T This user is from outside of this forum
                                  T This user is from outside of this forum
                                  [email protected]
                                  wrote on last edited by
                                  #17

                                  Sheesh, because of their colors at the bottom my mind interpreted purple and blue as purple and yellow and it got me hella confused

                                  1 Reply Last reply
                                  1
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups