Skip to content

Prime Gaming Hide Collected Games by pabli

Screenshot of Prime Gaming Hide Collected Games

Details

Authorpabli

LicenseMIT

Categoryamazon

Created

Updated

Size2.3 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Prime Gaming hide claimed games - gaming.amazon.com
Hide: collected games, unnecessary sections, games you will never collect
https://gaming.amazon.com/

Notes

Source code

/* ==UserStyle==
@name         Prime Gaming Hide Collected Games
@namespace    https://github.com/pabli24
@version      1.0.8
@description  Hide: collected games, unnecessary sections, games you will never collect 
@author       Pabli (https://github.com/pabli24)
@homepageURL  https://userstyles.world/style/9719/prime-gaming-hide-claimed-games
@supportURL   https://userstyles.world/style/9719/prime-gaming-hide-claimed-games
@license      MIT
@preprocessor stylus
@var          checkbox cl "Hide Collected Games"              1
@var          checkbox sc "Hide Unnecessary Sections"         1
@var          checkbox wg "Hide Daily Challenges (Web Games)" 1
@var          checkbox cg "Hide Cloud games on Amazon Luna"   1
@var          text     g  "Hide Games"                        "'GameName1, GameName2'"
==/UserStyle== */

@-moz-document domain("gaming.amazon.com")
	
	if cl
		.offer-list__content__grid > .tw-block:has(.tw-c-text-alert-success)
		.offer-list__content__grid > .tw-block:has([data-a-target="notification-success"])
		.grid-carousel__slide > .tw-block:has(.tw-c-text-alert-success)
		.grid-carousel__slide > .tw-block:has([data-a-target="notification-success"])
			display none !important
	
	if sc
		.home > .tw-flex > .tw-placeholder-wrapper
		.prime-root-minimal__alert__container
		.featured-content-banner
		.featured-content-shoveler
		.featured-content
		.static-featured-content
		[data-a-target="offer-section-TOP_PICKS"]
		[data-a-target="offer-section-FGWP"]
		[data-a-target="offer-section-EXPIRING"]
		[data-a-target="offer-section-RECOMMENDED"]
		.event-container
		.tw-placeholder-wrapper
		.offer-list__content .swiper-button
		.sub-credit-promotion-banner
			display none !important
	
	if wg
		[data-a-target="offer-section-WEB_GAMES"]
			display none !important
	
	if cg
		[data-a-target="offer-section-LUNA"]
			display none !important
	
	unless g == 'GameName1, GameName2'
		unless g is a 'string'
			error('Expected a string. DO NOT remove the quotation marks.')
		g = replace('&', '\&', g)
		g = split(',', replace('^\s+|\s+(?=,)|(?<=,)\s+|\s+$', '', g))
		t = ''
		for n in g
			t += 'p>[aria-label="'+ n +'" i],'
		.offer-list__content__grid > .tw-block:has(:is({t}))
			display none !important
		.offer-list__content__grid > .tw-block:has(>div:empty)
			display none !important

Reviews

No reviews yet.