Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
<input type="checkbox" name="hideMoreTweets">
</label>
</section>
<section class="checkbox">
<label>
Hide "Promoted" tweets
<input type="checkbox" name="hidePromotedTweets">
</label>
</section>
</section>
<section class="group">
<label>
Expand Down
2 changes: 2 additions & 0 deletions options.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const defaultConfig = {
hideVerifiedNotificationsTab: true,
hideViews: true,
hideWhoToFollowEtc: true,
hidePromotedTweets: false,
likedTweets: 'ignore',
mutableQuoteTweets: true,
mutedQuotes: [],
Expand Down Expand Up @@ -170,6 +171,7 @@ function applyConfig() {
'hideExplorePageContents',
'hideMoreTweets',
'hideWhoToFollowEtc',
'hidePromotedTweets',
desktop && 'hideSidebarContent',
].filter(Boolean),
uiImprovements: [
Expand Down
3 changes: 3 additions & 0 deletions tweak-new-twitter.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const config = {
hideVerifiedNotificationsTab: true,
hideViews: true,
hideWhoToFollowEtc: true,
hidePromotedTweets: false,
likedTweets: 'ignore',
mutableQuoteTweets: true,
mutedQuotes: [],
Expand Down Expand Up @@ -2981,6 +2982,8 @@ function shouldHideMainTimelineItem(type, page) {
return config.hideUnavailableQuoteTweets || shouldHideSharedTweet(config.quoteTweets, page)
case 'UNAVAILABLE_RETWEET':
return config.hideUnavailableQuoteTweets || shouldHideSharedTweet(config.retweets, page)
case 'PROMOTED_TWEET':
return config.hidePromotedTweets
default:
return true
}
Expand Down
1 change: 1 addition & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export type Config = {
hideVerifiedNotificationsTab: boolean
hideViews: boolean
hideWhoToFollowEtc: boolean
hidePromotedTweets: boolean
likedTweets: AlgorithmicTweetsConfig
mutableQuoteTweets: boolean
mutedQuotes: QuotedTweet[]
Expand Down