- Added an "Enabled" option to allow extension functionality to be turned off from its own options - when disabled, the icon in the toolbar will have a ⏻ badge (Safari) or be greyed out (all other browsers)
- Added an option to restore the Tweet source label in focused Tweets (enabled by default)
- Added hiding the "Upgrade to Premium+ to write longer posts" Premium upsell
- Changed the options for hiding Premium replies to all be "Show" options so they're easier to understand - if a Premium reply matches any of your "Show" options, it will be shown
- Split the option for showing Premium replies from verified orgs into separate options for Business and Government accounts
- Fixed the same Tweets being repeatedly re-checked in focused Tweet timelines when new Tweets are added - should improve performance in long Tweet threads
- Fixed flash of initial X loading logo
- Fixed verified Government accounts getting the Twitter Blue check
- Fixed the options in the Number of followers dropdown not being localised
- Fixed the desktop nav font size option applying to the notifications count
Reworked options for hiding Premium replies to use all "Show" options
Simplified logic for showing allowed Premium replies
Split the option for showing verified orgs into Business and Government options
Fixed the numbers in the Show accounts with over ${number} followers option not being localised
Fixed the same Tweets being repeatedly re-checked in focused Tweet timelines when new Tweets are added
Refactored focused Tweet tweaks which were previously working around being called repeatedly
Hide UI elements we add to focused tweets when the extension is disabled after adding them
Closes#737
- Pulled lastFlexDirection state up so it can be reset
- Added a globalObservers scope object so global functionality can be disabled
- Refactored observeElement:
- Use Maps of disconnectables instead of lists
- Now handles adding disconnectables to the appropriate scope object itself
- Automatically disconnects any observer with the same name when observing an element
- Disconnectables are now automatically removed from their scope object when disconnected
- A leading call of the callback is now an explicit option which must be opted into
- Made CSS functions remove their stylesheets when disabled
- Reset state in main() so initial setup runs again when re-enabled
- Extracted settings sync setup out of main() so it always runs to receive enabled status changes
- Added a background script to update the browser action icon to match enabled state
Also:
- Fixed flash of X logo on initial load by handling the logo
- Handle this synchronously in the content script
- Reflect enabled and replaceLogo settings in localStorage
Closes#514
- Added an option to hide the Live bar in the mobile timeline when someone you follow is broadcasting
- Added an option to hide the Live with X box in the desktop sidebar
- Added an option to hide the What's happening box in the desktop sidebar
- Added an option to hide Who to follow and other suggested follow boxes in the desktop sidebar
- Moved these to a new Sidebar options group, as they don't all belong in the Remove algorithmic content group
- Added changing "Live on X" to "Live on Twitter" when Replace X branding changes is enabled
- Added hiding promoted trends
- Added hiding Install button cards in some Grok tweets
- Added hiding Ask Grok button in Tweets
- Added hiding a new premium upsell in the desktop sidebar
- Fixed a link headline restoration false positive on Install button cards in Grok tweets
- Fixed hiding the ad in What's happening when not hiding sidebar contents
- Fixed Japanese translation wording and sentence endings
- Increased timeout waiting for the "you aren't verified yet" premium upsell to appear in your own profile
- Removed the Hide Pro nav option, as it's no longer applicable
Added an option to hide the Live with X box in the desktop sidebar
Added an option to hide the What's happening box in the desktop sidebar
Added an option to hide Who to follow and other suggested follow boxes in the desktop sidebar
Moved these to a new Sidebar options group, as they don't all belong in the Remove algorithmic content group
Change "Live on X" to "Live on Twitter" when Replace X branding changes is enabled
Closes#227Closes#587
- Hide the ad in What's happening when not hiding sidebar contents
- Hide the ad at the top of Explore when not hiding Explore's contents
- Hide a new "This profile is verified" Premium upsell when viewing a Premium profile
- Hide a new Premium Analytics upsell in your own profile when not hiding sidebar contents
- Hide a new hovercard Premium upsell on desktop
- Fixed hiding the Premium upsell in the Home sidebar when not hiding sidebar contents
- Fixed hiding the user's own replies if they have Premium, when hiding Premium replies in threads
- Process blue checks in the sidebar user box when not hiding sidebar contents
- Process blue checks in Explore when not hiding Explore's contents
- Don't run on URLs used for OAuth authorization
- Added an option to hide Grok Tweets
- Fixed the restored Twitter reply box placeholder for Japanese and a few other languages
- Fixed restoring Twitter placeholders in the desktop Compose Tweet modal after using Drafts/Media/GIF search/Schedule
- Fixed the empty title on the Messages page on desktop causing bugs on the next page you visit (e.g. For you timeline re-appearing in Home)
- Removed top-level toggles for some groups of options in the options page