mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-20 09:33:57 +00:00
Compare commits
7 Commits
v4.8.0-dev
...
v4.8.0-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d90025ff8e | ||
|
|
112513e4b0 | ||
|
|
8bf3670edf | ||
|
|
943c93593b | ||
|
|
a1e7253073 | ||
|
|
6768f98dd7 | ||
|
|
0d63b137aa |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -1,3 +1,24 @@
|
|||||||
|
# [4.8.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.6...v4.8.0-dev.7) (2024-04-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* URL decode path to JAR containing spaces to get JAR manifest ([#3079](https://github.com/ReVanced/revanced-patches/issues/3079)) ([e1bbcb3](https://github.com/ReVanced/revanced-patches/commit/e1bbcb338dd7fce895b606440bd6f040d5486a64))
|
||||||
|
|
||||||
|
# [4.8.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.5...v4.8.0-dev.6) (2024-04-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **YouTube - Hide ads:** Add option to hide the 'Visit store' button on channel pages ([#3077](https://github.com/ReVanced/revanced-patches/issues/3077)) ([03d2cfa](https://github.com/ReVanced/revanced-patches/commit/03d2cfafbf977340456598a848858ac9452c853f))
|
||||||
|
|
||||||
|
# [4.8.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.4...v4.8.0-dev.5) (2024-04-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **YouTube - Hide Shorts components:** Rename option title to make it consistent ([4d6e34b](https://github.com/ReVanced/revanced-patches/commit/4d6e34b0540a3334bd77b2b48a1a5e10329171c8))
|
||||||
|
|
||||||
# [4.8.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.3...v4.8.0-dev.4) (2024-04-23)
|
# [4.8.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v4.8.0-dev.3...v4.8.0-dev.4) (2024-04-23)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ This document describes how to contribute to ReVanced Patches.
|
|||||||
|
|
||||||
## 📖 Resources to help you get started
|
## 📖 Resources to help you get started
|
||||||
|
|
||||||
* The [documentation](https://github.com/ReVanced/revanced-patcher/tree/docs/docs) contains the fundamentals
|
* The [documentation](https://github.com/ReVanced/revanced-patcher/tree/main/docs) contains the fundamentals
|
||||||
of ReVanced Patcher and how to use ReVanced Patcher to create patches
|
of ReVanced Patcher and how to use ReVanced Patcher to create patches
|
||||||
* [Our backlog](https://github.com/orgs/ReVanced/projects/12) is where we keep track of what we're working on
|
* [Our backlog](https://github.com/orgs/ReVanced/projects/12) is where we keep track of what we're working on
|
||||||
* [Issues](https://github.com/ReVanced/revanced-patches/issues) are where we keep track of bugs and feature requests
|
* [Issues](https://github.com/ReVanced/revanced-patches/issues) are where we keep track of bugs and feature requests
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 4.8.0-dev.4
|
version = 4.8.0-dev.7
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import app.revanced.util.resultOrThrow
|
|||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
import com.android.tools.smali.dexlib2.iface.ClassDef
|
import com.android.tools.smali.dexlib2.iface.ClassDef
|
||||||
import com.android.tools.smali.dexlib2.iface.Method
|
import com.android.tools.smali.dexlib2.iface.Method
|
||||||
|
import java.net.URLDecoder
|
||||||
|
import java.nio.charset.StandardCharsets
|
||||||
import java.util.jar.JarFile
|
import java.util.jar.JarFile
|
||||||
|
|
||||||
abstract class BaseIntegrationsPatch(
|
abstract class BaseIntegrationsPatch(
|
||||||
@@ -74,7 +76,7 @@ abstract class BaseIntegrationsPatch(
|
|||||||
|
|
||||||
if (urlString.startsWith("jar:file:")) {
|
if (urlString.startsWith("jar:file:")) {
|
||||||
val end = urlString.indexOf('!')
|
val end = urlString.indexOf('!')
|
||||||
return urlString.substring("jar:file:".length, end)
|
return URLDecoder.decode(urlString.substring("jar:file:".length, end), StandardCharsets.UTF_8)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
throw IllegalStateException("Not running from inside a JAR file.")
|
throw IllegalStateException("Not running from inside a JAR file.")
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ object HideAdsResourcePatch : ResourcePatch() {
|
|||||||
SwitchPreference("revanced_hide_self_sponsor_ads"),
|
SwitchPreference("revanced_hide_self_sponsor_ads"),
|
||||||
SwitchPreference("revanced_hide_products_banner"),
|
SwitchPreference("revanced_hide_products_banner"),
|
||||||
SwitchPreference("revanced_hide_shopping_links"),
|
SwitchPreference("revanced_hide_shopping_links"),
|
||||||
|
SwitchPreference("revanced_hide_visit_store_button"),
|
||||||
SwitchPreference("revanced_hide_web_search_results"),
|
SwitchPreference("revanced_hide_web_search_results"),
|
||||||
SwitchPreference("revanced_hide_merchandise_banners"),
|
SwitchPreference("revanced_hide_merchandise_banners"),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -266,6 +266,10 @@
|
|||||||
<string name="revanced_hide_shopping_links_title">Hide shopping links in video description</string>
|
<string name="revanced_hide_shopping_links_title">Hide shopping links in video description</string>
|
||||||
<string name="revanced_hide_shopping_links_summary_on">Shopping links are hidden</string>
|
<string name="revanced_hide_shopping_links_summary_on">Shopping links are hidden</string>
|
||||||
<string name="revanced_hide_shopping_links_summary_off">Shopping links are shown</string>
|
<string name="revanced_hide_shopping_links_summary_off">Shopping links are shown</string>
|
||||||
|
<!-- 'Visit store' should be translated with the same localized wording that YouTube displays. -->
|
||||||
|
<string name="revanced_hide_visit_store_button_title">Hide the 'Visit store' button on channel pages</string>
|
||||||
|
<string name="revanced_hide_visit_store_button_summary_on">Button is hidden</string>
|
||||||
|
<string name="revanced_hide_visit_store_button_summary_off">Button is shown</string>
|
||||||
<string name="revanced_hide_web_search_results_title">Hide web search results</string>
|
<string name="revanced_hide_web_search_results_title">Hide web search results</string>
|
||||||
<string name="revanced_hide_web_search_results_summary_on">Web search results are hidden</string>
|
<string name="revanced_hide_web_search_results_summary_on">Web search results are hidden</string>
|
||||||
<string name="revanced_hide_web_search_results_summary_off">Web search results are shown</string>
|
<string name="revanced_hide_web_search_results_summary_off">Web search results are shown</string>
|
||||||
@@ -619,7 +623,7 @@
|
|||||||
<string name="revanced_hide_shorts_channel_bar_title">Hide channel bar</string>
|
<string name="revanced_hide_shorts_channel_bar_title">Hide channel bar</string>
|
||||||
<string name="revanced_hide_shorts_channel_bar_summary_on">Channel bar is hidden</string>
|
<string name="revanced_hide_shorts_channel_bar_summary_on">Channel bar is hidden</string>
|
||||||
<string name="revanced_hide_shorts_channel_bar_summary_off">Channel bar is shown</string>
|
<string name="revanced_hide_shorts_channel_bar_summary_off">Channel bar is shown</string>
|
||||||
<string name="revanced_hide_shorts_video_title_title">Hide Shorts video title</string>
|
<string name="revanced_hide_shorts_video_title_title">Hide video title</string>
|
||||||
<string name="revanced_hide_shorts_video_title_summary_on">Title is hidden</string>
|
<string name="revanced_hide_shorts_video_title_summary_on">Title is hidden</string>
|
||||||
<string name="revanced_hide_shorts_video_title_summary_off">Title is shown</string>
|
<string name="revanced_hide_shorts_video_title_summary_off">Title is shown</string>
|
||||||
<string name="revanced_hide_shorts_sound_metadata_label_title">Hide sound metadata label</string>
|
<string name="revanced_hide_shorts_sound_metadata_label_title">Hide sound metadata label</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user