Skip to content

Epic Games Store - Clean up "Free Games" page by denilsonsa

Details

Authordenilsonsa

LicensePublic Domain

Categoryepicgames

Created

Updated

Code size1.6 kB

Code checksumebc2df5e

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Removes useless free-to-play items and advertisements from the "Free Games" page.

Notes

This user-style will likely get out-of-date quickly, and will require constant updates. Epic Games Store doesn't provide stable human-readable CSS classes, instead they have randomly-generated CSS class names as part of their build process. This isn't good for user-styling.

Source code

/* ==UserStyle==
@name           Epic Games Store - Remove stuff from Free Games page
@namespace      github.com/openstyles/stylus
@version        1.1.0
@description    Removes useless free-to-play items and advertisements from the "Free Games" page.
@author         Denilson
==/UserStyle== */

@-moz-document regexp("^https://store\\.epicgames\\.com/[^/]+/free-games.*") {
    /* Limited time promotions related to free-to-play games. */
    html div:has(> div > a[href*="/p/asphalt-8-car-racing-game"]),
    html div:has(> div > a[href*="/p/disney-speedstorm--"]),
    html div:has(> div > a[href*="/p/honkai-impact"]),
    html div:has(> div > a[href*="/p/idle-champions-of-the-forgotten-realms"]),
    html div:has(> div > a[href*="/p/marvel-rivals-"]),
    html div:has(> div > a[href*="/p/neverwinter--epic-starter-pack"]),
    html div:has(> div > a[href*="/p/path-of-exile--"]),
    html div:has(> div > a[href*="/p/rawmen-holiday-bundle"]),
    html div:has(> div > a[href*="/p/star-trek-online"]),
    html div:has(> div > a[href*="/p/valorant"]),
    html div:has(> div > a[href*="/p/world-of-warships"]),
    html div:has(> div > a[href*="/help/c-Category_Fortnite/"]),
    html div:has(> div > div > div > div[data-testid="breaker-link"]) {
        display: none;
    }

    /* Top free-ish games */
    html div:has(> a[href*="/top-selling-free-to-play"]) + ul,
    html div:has(> a[href*="/most-popular-free-to-play"]) + ul,
    html div:has(> a[href*="/most-played-free-to-play"]) + ul {
        display: none;
    }

    /* "Free to Play" section */
    html div:has(> h5) + div > section[class] {
        display: none;
    }
}

Reviews

No reviews yet.