Greasy Fork is available in English.

Remove "Feed" from Genius

This Tampermonkey script removes the feed button from Genius.com and allows you to easily toggle the removal on or off through the Tampermonkey menu

Autor
u0f
Instalaciones diarias
0
Instalaciones totales
5
Calificaciones
0 0 0
Versión
1.0.1
Creado
9/8/2024
Actualizado
13/8/2024
Licencia
MIT
Funciona en

Guide: How to Use the Genius.com Element Removal Script by Fri

This script for Tampermonkey allows you to automatically remove Feed button with the flexibility to enable or disable this functionality via a simple toggle in the Tampermonkey menu. Supports Genius Enchancer.

How the Script Works

  1. Element Removal:

    • The script searches for specific elements on the page:
      • The element with the tag <inbox-icon> and attribute inbox-name="newsfeed_inbox" (referred to as bagon).
      • The second item in the list of elements with the class StickyNavLoggedIn__Item-sc-1lrodac-0 if there are at least five such items.
    • If either of these elements is found, the script removes it from the page.
  2. Toggle Functionality:

    • By default, the script automatically removes these elements when the page loads.
    • You can toggle this functionality on or off through the Tampermonkey menu.
    • When you toggle the setting, the script displays a pop-up indicating whether the removal is enabled or disabled, then it reloads the page to apply the changes immediately.

How to Use the Script

  1. Install the Script:

    • Copy the script provided into a new Tampermonkey script.
    • Save and ensure it's enabled in Tampermonkey.
  2. Toggle Element Removal:

    • When visiting Genius.com, click on the Tampermonkey icon in your browser toolbar.
    • In the dropdown menu, you will see an option like:
      • Disable removal (Currently: ENABLED) or
      • Disable removal (Currently: DISABLED)
    • Clicking this option will toggle the state:
      • If the script is currently enabled, it will be disabled, and vice versa.
    • After toggling, a pop-up will confirm the change, and the page will reload automatically.
  3. Script Behavior After Toggling:

    • Enabled: The specified elements will be removed upon page load.
    • Disabled: The elements will not be removed, allowing you to view the page in its original state.

Example Menu Option

When enabled:

Disable removal (Currently: ENABLED)

When disabled:

Disable removal (Currently: DISABLED)