Greasy Fork is available in English.

Hide Unsplash+ Content

Hide Unsplash+ photos and related mentions on unsplash.com

Autor
kosherkale
Dnevne instalacije
0
Ukupnih instalacija
2
Ocjene
1 0 0
Verzija
1.3
Stvoreno
08.02.2025.
Ažurirano
23.02.2025.
Size
3,44 KB
Licenza
MIT
Primjenjuje se

Enhanced Hide Unsplash+ Content

A userscript that removes all Unsplash+ content from unsplash.com, including premium photos, promotional banners, and subscription mentions. This script helps users focus on freely available content by hiding paywalled images and related promotional material.

Features

  • Hides all Unsplash+ photos from the photo grid
  • Removes Unsplash+ promotional banners and popups
  • Hides premium content indicators and download buttons
  • Works on both homepage and search results
  • Continues functioning while scrolling (handles dynamically loaded content)
  • Maintains site functionality for free content

Installation

  1. First, install a userscript manager:

  2. Install the script (GitHub):

    • Click on your userscript manager's icon
    • Select "Create new script" or "Add new script"
    • Copy and paste the entire script code
    • Save the script (usually Ctrl+S or Command+S)
  3. Install the script (GreasyFork):

    • Click on Install this script

How It Works

The script uses several methods to identify and hide Unsplash+ content:

  1. Selector-based Detection: Identifies premium content through HTML attributes and classes
  2. Icon Detection: Looks for plus icons and lock symbols
  3. URL Pattern Matching: Catches links containing "/plus" references
  4. Dynamic Content Handling: Uses MutationObserver to catch newly loaded content
  5. Container Removal: Hides both the premium elements and their containing elements

Customization

The script uses a selectors object that contains two main categories:

const selectors = {
    promoContent: [...],  // Promotional content selectors
    photoContent: [...]   // Photo-related content selectors
};