Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Boost for Reddit - Spoof client ID): Add additional patch to spoof Boost for Reddit's user agent and redirect URI #4551

Closed
wants to merge 3 commits into from

Conversation

wchill
Copy link

@wchill wchill commented Mar 6, 2025

Fixes #4549.

This patch adds two new options user-agent and redirect-uri that can be used to spoof the user agent and OAuth redirect URI for Boost for Reddit.

It takes a different approach from the earlier user agent patch that used the old ReVanced API by directly replacing the format string used to construct the user agent.

Other clients will likely eventually need a similar patch; however, I don't have the time to implement this for other clients. A new interface has been added that other clients can move to as needed.

@LisoUseInAIKyrios
Copy link
Contributor

Copy pasting code will make more work in the future. It's better to fix the spoof patch for all reddit clients.

@wchill
Copy link
Author

wchill commented Mar 6, 2025

I added a new interface that the other clients can use. As mentioned, I can't implement the actual patches for all the clients due to lack of time, so I'm hoping users of other clients can contribute as needed.

@wchill wchill changed the title fix(Boost for Reddit - Spoof client ID): Add additional patch to spoof Boost for Reddit's user agent fix(Boost for Reddit - Spoof client ID): Add additional patch to spoof Boost for Reddit's user agent and redirect URI Mar 6, 2025
@oSumAtrIX
Copy link
Member

The user agent can be automatically generated by the patch if necessary. The redirect URI never needed to be changed, and this also should be the case for the user agent. Reddit is breaking their own API. Thanks regardless for the patch!

@oSumAtrIX oSumAtrIX closed this Mar 6, 2025
@wchill
Copy link
Author

wchill commented Mar 6, 2025

Why has the PR been closed? The user agent being automatically generated by the patch is why users are running into issues. The redirect URI patch was added to reduce the chances of detection so we don't need to do this song and dance again in the future.

As explained here, reddit has some block on their side that is uniquely triggered by adding rubenmayayo anywhere in the user agent. Given how uniquely targeted the block is, it is better that it and the redirect URI be configurable so that reddit doesn't have a way to block Boost in the future.

@oSumAtrIX
Copy link
Member

Multiple reasons, the redirect uri does not need to change. Reddit does not "detect" third party clients. In fact they were never banned. Reddit merely monetized the API, which if you create your own client is free. Also a lot of copy paste requiring rewriting the PR anyways when just 3 lines need to change

@wchill
Copy link
Author

wchill commented Mar 6, 2025

I'm not a Kotlin expert, so if someone else wants to improve the PR, they can. It's not a reason to close it. But my patches are clearly working for Boost users who are trying it out.

Reddit is clearly starting to crack down on 3rd party apps. I was not even using ReVanced to patch the Boost app previously because I had moderator status, so the app continued to work for me even after the API was monetized. That is, until today. There is no other reason for this app to just stop working when others are continuing to work.

@oSumAtrIX
Copy link
Member

I'll push a couple of lines changes myself rather than refactoring the entire PR. Reddit "cracking" down is just like i said them monetizing the API, nothing less nothing more.

@oSumAtrIX
Copy link
Member

For reference 5d3c817

@wchill
Copy link
Author

wchill commented Mar 6, 2025

Well, if you want to do it your way, fine, but this is going to be an easy target for later crackdowns from reddit (which is explicitly why I didn't do it your way).

@oSumAtrIX
Copy link
Member

For the third time, the "crackdown" is just the API being monetized. Reddit isn't going after oAuth applications.

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.

3 participants