Skip to content

Conversation

@bru02
Copy link
Contributor

@bru02 bru02 commented Jul 21, 2025

This is just a port of the official patches, which get rid of most upsells.

Example:

Before After
image image

override fun beforeHookedMethod(param: MethodHookParam) {
val pageValue = param.thisObject.getObjectFieldOrNullAs<String>("page")

if (pageValue?.contains("_upsell") == true || pageValue?.contains("promo") == true) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The official patch does not include a "promo" substring check, please explain.

@chsbuffer chsbuffer merged commit d7e3d2b into chsbuffer:main Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants