Skip to content

Conversation

@usama-sh
Copy link

@usama-sh usama-sh commented Oct 1, 2025

Problem

When switching to the Twitter/X home page, there's a brief flicker where feed posts are visible before the extension replaces them with the inspirational quote.

Solution

  • Change CSS from opacity: 0 to display: none !important to completely prevent feed content from rendering
  • Clear feed container innerHTML before injecting the UI
  • Add nfe-processed class to mark containers that have been processed by the extension
  • Update CSS selectors to not hide containers with the nfe-processed class

Files Changed

  • src/sites/twitter.str.css: Updated CSS to prevent rendering instead of just hiding
  • src/sites/twitter.ts: Clear content and mark processed containers

Testing

  • Extension builds successfully
  • TypeScript compilation passes
  • No breaking changes to existing functionality

Closes #354

- Add TikTok site implementation with feed eradication
- Update site registry and manifests with TikTok permissions
- TikTok will now appear in extension options and replace feed with quotes
- Change CSS from opacity: 0 to display: none to prevent content rendering
- Clear feed container content before injecting UI
- Add nfe-processed class to mark processed containers
- Prevent flicker when switching to Twitter/X home page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flicker on X

1 participant