schlunker
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Pro@programming.dev to Programmer Humor@programming.devEnglish · 6 hours ago

[comiCSS] Visited Link

comicss.art

message-square
11
fedilink
156

[comiCSS] Visited Link

comicss.art

Pro@programming.dev to Programmer Humor@programming.devEnglish · 6 hours ago
message-square
11
fedilink

Source

alert-triangle
You must log in or register to comment.
  • _cnt0@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    ·
    1 hour ago

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

  • said@lemmy.sdf.org
    link
    fedilink
    arrow-up
    17
    ·
    4 hours ago

    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.
    • MagicChicken@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 hour ago

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

  • Arthur Besse@lemmy.ml
    link
    fedilink
    English
    arrow-up
    34
    arrow-down
    1
    ·
    6 hours ago

    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/

    • jol@discuss.tchncs.de
      link
      fedilink
      arrow-up
      22
      ·
      6 hours ago

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

      • Lucy :3@feddit.org
        link
        fedilink
        arrow-up
        9
        arrow-down
        1
        ·
        edit-2
        5 hours ago

        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.

        • jol@discuss.tchncs.de
          link
          fedilink
          arrow-up
          5
          ·
          4 hours ago

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

          • Lucy :3@feddit.org
            link
            fedilink
            arrow-up
            3
            arrow-down
            3
            ·
            4 hours ago

            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.

            • jol@discuss.tchncs.de
              link
              fedilink
              arrow-up
              2
              ·
              2 hours ago

              You can use user styles for that

    • PotatoesFall@discuss.tchncs.de
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      TIL, thanks

  • orockwell@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    5 hours ago

    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

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 658 users / day
  • 4.45K users / week
  • 8.17K users / month
  • 17.9K users / 6 months
  • 1 local subscriber
  • 23.3K subscribers
  • 1.41K Posts
  • 52K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org