mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 19:36:30 +02:00
Merge remote-tracking branch 'upstream/dev' into feat/save_brightness
This commit is contained in:
commit
1fbbfd90f3
21
CHANGELOG.md
21
CHANGELOG.md
|
@ -1,3 +1,24 @@
|
||||||
|
# [1.8.0-dev.19](https://github.com/ReVanced/revanced-integrations/compare/v1.8.0-dev.18...v1.8.0-dev.19) (2024-04-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **YouTube - Hide keyword content:** Correctly hide content in the subscription tab ([c3bfa77](https://github.com/ReVanced/revanced-integrations/commit/c3bfa77d62b15dedfed8f697583f2f0805f0c2c1))
|
||||||
|
|
||||||
|
# [1.8.0-dev.18](https://github.com/ReVanced/revanced-integrations/compare/v1.8.0-dev.17...v1.8.0-dev.18) (2024-04-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **YouTube - Spoof device dimensions:** Warn about potential performance issues ([#617](https://github.com/ReVanced/revanced-integrations/issues/617)) ([786ac9d](https://github.com/ReVanced/revanced-integrations/commit/786ac9d2b71886964454fcb748e656d1beed1964))
|
||||||
|
|
||||||
|
# [1.8.0-dev.17](https://github.com/ReVanced/revanced-integrations/compare/v1.8.0-dev.16...v1.8.0-dev.17) (2024-04-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **YouTube - Hide Shorts components:** Hide paid promotion label ([3ce100c](https://github.com/ReVanced/revanced-integrations/commit/3ce100ced57d7099c2209d9a955484f1e7d418e0))
|
||||||
|
|
||||||
# [1.8.0-dev.16](https://github.com/ReVanced/revanced-integrations/compare/v1.8.0-dev.15...v1.8.0-dev.16) (2024-04-18)
|
# [1.8.0-dev.16](https://github.com/ReVanced/revanced-integrations/compare/v1.8.0-dev.15...v1.8.0-dev.16) (2024-04-18)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,7 @@ final class KeywordContentFilter extends Filter {
|
||||||
// For now, consider the under video results the same as the home feed.
|
// For now, consider the under video results the same as the home feed.
|
||||||
return Settings.HIDE_KEYWORD_CONTENT_HOME.get();
|
return Settings.HIDE_KEYWORD_CONTENT_HOME.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Must check second, as search can be from any tab.
|
// Must check second, as search can be from any tab.
|
||||||
if (NavigationBar.isSearchBarActive()) {
|
if (NavigationBar.isSearchBarActive()) {
|
||||||
return Settings.HIDE_KEYWORD_CONTENT_SEARCH.get();
|
return Settings.HIDE_KEYWORD_CONTENT_SEARCH.get();
|
||||||
|
@ -125,7 +126,7 @@ final class KeywordContentFilter extends Filter {
|
||||||
|
|
||||||
// Avoid checking navigation button status if all other settings are off.
|
// Avoid checking navigation button status if all other settings are off.
|
||||||
final boolean hideHome = Settings.HIDE_KEYWORD_CONTENT_HOME.get();
|
final boolean hideHome = Settings.HIDE_KEYWORD_CONTENT_HOME.get();
|
||||||
final boolean hideSubscriptions = Settings.HIDE_SUBSCRIPTIONS_BUTTON.get();
|
final boolean hideSubscriptions = Settings.HIDE_KEYWORD_CONTENT_SUBSCRIPTIONS.get();
|
||||||
if (!hideHome && !hideSubscriptions) {
|
if (!hideHome && !hideSubscriptions) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ public final class ShortsFilter extends Filter {
|
||||||
|
|
||||||
private final static String REEL_CHANNEL_BAR_PATH = "reel_channel_bar.eml";
|
private final static String REEL_CHANNEL_BAR_PATH = "reel_channel_bar.eml";
|
||||||
/**
|
/**
|
||||||
* For subscribe button that appears in the channel bar.
|
* For paid promotion label and subscribe button that appears in the channel bar.
|
||||||
*/
|
*/
|
||||||
private final static String REEL_METAPANEL_PATH = "reel_metapanel.eml";
|
private final static String REEL_METAPANEL_PATH = "reel_metapanel.eml";
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ public final class ShortsFilter extends Filter {
|
||||||
|
|
||||||
private final StringFilterGroup subscribeButton;
|
private final StringFilterGroup subscribeButton;
|
||||||
private final StringFilterGroup joinButton;
|
private final StringFilterGroup joinButton;
|
||||||
|
private final StringFilterGroup paidPromotionButton;
|
||||||
private final StringFilterGroup shelfHeader;
|
private final StringFilterGroup shelfHeader;
|
||||||
|
|
||||||
private final StringFilterGroup suggestedAction;
|
private final StringFilterGroup suggestedAction;
|
||||||
|
@ -117,6 +118,11 @@ public final class ShortsFilter extends Filter {
|
||||||
"subscribe_button"
|
"subscribe_button"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
paidPromotionButton = new StringFilterGroup(
|
||||||
|
Settings.HIDE_PAID_PROMOTION_LABEL,
|
||||||
|
"reel_player_disclosure.eml"
|
||||||
|
);
|
||||||
|
|
||||||
actionBar = new StringFilterGroup(
|
actionBar = new StringFilterGroup(
|
||||||
null,
|
null,
|
||||||
"shorts_action_bar"
|
"shorts_action_bar"
|
||||||
|
@ -129,8 +135,8 @@ public final class ShortsFilter extends Filter {
|
||||||
|
|
||||||
addPathCallbacks(
|
addPathCallbacks(
|
||||||
shortsCompactFeedVideoPath, suggestedAction, actionBar, joinButton, subscribeButton,
|
shortsCompactFeedVideoPath, suggestedAction, actionBar, joinButton, subscribeButton,
|
||||||
pausedOverlayButtons, channelBar, fullVideoLinkLabel, videoTitle, reelSoundMetadata,
|
paidPromotionButton, pausedOverlayButtons, channelBar, fullVideoLinkLabel, videoTitle,
|
||||||
soundButton, infoPanel
|
reelSoundMetadata, soundButton, infoPanel
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -196,7 +202,7 @@ public final class ShortsFilter extends Filter {
|
||||||
boolean isFiltered(@Nullable String identifier, String path, byte[] protobufBufferArray,
|
boolean isFiltered(@Nullable String identifier, String path, byte[] protobufBufferArray,
|
||||||
StringFilterGroup matchedGroup, FilterContentType contentType, int contentIndex) {
|
StringFilterGroup matchedGroup, FilterContentType contentType, int contentIndex) {
|
||||||
if (contentType == FilterContentType.PATH) {
|
if (contentType == FilterContentType.PATH) {
|
||||||
if (matchedGroup == subscribeButton || matchedGroup == joinButton) {
|
if (matchedGroup == subscribeButton || matchedGroup == joinButton || matchedGroup == paidPromotionButton) {
|
||||||
// Selectively filter to avoid false positive filtering of other subscribe/join buttons.
|
// Selectively filter to avoid false positive filtering of other subscribe/join buttons.
|
||||||
if (path.startsWith(REEL_CHANNEL_BAR_PATH) || path.startsWith(REEL_METAPANEL_PATH)) {
|
if (path.startsWith(REEL_CHANNEL_BAR_PATH) || path.startsWith(REEL_METAPANEL_PATH)) {
|
||||||
return super.isFiltered(
|
return super.isFiltered(
|
||||||
|
|
|
@ -223,7 +223,8 @@ public class Settings extends BaseSettings {
|
||||||
parent(SPOOF_SIGNATURE));
|
parent(SPOOF_SIGNATURE));
|
||||||
public static final BooleanSetting SPOOF_STORYBOARD_RENDERER = new BooleanSetting("revanced_spoof_storyboard", TRUE, true,
|
public static final BooleanSetting SPOOF_STORYBOARD_RENDERER = new BooleanSetting("revanced_spoof_storyboard", TRUE, true,
|
||||||
parent(SPOOF_SIGNATURE));
|
parent(SPOOF_SIGNATURE));
|
||||||
public static final BooleanSetting SPOOF_DEVICE_DIMENSIONS = new BooleanSetting("revanced_spoof_device_dimensions", FALSE, true);
|
public static final BooleanSetting SPOOF_DEVICE_DIMENSIONS = new BooleanSetting("revanced_spoof_device_dimensions", FALSE, true,
|
||||||
|
"revanced_spoof_device_dimensions_user_dialog_message");
|
||||||
public static final BooleanSetting BYPASS_URL_REDIRECTS = new BooleanSetting("revanced_bypass_url_redirects", TRUE);
|
public static final BooleanSetting BYPASS_URL_REDIRECTS = new BooleanSetting("revanced_bypass_url_redirects", TRUE);
|
||||||
public static final BooleanSetting ANNOUNCEMENTS = new BooleanSetting("revanced_announcements", TRUE);
|
public static final BooleanSetting ANNOUNCEMENTS = new BooleanSetting("revanced_announcements", TRUE);
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
android.useAndroidX = true
|
android.useAndroidX = true
|
||||||
version = 1.8.0-dev.16
|
version = 1.8.0-dev.19
|
||||||
|
|
Loading…
Reference in New Issue
Block a user