Skip to content
Merged
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"yarn": ">=999.0.0",
"npm": ">=999.0.0"
},
"version": "2.10.0",
"version": "2.10.1",
"private": true,
"license": "AGPL-3.0-or-later",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export function ProfileTabContent(props: ProfileTabContentProps) {
return (
<div className={classes.root}>
<div>
{tabs.length && !showNextID && (
{tabs.length > 0 && !showNextID && (
<ConcealableTabs<string>
tabs={tabs}
selectedId={selectedTabId}
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Mask Network",
"version": "2.10.0",
"version": "2.10.1",
"manifest_version": 2,
"permissions": ["storage", "downloads", "webNavigation", "activeTab"],
"optional_permissions": ["<all_urls>", "notifications", "clipboardRead"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ import { IdentityProviderTwitter } from './identity'

function getPostActionsNode(postNode: HTMLElement | null) {
if (!postNode) return null
return postNode.closest('[data-testid="tweet"]')?.querySelector<HTMLElement>('[role="group"] > div:last-child')
return postNode
.closest('[data-testid="tweet"]')
?.querySelector<HTMLElement>('[role="group"]:last-child > div:last-child')
}

const getParentTweetNode = (node: HTMLElement) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,23 +195,6 @@ export const postsContentSelector = () =>
// reply-tweets
'[data-testid="tweet"] + div div div[lang][dir]',
].join(),
).concat(
querySelectorAll('[data-testid="tweet"] > div:last-child').map((x) => {
const textElement = x.querySelector('[role="group"]')?.parentElement?.querySelector('div[lang]') as
| HTMLDivElement
| undefined

if (textElement) return textElement

// There's no textElement as there's only a twitter summary card parsed by a single url.
const summaryCardElement = x
.querySelector('[role="group"]')
?.parentElement?.querySelector('[data-testid="card.wrapper"]')?.previousElementSibling as
| HTMLDivElement
| undefined

return summaryCardElement
}), // timeline page for new twitter
)

export const postAvatarsContentSelector = () =>
Expand Down