···4141 };
4242}
43434444-const code = `[...document.querySelectorAll('div')]
4545-.filter(div => div.innerHTML.trim() === 'Show post')
4646-.filter(div => !!div.offsetParent)
4747-.forEach(e => e.click());`;
4444+const code = `var d = document;
4545+var $$ = d.querySelectorAll.bind(d);
4646+var l = window.location.hostname;
4747+switch (true) {
4848+case l.includes('bsky.app'):
4949+ [...$$('div')]
5050+ .filter(div => div.innerHTML.trim() === 'Show post')
5151+ .filter(div => !!div.offsetParent)
5252+ .forEach(e => e.click());
5353+ break;
5454+case l.includes('twitter.com'):
5555+case l.includes('x.com'):
5656+ [...$$('span')]
5757+ .filter(div => div.innerHTML.trim() === 'View')
5858+ .forEach(e => e.click());
5959+ break;
6060+}`;
48614962const bookmarklet = bookmarkleter(code, {
5063 urlencode: true,
···5972 <div style={{ width: '800px;' }}>
6073 <h1>Show All Replies</h1>
6174 <div>
6262- Drag this to your bookmarks bar. Clicking it will show all replies in a Bluesky thread from people you muted.
7575+ Drag this to your bookmarks bar. Clicking it will show all replies in a Bluesky or Twitter thread from people
7676+ you muted.
6377 <br />
6478 <br />
6579 <div