News for hackers. Stuff that matters.
Re:Show HN: Minimal Twitter – drastically simplify and declu... by supernintendo on Wednesday July 24, 2019 @02:51PM (#20518386)
Neat idea for showing off your design chops. I don’t use Twitter so I don’t have much feedback, other than your ad blocking code being brittle [1].

[1] https://github.com/thomaswangio/minimal-twitter/blob/e076507...

Re:Show HN: Minimal Twitter – drastically simplify and declu... by thomaswangio on Wednesday July 24, 2019 @02:57PM (#20518443)
Thanks for pointing that out, I think I might remove it. Will cause more trouble down the road. Do you have any ideas to make it more safe?
Re:Show HN: Minimal Twitter – drastically simplify and declu... by supernintendo on Wednesday July 24, 2019 @03:09PM (#20518576)
Unfortunately, I can’t think of any. Twitter could arbitrarily change where those elements are placed in the DOM at any time (and they probably will to prevent other extensions from blocking promoted tweets). I would just consider this out of the scope of your project and not bother handling it.
Re:Show HN: Minimal Twitter – drastically simplify and declu... by thomaswangio on Wednesday July 24, 2019 @03:24PM (#20518726)
Totally agreed, definitely out of scope. Just removed the script from the manifests. Thanks again!
Re:Show HN: Minimal Twitter – drastically simplify and declu... by daxterspeed on Wednesday July 24, 2019 @04:14PM (#20519169)
You could potentially keep searching upwards for a parentNode that has role="article". While Twitter could change their markup significantly they sorta have to support screen readers so aria attributes will poke through here and there.
Re:Show HN: Minimal Twitter – drastically simplify and declu... by thomaswangio on Wednesday July 24, 2019 @06:10PM (#20520449)
Hmmm interesting, if you have some time I'd love a PR. It would be a nice feature to have tbh
Re:Show HN: Minimal Twitter – drastically simplify and declu... by djyaz1200 on Wednesday July 24, 2019 @03:12PM (#20518614)
Thomas, I like your work. Just joined your newsletter. Would be interested to talk. I'm @ www.sendsmart.com
Re:Show HN: Minimal Twitter – drastically simplify and declu... by thomaswangio on Wednesday July 24, 2019 @03:33PM (#20518805)
Sure, I'm at thomas [at] wang.sh!