minimal-twitter
minimal-twitter copied to clipboard
Communities menu item keeps appearing even when suppressed
After refreshing, even if Communities should be suppressed, it is not.
Seen here:
I'm using v5.0.2 of the extension.
Here is the DOM entry for the Communities item that was visible:
<a
href="/chrismessina/communities"
aria-label="Communities (New items)"
role="link"
class="css-4rbku5 css-18t94o4 css-1dbjc4n r-1habvwh r-1loqt21 r-6koalj r-eqz5dr r-16y2uox r-1ny4l3l r-oyd9sg r-13qz1uu"
><div
class="css-1dbjc4n r-1awozwy r-sdzlij r-18u37iz r-1777fci r-dnmrzs r-xyw6el r-o7ynqc r-6416eg"
>
<div class="css-1dbjc4n">
<svg
viewBox="0 0 24 24"
aria-hidden="true"
class="r-18jsvk2 r-4qtqp9 r-yyyyoo r-lwhw9o r-dnmrzs r-bnwqim r-1plcrui r-lrvibr r-cnnz9e"
>
<g>
<path
d="M7.501 19.917L7.471 21H.472l.029-1.027c.184-6.618 3.736-8.977 7-8.977.963 0 1.95.212 2.87.672-.444.478-.851 1.03-1.212 1.656-.507-.204-1.054-.329-1.658-.329-2.767 0-4.57 2.223-4.938 6.004H7.56c-.023.302-.05.599-.059.917zm15.998.056L23.528 21H9.472l.029-1.027c.184-6.618 3.736-8.977 7-8.977s6.816 2.358 7 8.977zM21.437 19c-.367-3.781-2.17-6.004-4.938-6.004s-4.57 2.223-4.938 6.004h9.875zm-4.938-9c-.799 0-1.527-.279-2.116-.73-.836-.64-1.384-1.638-1.384-2.77 0-1.93 1.567-3.5 3.5-3.5s3.5 1.57 3.5 3.5c0 1.132-.548 2.13-1.384 2.77-.589.451-1.317.73-2.116.73zm-1.5-3.5c0 .827.673 1.5 1.5 1.5s1.5-.673 1.5-1.5-.673-1.5-1.5-1.5-1.5.673-1.5 1.5zM7.5 3C9.433 3 11 4.57 11 6.5S9.433 10 7.5 10 4 8.43 4 6.5 5.567 3 7.5 3zm0 2C6.673 5 6 5.673 6 6.5S6.673 8 7.5 8 9 7.327 9 6.5 8.327 5 7.5 5z"
></path>
</g>
</svg>
<div
aria-label="undefined unread items"
class="css-1dbjc4n r-l5o3uw r-sdzlij r-1yadl64 r-1ozsyd3 r-u8s1d r-1gg5ah6 r-1ld3bg r-lrvibr r-12rgx7y"
></div>
</div></div
></a>
@chrismessina: tried to address in https://github.com/typefully/minimal-twitter/commit/d77f045e54f09ce444b3c8df059c6d1958ede4ed, left all toggles default on since they're actually in ... so you'll have to toggle on and off to get it to appear in sidebar. But turning it off should be off.
Even when it's turned off and I do the toggle thing, it's still re-appearing. Here's the button's HTML:
<a href="/chrismessina/communities" aria-label="Communities (New items)" role="link" class="css-4rbku5 css-18t94o4 css-1dbjc4n r-1habvwh r-1loqt21 r-6koalj r-eqz5dr r-16y2uox r-1ny4l3l r-oyd9sg r-13qz1uu">
<div class="css-1dbjc4n r-1awozwy r-sdzlij r-18u37iz r-1777fci r-dnmrzs r-xyw6el r-o7ynqc r-6416eg">
<div class="css-1dbjc4n"><svg viewBox="0 0 24 24" aria-hidden="true" class="r-18jsvk2 r-4qtqp9 r-yyyyoo r-lwhw9o r-dnmrzs r-bnwqim r-1plcrui r-lrvibr r-cnnz9e">
<g>
<path
d="M7.501 19.917L7.471 21H.472l.029-1.027c.184-6.618 3.736-8.977 7-8.977.963 0 1.95.212 2.87.672-.444.478-.851 1.03-1.212 1.656-.507-.204-1.054-.329-1.658-.329-2.767 0-4.57 2.223-4.938 6.004H7.56c-.023.302-.05.599-.059.917zm15.998.056L23.528 21H9.472l.029-1.027c.184-6.618 3.736-8.977 7-8.977s6.816 2.358 7 8.977zM21.437 19c-.367-3.781-2.17-6.004-4.938-6.004s-4.57 2.223-4.938 6.004h9.875zm-4.938-9c-.799 0-1.527-.279-2.116-.73-.836-.64-1.384-1.638-1.384-2.77 0-1.93 1.567-3.5 3.5-3.5s3.5 1.57 3.5 3.5c0 1.132-.548 2.13-1.384 2.77-.589.451-1.317.73-2.116.73zm-1.5-3.5c0 .827.673 1.5 1.5 1.5s1.5-.673 1.5-1.5-.673-1.5-1.5-1.5-1.5.673-1.5 1.5zM7.5 3C9.433 3 11 4.57 11 6.5S9.433 10 7.5 10 4 8.43 4 6.5 5.567 3 7.5 3zm0 2C6.673 5 6 5.673 6 6.5S6.673 8 7.5 8 9 7.327 9 6.5 8.327 5 7.5 5z">
</path>
</g>
</svg>
<div aria-label="undefined unread items" class="css-1dbjc4n r-l5o3uw r-sdzlij r-1yadl64 r-1ozsyd3 r-u8s1d r-1gg5ah6 r-1ld3bg r-lrvibr r-12rgx7y"></div>
</div>
</div>
</a>
Addressed it here @chrismessina: https://github.com/typefully/minimal-twitter/blob/main/content-scripts/src/modules/options/navigation.js#L294