this post was submitted on 24 Sep 2025
92 points (98.9% liked)

Programming

23023 readers
704 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

I found the https://jeffhuang.com/designed_to_last/ also good. Wondering what can auto-create the different formats for long form blog posts?

top 13 comments
sorted by: hot top controversial new old
[–] m_f@discuss.online 31 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

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 30 points 2 weeks ago (1 children)

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 12 points 2 weeks ago (3 children)

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 11 points 2 weeks ago

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

[–] Stillwater@sh.itjust.works 7 points 2 weeks ago* (last edited 2 weeks ago)

It's just running some JavaScript code on the page

[–] bluespin@lemmy.world 2 points 2 weeks 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

[–] mesamunefire@piefed.social 6 points 2 weeks ago

I think its part of the joke ;)

[–] wischi@programming.dev 16 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

I can't select the text on this article (mobile). I'm not sure if that's on purpose or just ironic?

[–] chaospatterns@lemmy.world 7 points 2 weeks ago (1 children)

That would appear to be intentional. If you go to any other page user select works fine

[–] wischi@programming.dev 1 points 2 weeks ago

Thanks for pointing that out, haven't tried that.

[–] mesamunefire@piefed.social 11 points 2 weeks ago
[–] setsubyou@lemmy.world 4 points 2 weeks ago

I have to do a bunch of relatively unsurmountable steps to do what should've taken half a minute. Like screenshot the profile and scrape the text with iOS Photos text recognition.

The iOS workaround isn’t quite as unsurmountable as you don’t have to go through the Photos app at all. You can enter text selection mode directly from the screenshot without even saving it or leaving the app you’re in. And since iOS will look up any word you can select in the system dictionary and also translate any text you can select, you can do these things right there too.

That said I did once make a shortcut that lets me triple tap the back of my phone to pop up a text version of everything on screen that the iOS OCR detects. Not sure what I did that for though, I don’t really use it.