Hide Unsplash+ Content

Hide Unsplash+ photos and related mentions on unsplash.com

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
kosherkale
日安装量
0
总安装量
23
评分
3 0 0
版本
1.4
创建于
2025-02-08
更新于
2025-11-12
大小
3.7 KB
许可证
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 (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
};