Firefox-selaimen lisäosat
  • Laajennukset
  • Teemat
    • Firefoxille
    • Oikolukusanastot ja kielipaketit
    • Muiden selainten sivustot
    • Lisäosia Androidille
Kirjaudu sisään
Discover Less esikatselu

Discover Less tekijä Matheus Araujo

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

0 (0 reviews)0 (0 reviews)
2 käyttäjää2 käyttäjää
Tarvitset Firefoxin käyttääksesi tätä laajennusta
Lataa Firefox ja hanki laajennus
Lataa tiedosto

Laajennuksen metatiedot

Tietoja tästä laajennuksesta
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.
Kehittäjän kommentit
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.
Rated 0 by 0 reviewers
Kirjaudu sisään arvostellaksesi tämän laajennuksen
Ei vielä arvioita

Tähtiarvio tallennettu

5
0
4
0
3
0
2
0
1
0
Ei arvioita
Permissions and dataLue lisää

Vaaditut käyttöoikeudet:

  • Pääsy tietoihisi sivustolla twitter.com
Lisätietoja
Lisäosan linkit
  • Kotisivu
  • Tukisivu
  • Sähköpostituki
Versio
1.0.0
Koko
42,34 kt
Viimeksi päivitetty
vuosi sitten (3. huhti 2024)
Liittyvät luokat
  • Tietosuoja ja -turvallisuus
  • Sosiaaliset ja kommunikointi
Lisenssi
Apache License 2.0
Versiohistoria
  • Näytä kaikki versiot
Tunnisteet
  • content blocker
  • social media
  • twitter
Lisää kokoelmaan
Ilmoita tästä lisäosasta
Lisää laajennuksia tekijältä Matheus Araujo
  • Ei vielä arvioita

  • Ei vielä arvioita

  • Ei vielä arvioita

  • Ei vielä arvioita

  • Ei vielä arvioita

  • Ei vielä arvioita

Siirry Mozillan verkkosivustolle

Lisäosat

  • Tietoja
  • Firefox-lisäosien blogi
  • Laajennustyöpaja
  • Kehityskeskus
  • Kehittäjäkäytännöt
  • Yhteisön blogi
  • Keskustelualue
  • Ilmoita ongelmasta
  • Opas arviointiin

Selaimet

  • Desktop
  • Mobile
  • Enterprise

Tuotteet

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Tietosuoja
  • Evästeet
  • Juridiset asiat

Jos ei erikseen mainita, tämän sivuston sisällön kattaa lisenssi Creative Commons Attribution Share-Alike License v3.0 tai mikä tahansa uudempi versio.