Tweetdeck: add logic to update myself
This commit is contained in:
parent
77c45eb48b
commit
64a590ed38
@ -315,11 +315,20 @@ function initTweetdeckOtherRepliesLink(a: HTMLAnchorElement) {
|
||||
}
|
||||
|
||||
function initLink(a: HTMLAnchorElement) {
|
||||
if (hostname === 'tweetdeck.twitter.com' && a.classList.contains('other-replies-link')) {
|
||||
if (hostname === 'tweetdeck.twitter.com') {
|
||||
if (a.classList.contains('other-replies-link')) {
|
||||
initTweetdeckOtherRepliesLink(a);
|
||||
return;
|
||||
}
|
||||
|
||||
// js-account-summary contains the link to profile
|
||||
// We can use this to update `myself`
|
||||
if (a.parentElement.classList.contains("js-account-summary") && a.dataset.userName) {
|
||||
myself = `twitter.com/${a.dataset.userName}`;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var identifier = getIdentifier(a);
|
||||
if (!identifier) {
|
||||
if (hostname == 'youtube.com' || hostname == 'twitter.com')
|
||||
|
Loading…
x
Reference in New Issue
Block a user