Merge remote-tracking branch 'origin/main'

This commit is contained in:
oSumAtrIX
2022-06-13 01:34:28 +02:00
6 changed files with 140 additions and 8 deletions

View File

@ -19,9 +19,9 @@ internal fun Node.doRecursively(action: (Node) -> Unit) {
for (i in 0 until this.childNodes.length) this.childNodes.item(i).doRecursively(action)
}
internal fun String.startsWithAny(vararg prefix: String): Boolean {
for (_prefix in prefix)
if (this.startsWith(_prefix))
internal fun String.startsWithAny(vararg prefixes: String): Boolean {
for (prefix in prefixes)
if (this.startsWith(prefix))
return true
return false
@ -33,4 +33,4 @@ internal fun String.equalsAny(vararg other: String): Boolean {
return true
return false
}
}

View File

@ -20,7 +20,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
@Patch
@Name("upgrade-button-remover")
@Description("Remove the upgrade tab from t he pivot bar in YouTube music.")
@Description("Remove the upgrade tab from the pivot bar in YouTube music.")
@RemoveUpgradeButtonCompatibility
@Version("0.0.1")
class RemoveUpgradeButtonPatch : BytecodePatch(
@ -73,4 +73,4 @@ class RemoveUpgradeButtonPatch : BytecodePatch(
)
return PatchResultSuccess()
}
}
}