twitter-demetricator icon indicating copy to clipboard operation
twitter-demetricator copied to clipboard

Bug: FF: Bookmark count is visible

Open gwern opened this issue 6 months ago • 0 comments

Twitter relatively recently began exposing 'bookmark' counts in the default UI and Firefox Demetricator appears to not hide them. Example:

xwd-1703948883686318

If it helps, from the DOM:

<div aria-label="213 Bookmarks. Bookmark" role="button" tabindex=
"0" class=
"css-175oi2r r-1777fci r-bt1l66 r-bztko3 r-lrvibr r-1loqt21 r-1ny4l3l"
data-testid="bookmark">
<div dir="ltr" class=
"css-1rynq56 r-bcqeeo r-qvutc0 r-37j5jr r-a023e6 r-rjixqe r-16dba41 r-1awozwy r-6koalj r-1h0z5md r-o7ynqc r-clp7b1 r-3s2u2q"
style="text-overflow: unset; color: rgb(83, 100, 113);">
<div class="css-175oi2r r-xoduu5">
<div class=
"css-175oi2r r-xoduu5 r-1p0dtai r-1d2f490 r-u8s1d r-zchlnj r-ipm5af r-1niwhzg r-sdzlij r-xf4iuw r-o7ynqc r-6416eg r-1ny4l3l">
</div>
<svg viewbox="0 0 24 24" aria-hidden="true" class=
"r-4qtqp9 r-yyyyoo r-dnmrzs r-bnwqim r-1plcrui r-lrvibr r-50lct3 r-1srniue">
<g>
<path d=
"M4 4.5C4 3.12 5.119 2 6.5 2h11C18.881 2 20 3.12 20 4.5v18.44l-8-5.71-8 5.71V4.5zM6.5 4c-.276 0-.5.22-.5.5v14.56l6-4.29 6 4.29V4.5c0-.28-.224-.5-.5-.5h-11z">
</path>
</g>
</svg></div>
<div class="css-175oi2r r-xoduu5 r-1udh08x"><span data-testid=
"app-text-transition-container" style=
"transition-property: transform; transition-duration: 0.3s; transform: translate3d(0px, 0px, 0px);">
<span class=
"css-1qaijid r-qvutc0 r-poiln3 r-n6v787 r-1cwl3u0 r-1k6nrdp r-s1qlax"
style="text-overflow: unset;"><span class=
"css-1qaijid r-bcqeeo r-qvutc0 r-poiln3" style=
"text-overflow: unset;">213</span></span></span></div>
</div>
</div>

The specific span:

<span class="css-1qaijid r-qvutc0 r-poiln3 r-n6v787 r-1cwl3u0 r-1k6nrdp r-s1qlax" style="text-overflow: unset;">
    <span class="css-1qaijid r-bcqeeo r-qvutc0 r-poiln3" style="text-overflow: unset;">213</span>
</span>

gwern avatar Dec 30 '23 15:12 gwern