Greasy Fork is available in English.

Hide Unsplash+ Content

Hide Unsplash+ photos and related mentions on unsplash.com

질문, 리뷰하거나, 이 스크립트를 신고하세요.
개발자
kosherkale
일일 설치수
0
총 설치수
2
평점
1 0 0
버전
1.3
생성
2025-02-08
갱신
2025-02-23
크기
3.44KB
라이선스
MIT
동작 사이트

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
};