Dodanki za Firefox Browser
  • Rozšyrjenja
  • Drastwy
    • za Firefox
    • Słowniki a rěcne pakśiki
    • Druge sedła wobglědowaka
    • Dodanki za Android
Pśizjawiś
Pśeglěd za Discover Less

Discover Less wót Matheus Araujo

A simple extension that hides the 'Discover More' on Twitter and 'mute/block' messages

0 (0 reviews)0 (0 reviews)
2 wužywarja2 wužywarja
Trjebaśo Firefox, aby toś to rozšyrjenje wužywał
Firefox ześěgnuś a rozšyrjenje wobstaraś
Dataju ześěgnuś

Metadaty rozšyrjenja

Wó toś tom rozšyrjenju
Extension for reducing distractions on X 🐦

I created a simple Chrome extension to avoid distractions with "Discover More" on X. For those who have difficulty keeping their focus, like me, it disturbs them so much.

The extension occults the "Discover More" function, improving the browsing experience.
Wuwijaŕske komentary
How it Works
  1. The script defines an array called blockedWords containing phrases used for filtering.
  2. The removeDiscoverMore function performs the core removal logic:
    • It selects all elements with the data-testid="cellInnerDiv" attribute.
    • Iterates through these elements in reverse order for proper removal.
    • For each element, it checks the heading text for any blocked word.
    • If a blocked word is found, the function removes the current element and all its following siblings with the same test ID.
  3. The removeElements function is a helper function used to remove elements efficiently:
    • It finds the index of the element within its parent node.
    • It hides all following siblings using display: none instead of complete removal to avoid triggering Twitter's re-rendering.
  4. The script calls removeDiscoverMore initially to remove existing elements.
  5. Finally, a MutationObserver is created to monitor the DOM for changes. Whenever the DOM structure changes (e.g., new elements are added), the removeDiscoverMore function is re-executed to remove any newly added elements containing blocked phrases.
Z 0 wót 0 pógódnośujucych pógódnośony
Pśizjawśo se, aby toś to rozšyrjenje pógódnośił
Hyšći pógódnośenja njejsu

Gwězdowe pógódnośenje jo se składło

5
0
4
0
3
0
2
0
1
0
Hyšći žedne pógódnośenja
Pšawa a datyDalšne informacije

Trjebne pšawa:

  • Mějśo pśistup k swójim datam za twitter.com
Dalšne informacije
Dodankowe wótzkaze
  • Startowy bok
  • Sedło pomocy
  • E-mailowa adresa pomocy
Wersija
1.0.0
Wjelikosć
42,34 KB
Slědny raz zaktualizěrowany
ένας χρόνος πριν (3 Απρ 2024)
Pśiswójźbne kategorije
  • Priwatnosć a wěstota
  • Socialne a komunikacija
Licenca
Apache License 2.0
Wersijowa historija
  • Wšykne wersije pokazaś
Wobznamjenja
  • content blocker
  • social media
  • twitter
Zběrce pśidaś
Toś ten dodank k wěsći daś
Wěcej rozšyrjenjow wót Matheus Araujo
  • Hyšći pógódnośenja njejsu

  • Hyšći pógódnośenja njejsu

  • Hyšći pógódnośenja njejsu

  • Hyšći pógódnośenja njejsu

  • Hyšći pógódnośenja njejsu

  • Hyšći pógódnośenja njejsu

K startowemu bokoju Mozilla

Dodanki

  • Wó nas
  • Blog dodankow Firefox
  • Źěłowa kupka rozšyrjenjow
  • Wuwijaŕski rožk
  • Wuwijaŕske pšawidła
  • Blog zgromaźeństwa
  • Forum
  • Programowu zmólku k wěsći daś
  • Směrnica za pógódnośenja

Wobglědowaki

  • Desktop
  • Mobile
  • Enterprise

Produkty

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Priwatnosć
  • Cookieje
  • Pšawniske

Jolic nic hynac zapisane, se wopśimjeśe na toś tom sedle pód Creative Commons Attribution Share-Alike License v3.0 abo póznjejšeju wersiju licencěrujo.