How dimdengd/oldtwitter works
OldTwitter is a browser extension that replaces Twitter’s client interface with an old-style (or optional 2018-style) experience. Users navigate extension-rendered pages for timelines, profiles, search, lists, tweets, and notifications; page modules obtain Twitter data through the shared API layer and render it in the browser. Settings and shared runtime modules support customization and common behavior. The excerpts show several page-to-API calls, but do not expose the extension’s full bootstrap wiring or the API transport implementation, so those links are omitted rather than inferred.
Main entry points: apis.js Twitter API client · header/script.js Header and inbox · lists/script.js Lists · search/script.js Search
Components 25
Extension runtime
- Page injection
scripts/injection.js - Background runtime
scripts/background.js
Social interface
- Header and inbox
layouts/header/script.js - Home timeline
layouts/home/script.js - Profiles
layouts/profile/script.js - Lists
layouts/lists/script.js - Search
layouts/search/script.js - Tweet detail
layouts/tweet/script.js - Notifications
layouts/notifications/script.js - Topics
layouts/topics/script.js - Bookmarks
layouts/bookmarks/script.js - Unfollower tracking
layouts/unfollows/script.js - Timeline variants
layouts/itl/script.js
Shared services
- Configuration
scripts/config.js - Twitter API client
scripts/apis.js - Shared helpers
scripts/helpers.js - Tweet rendering
scripts/tweetConstructor.js - Media viewer
scripts/tweetviewer.js - Emoji picker
libraries/emojipicker.js - GIF encoding
libraries/gif.js - GIF worker
libraries/gif.worker.js - Twitter text utilities
libraries/twitter-text.js
Customization
- Settings
layouts/settings/script.js
Other components
- Extension user
- Browser extension host
Connections 10
- Extension user → Browser extension host: uses extension
README.md - Header and inbox → Twitter API client: requests inbox and search
layouts/header/script.js - Lists → Twitter API client: requests list data
layouts/lists/script.js - Search → Twitter API client: requests search results
layouts/search/script.js - Tweet detail → Twitter API client: requests tweet data
layouts/tweet/script.js - Notifications → Twitter API client: requests notifications
layouts/notifications/script.js - Topics → Twitter API client: requests topic data
layouts/topics/script.js - Timeline variants → Twitter API client: requests account and timeline data
layouts/itl/script.js - Browser extension host → Page injection: loads page replacement
- Browser extension host → Background runtime: runs extension background