Skip to content

Comment on Tweak New Twitterparent

Comments

It's a React Native for Web app, so it's kinda like a reverse Tailwind - you write your styles using the usual CSS property names (instead of having to learn new shorthand names for all of them), then it deduplicates everything at build time and generates one-property-per-selector class names.

They've handily left a bunch of data-testid attributes on some of the major elements you need to identify, like the primary column.

Since it's a React app, manually removing stuff from the DOM will either have your changes get blown away the on the next render, or cause issues on the next render. A good trick is to add your own descriptive classes to <body> for the current screen so you can limit the scope of some of the incredibly gnarly CSS selectors you'll need to use to hide things.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.