Threads: dim "Pinned by author" labels
Dims and italicises the "Pinned by author" promo labels so they draw less attention.
Code to copy
// Hide "Pinned by author" promo labels and their posts in the feed
const HINTS = ['pinned by', 'przypięte przez', 'épinglé par',
'fissato da', 'fijado por', 'закреплено', '已置顶'];
function clean() {
document.querySelectorAll('[data-pressable-container] span[dir="auto"]').forEach(s => {
const txt = (s.textContent || '').trim().toLowerCase();
if (txt.length < 40 && HINTS.some(h => txt.includes(h))) {
s.style.setProperty('opacity', '0.35', 'important');
s.style.setProperty('font-style', 'italic', 'important');
}
});
}
clean();
const obs = new MutationObserver(clean);
obs.observe(document.body, { childList: true, subtree: true });
How to use this example
- Copy the code with the button above.
- Install JustZix (2 minutes) and open the extension on the target page.
- Add a new rule matching that page.
- Paste the code into the rule's JavaScript panel and save — it runs on every page visit.
Rate this example
No ratings yet — be the first.