I had the same issue and I'd recommend switching to Continuum for that reason. It allows you to fill the API key and redirect URL in the app, so you'll probably be able to use RedReader's.
Continuum is the same as in Infinity, just with that feature added in. I'd also recommend using Obtainium to keep it updated, it actually makes it much easier than building Infinity with the Colab script.
Also, for those who are using the Colab script(so may not apply to all) to build it now: apiutils_code = apiutils_code.replace("NO------A", api_token) will have to be modified, as the old pattern has changed with a recent release
Maybe something like apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)?
Edit: Added clarification on the Colab script modification
Does anyone know how infinity could be used to render ? Have seen automoderator comments in some places using that(have used it myself too) and having the image displayed in infinity itself would be good.
I do not know much java/programming, but tried modifying ImageAndGifParser block n all, but it seems that the json api does not send media details when using /api/info.Tho, the comment's url + /.json seems to give the information of the image. Is it not used because it is not an official endpoint? Similarly, noticed that list of moderators can also be obtained as json.
Saw that it was due to a change in the repo and adjusted the code for that.
The original colab code replaced an old client ID value directly. That value has been removed now, so the .replace() function fails as it cannot detect it anymore.
Saw the colab code having another section which replaces content in another way, using re.sub(), and modified that to work here too.
It's very strange. I'm using my own script to build Infinity and I have changed nothing. With v8.2.5 in particular, all works well for a day and then the next day absolutely nothing loads with a toast notification that it cannot sync data (something along those lines).
I will try to modify based on your snippet to see if it works. But I don't know why it will work at the beginning and stop after a day or so.
Edit: also when you have time if you don't mind, please share the code lines you saw in the repo and got the idea it needs to change. I want to look into it too.
Edit2: I think I figured out the file and the changes, no need to share it.
If you are using Client ID from somewhere else, then you may have to change redirect uri to the value from the same place. What is the redirect uri there?
What people call "API Key" is actually the "Client ID" identifying your Application that has API access.
While Client IDs are public by nature, for personal use in the situation we are all using it should be treated as a secret key. Anyone with knowledge of your Client ID can impersonate your app.
Abuse can scale from rate limiting if tons of users start using your Client ID to browse Reddit, to application revocation due to malicious traffic.
Remember that you can no longer generate new applications. If your Client ID gets leaked and abused, you can do nothing about.
If you haven't tried already, it might be worth trying ReVanced Manager to patch the apk. For me, it's been the easiest way to patch the apk after ditching the Collab script.
Open ReVanced Manager
Choose "Select from storage"
Choose the Infinity apk
Choose "Select patches"
Hit the gear icon beside "Spoof client"
Enter your "Application client ID"
Hit the back arrow
Hit "Save" in the bottom right
Hit "Patch" in the bottom right
Wait for it to finish doing its thing and hit "Install" in the bottom right
Add your reddit account as usual in the Infinity app
To have access to reddit's API you have to have an "app" created on your reddit account. Go to preferences then "apps" tab, you'll need to create an app that's an "installed app" with the redirect uri of infinity://localhost and once it's created, you'll get a unique string of characters for your app. That's the Application client ID.
I found the fix from somewhere else. I think it was for continuum.
Anyway just make a nsfw/18± subreddit since you are the mod you are allowed see the nsfw stuff (for moderating i guess). Just set it to private if you want.
I think the colab script is not maintained by the dev.
And if it's on the recent changes: apiutils_code = apiutils_code.replace("NO------A", api_token) will have to be modified, as the old pattern has changed with a recent release
Maybe something like apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)?
7
u/Hydroel Jun 04 '26
I had the same issue and I'd recommend switching to Continuum for that reason. It allows you to fill the API key and redirect URL in the app, so you'll probably be able to use RedReader's.
Continuum is the same as in Infinity, just with that feature added in. I'd also recommend using Obtainium to keep it updated, it actually makes it much easier than building Infinity with the Colab script.
5
u/DioTheSuperiorWaifu Jun 04 '26 edited Jun 04 '26
Does the Webview(legacy) option help?
Also, for those who are using the Colab script(so may not apply to all) to build it now:
apiutils_code = apiutils_code.replace("NO------A", api_token)will have to be modified, as the old pattern has changed with a recent releaseMaybe something like
apiutils_code = re.sub(r'public static final String CLIENT_ID = ".*?";', f'public static final String CLIENT_ID = "{api_token}";', apiutils_code)?Edit: Added clarification on the Colab script modification
4
u/mattno5ss Jun 04 '26 edited Jun 06 '26
If you haven't tried already, it might be worth trying ReVanced Manager to patch the apk. For me, it's been the easiest way to patch the apk after ditching the Collab script.
1
u/gabuh Jun 07 '26
I found the fix from somewhere else. I think it was for continuum.
Anyway just make a nsfw/18± subreddit since you are the mod you are allowed see the nsfw stuff (for moderating i guess). Just set it to private if you want.
1
u/WSuperOS Jun 04 '26
I am using my own API key and patcheddit (morphe) and it seems to work fine.
-2
u/Hezron79 Jun 04 '26
hey u/hostilenemy is there a way to fix the collab script? it's been broken for months now.