-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Conversation
Copy pasting code will make more work in the future. It's better to fix the spoof patch for all reddit clients. |
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. |
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! |
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 |
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 |
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. |
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. |
For reference 5d3c817 |
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). |
For the third time, the "crackdown" is just the API being monetized. Reddit isn't going after oAuth applications. |
Fixes #4549.
This patch adds two new options
user-agent
andredirect-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.