From 4a1e37c249b3fb0c7e080ca59d35ec907b378d10 Mon Sep 17 00:00:00 2001 From: shy <70299052+shy1132@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:43:58 -0500 Subject: [PATCH] sky follower bridge compatibility --- layouts/lists/script.js | 1 + layouts/profile/script.js | 2 ++ scripts/helpers.js | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/lists/script.js b/layouts/lists/script.js index 9b467483..89c0f507 100644 --- a/layouts/lists/script.js +++ b/layouts/lists/script.js @@ -250,6 +250,7 @@ async function renderListMembers(c) { if(!cursor || listMembers.length === 0) end = true; renderListData(listInfo); let container = document.getElementById('list-members'); + if (vars.extensionCompatibilityMode) container.setAttribute('data-testid', 'cellInnerDiv') for(let i in listMembers) { let t = listMembers[i]; appendUser(t, container); diff --git a/layouts/profile/script.js b/layouts/profile/script.js index bf26852e..8e028019 100644 --- a/layouts/profile/script.js +++ b/layouts/profile/script.js @@ -698,6 +698,7 @@ async function updateTimeline() { async function renderFollowing(clear = true, cursor) { loadingFollowing = true; let userList = document.getElementById('following-list'); + if (vars.extensionCompatibilityMode) userList.setAttribute('data-testid', 'primaryColumn') if(clear) { if(pageUser.id_str === user.id_str) { userList.innerHTML = html` @@ -753,6 +754,7 @@ let unsaved = false; async function renderFollowers(clear = true, cursor) { loadingFollowers = true; let userList = document.getElementById('followers-list'); + if (vars.extensionCompatibilityMode) userList.setAttribute('data-testid', 'primaryColumn') if(clear) { if(pageUser.id_str === user.id_str) { let unfollows = await new Promise(resolve => { diff --git a/scripts/helpers.js b/scripts/helpers.js index 99e90dab..3e0c0fff 100644 --- a/scripts/helpers.js +++ b/scripts/helpers.js @@ -1514,7 +1514,8 @@ async function appendUser(u, container, label, usernameClass = '') { u.verified = false; } userElement.innerHTML = html` -
+ + ${vars.extensionCompatibilityMode ? `${escapeHTML(u.name)}` : ''} ${u.screen_name}