mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-23 20:12:22 -06:00
Merge pull request #29 from lowercase-donkey/fixes
This commit is contained in:
commit
d584f0303b
@ -33,7 +33,7 @@ export const removeReloadEl = () => {
|
|||||||
export const getAccountNameAndDisplayName = (userCell: Element) => {
|
export const getAccountNameAndDisplayName = (userCell: Element) => {
|
||||||
const [avatarEl, displayNameEl] = userCell?.querySelectorAll("a")
|
const [avatarEl, displayNameEl] = userCell?.querySelectorAll("a")
|
||||||
const twAccountName = avatarEl?.getAttribute("href")?.replace("/", "")
|
const twAccountName = avatarEl?.getAttribute("href")?.replace("/", "")
|
||||||
const twAccountNameRemoveUnderscore = twAccountName.replace("_", "") // bsky does not allow underscore in handle. so remove it.
|
const twAccountNameRemoveUnderscore = twAccountName.replaceAll("_", "") // bsky does not allow underscores in handle, so remove them.
|
||||||
const twDisplayName = displayNameEl?.textContent
|
const twDisplayName = displayNameEl?.textContent
|
||||||
return { twAccountName, twDisplayName, twAccountNameRemoveUnderscore }
|
return { twAccountName, twDisplayName, twAccountNameRemoveUnderscore }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user