diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 49607d5f..3c558f75 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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" } } diff --git a/layouts/header/style.css b/layouts/header/style.css index 3a42b5d7..9c941079 100644 --- a/layouts/header/style.css +++ b/layouts/header/style.css @@ -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%; diff --git a/layouts/profile/script.js b/layouts/profile/script.js index b9bd4bf3..28fa9cb3 100644 --- a/layouts/profile/script.js +++ b/layouts/profile/script.js @@ -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'; } } } @@ -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'; } } } diff --git a/manifest.json b/manifest.json index 0f47061c..6448d4d6 100644 --- a/manifest.json +++ b/manifest.json @@ -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": {