Not sure where to really post this, so I will just try in this thread. I came up with a custom uBlock Origin filter to remove all the games for certain stores (Epic, Prime Gaming, etc.) from the free games page on Amazon so you can focus on only the stores you actually care about (GOG, etc.). Just remove the line for each store that you do want to see. But it looks like it is likely not dynamic enough to apply to potential future updates to the webpage. Is anyone here familiar with uBock filter syntax and able to assist?
In English, the logic here is basically:
- Find the free games tab by
id
- Navigate six child
div
tags down - Find child
a
tag with adata-a-target
value oflearn-more-card
andhref
containing the target string - Block the fourth parent
div
tag of thata
tag
filter
! Amazon Gaming - GOG
gaming.amazon.com###offer-section-FGWP_FULL > div > div > div > div > div > div > a[data-a-target='learn-more-card'][href*='-gog/']:upward(div):upward(div):upward(div):upward(div)
! Amazon Gaming - Prime
gaming.amazon.com###offer-section-FGWP_FULL > div > div > div > div > div > div > a[data-a-target='learn-more-card'][href*='-aga/']:upward(div):upward(div):upward(div):upward(div)
! Amazon Gaming - Epic
gaming.amazon.com###offer-section-FGWP_FULL > div > div > div > div > div > div > a[data-a-target='learn-more-card'][href*='-epic/']:upward(div):upward(div):upward(div):upward(div)
! Amazon Gaming - Legacy
gaming.amazon.com###offer-section-FGWP_FULL > div > div > div > div > div > div > a[data-a-target='learn-more-card'][href*='-legacy/']:upward(div):upward(div):upward(div):upward(div)
! Amazon Gaming - Luna
gaming.amazon.com###offer-section-FGWP_FULL > div > div > div > div > div > div > a[data-a-target='learn-more-card'][href*='//luna.']:upward(div):upward(div):upward(div):upward(div)
Relevant HTML
<div id="offer-section-FGWP_FULL" data-a-target="offer-section-FGWP_FULL" class="offer-list__content tw-md-mg-b-4 tw-mg-b-3">
<div data-a-target="offer-list-FGWP_FULL" class="tw-md-pd-x-10 tw-mg-b-4 tw-pd-x-3 tw-sm-pd-x-6 tw-xxl-pd-x-10">
<div class="offer-list__content__grid">
<div class="tw-block" vc0zxivtr="" ex22dn0ao="">
<div>
<div data-a-target="tw-animation-target" class="tw-animation tw-animation--animate tw-animation--duration-short tw-animation--fade-in tw-animation--fill-mode-both tw-animation--timing-ease-in">
<div class="item-card__action">
<a aria-label="Disney•Pixar WALL-E"
class="tw-interactive tw-block tw-full-width tw-interactable tw-interactable--alpha"
data-a-target="learn-more-card"
href="/disney-pixar-wall-e-aga/dp/[redacted by SatyrSack]">
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>