Skip to content

Commit

Permalink
old tweet indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Aug 28, 2024
1 parent f090407 commit d28d6ca
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,5 +645,5 @@
"nonexistent_user_desc": { "message": "Try searching for another." },
"suspended_user": { "message": "Account suspended" },
"suspended_user_desc": { "message": "The profile you are trying to view has been suspended." },
"show_boring_indicators": { "message": "Show indicator in followers/following page if last tweet of person is a retweet/quote/non-existent" }
"show_boring_indicators": { "message": "Show indicator in followers/following page if last tweet of person is a retweet/quote/non-existent/old" }
}
8 changes: 8 additions & 0 deletions layouts/header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,14 @@ emoji-picker {
font-weight: 100;
}

.user-indicator-old::after {
content: "\f177";
color: #ddd22b;
font-family: var(--icon-font);
margin-left: 5px;
font-weight: 100;
}

.tweet-media-video-overlay {
position: absolute;
width: 100%;
Expand Down
4 changes: 4 additions & 0 deletions layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,8 @@ async function renderFollowing(clear = true, cursor) {
usernameClass = 'user-indicator-retweeted';
} else if(u.status.quoted_status_id_str) {
usernameClass = 'user-indicator-quoted';
} else if(Date.now() - new Date(u.status.created_at).getTime() > 1000 * 60 * 60 * 24 * 7) {
usernameClass = 'user-indicator-old';
}
}
}
Expand Down Expand Up @@ -1024,6 +1026,8 @@ async function renderFollowers(clear = true, cursor) {
usernameClass = 'user-indicator-retweeted';
} else if(u.status.quoted_status_id_str) {
usernameClass = 'user-indicator-quoted';
} else if(Date.now() - new Date(u.status.created_at).getTime() > 1000 * 60 * 60 * 24 * 7) {
usernameClass = 'user-indicator-old';
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Old Twitter Layout (2024)",
"description": "__MSG_ext_description__",
"version": "1.8.8.4",
"version": "1.8.8.5",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {
Expand Down

0 comments on commit d28d6ca

Please sign in to comment.