• m_‮f@discuss.online
    link
    fedilink
    English
    arrow-up
    31
    ·
    edit-2
    18 days ago

    Disable user-select: none; (and variants) on body to be able to select text again. I like the idea of a blog post that calls out something annoying and demonstrates the annoyance inline, though

    • GenderNeutralBro@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      30
      ·
      18 days ago

      I have a bookmarklet to enable text selection on any web page that tries to block it that way.

      Here it is for your convenience. Bookmark it and give a try on the linked blog post:

      javascript:document.styleSheets[0].insertRule("* { user-select:text !important }", 1);

      Can’t remember where I swiped that from. Probably some ancient StackOverflow thread.

      • bleistift2@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        12
        ·
        18 days ago

        WTF‽ I’m a web dev for 5 years, 8 if you count university, and I’ve never heard about bookmarklets. Why would that even begin to work?

        Man, this is so amazing!

        • TehPers@beehaw.org
          link
          fedilink
          English
          arrow-up
          11
          ·
          18 days ago

          Browsers have supported the javascript: scheme for a long time, so I guess it just abuses that.

        • bluespin@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          17 days ago

          We run one for our product and it’s been teetering on the edge of extinction for a while. Google keeps saying they’re going to kill them and going back on the decision