Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sky follower bridge compatibility #956

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions layouts/lists/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 2 additions & 1 deletion scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,8 @@ async function appendUser(u, container, label, usernameClass = '') {
u.verified = false;
}
userElement.innerHTML = html`
<div>
<div${vars.extensionCompatibilityMode ? ' data-testid="UserCell"' : ''}>
${vars.extensionCompatibilityMode ? `<a href="/${u.screen_name}" style="display: none;"></a><a style="display: none;">${escapeHTML(u.name)}</a>` : ''}
<a href="/${u.screen_name}" class="user-item-link">
<img src="${(u.default_profile_image && vars.useOldDefaultProfileImage) ? chrome.runtime.getURL(`images/default_profile_images/default_profile_${Number(u.id_str) % 7}_normal.png`): u.profile_image_url_https}" alt="${u.screen_name}" class="user-item-avatar tweet-avatar" width="48" height="48">
<div class="user-item-text">
Expand Down
Loading