File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
patches/src/main/kotlin/app/revanced/patches/reddit/customclients/baconreader/api Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ import app.revanced.patcher.Fingerprint
4
4
import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
5
5
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
6
6
import app.revanced.patches.reddit.customclients.spoofClientPatch
7
+ import app.revanced.patches.shared.misc.string.replaceStringPatch
7
8
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
8
9
9
10
val spoofClientPatch = spoofClientPatch(redirectUri = " http://baconreader.com/auth" ) { clientIdOption ->
11
+ dependsOn(
12
+ // Redirects from SSL to WWW domain are bugged causing auth problems.
13
+ // Manually rewrite the URLs to fix this.
14
+ replaceStringPatch(" ssl.reddit.com" , " www.reddit.com" )
15
+ )
16
+
10
17
compatibleWith(
11
18
" com.onelouder.baconreader" ,
12
19
" com.onelouder.baconreader.premium" ,
You can’t perform that action at this time.
0 commit comments