Hide Unwanted 9to5Mac Content

Hide articles with podcast/deals tags, Sponsored Post author, the Featured section, all sidebars, and branded widgets

Versione datata 16/05/2025. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Hide Unwanted 9to5Mac Content
// @description  Hide articles with podcast/deals tags, Sponsored Post author, the Featured section, all sidebars, and branded widgets
// @match        https://9to5mac.com/*
// @version 0.0.1.20250516144412
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==

(function () {
  const style = document.createElement('style');
  style.textContent = `
/* Hide articles with specific guide tags */
article.article:has(ul.article__meta-guides a[href*="/9to5mac-daily/"]),
article.article:has(ul.article__meta-guides a[href*="/apple-work-podcast/"]),
article.article:has(ul.article__meta-guides a[href*="/deals/"]),
article.article:has(ul.article__meta-guides a[href*="/apple-at-work/"]),
article.article:has(ul.article__meta-guides a[href*="/podcast/"]),
article.article:has(ul.article__meta-guides a[href*="/9to5mac-happy-hour/"]),
article.article:has(ul.article__meta-guides a[href*="/rumor-replay/"]),
article.article:has(ul.article__meta-guides a[href*="/9to5mac-overtime/"])

{
  display: none !important;
}


      /* Hide articles by Sponsored Post author */
      article.article:has(.author__link a[href*="/author/sponsoredpostz/"]) {
          display: none !important;
      }

      /* Hide the Featured section */
      div.container.xs:has(> h2[attr-title="Featured"]) {
          display: none !important;
      }

      /* Hide sidebars */
      aside.sidebar {
          display: none !important;
      }

      /* Hide branded RSS widgets like 9to5Google */
      .widget.ninetofive-branded-rss {
          display: none !important;
      }
  `;
  document.head.appendChild(style);
})();