diff --git a/layouts/notifications/script.js b/layouts/notifications/script.js index 5b94188a..b63280ef 100644 --- a/layouts/notifications/script.js +++ b/layouts/notifications/script.js @@ -825,13 +825,18 @@ async function renderNotifications(data, append = false) { matches++; }); }; + let users = n.template.aggregateUserActionsV1.fromUsers.map(u => data.globalObjects.users[u.user.id]); + + if(n.icon.id === 'recommendation_icon') { + notificationHeader = `${escapeHTML(notificationHeader)} tweeted something you might like`; + } let iconClasses = { 'heart_icon': 'ni-favorite', 'person_icon': 'ni-follow', 'retweet_icon': 'ni-retweet', + 'recommendation_icon': 'ni-recommend' }; - let users = n.template.aggregateUserActionsV1.fromUsers.map(u => data.globalObjects.users[u.user.id]); notificationDiv.innerHTML = /*html*/`
diff --git a/layouts/notifications/style.css b/layouts/notifications/style.css index 6f84939a..7b3e8bad 100644 --- a/layouts/notifications/style.css +++ b/layouts/notifications/style.css @@ -787,6 +787,10 @@ a:hover, color: #5c913b; content: "\f006" } +.ni-recommend:before { + color: #ca4e4e; + content: "\f011" +} .notification-avatar { display: inline-block; diff --git a/manifest.json b/manifest.json index a2196dd3..50a6bb11 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Old Twitter Layout (2022)", "description": "A new extension that returns old Twitter's look.", - "version": "1.2.4", + "version": "1.2.5", "manifest_version": 3, "homepage_url": "https://github.com/dimdenGD/OldTwitter", "background": {