mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:28:47 -04:00
Fixed #48
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -41,9 +41,6 @@
|
||||
[submodule "Extensions"]
|
||||
path = Extensions
|
||||
url = https://github.com/CokePokes/YoutubeExtensions.git
|
||||
[submodule "Tweaks/YTNoCommunityPosts"]
|
||||
path = Tweaks/YTNoCommunityPosts
|
||||
url = https://github.com/michael-winay/YTNoCommunityPosts.git
|
||||
[submodule "Tweaks/YTVideoOverlay"]
|
||||
path = Tweaks/YTVideoOverlay
|
||||
url = https://github.com/PoomSmart/YTVideoOverlay.git
|
||||
|
5
Makefile
5
Makefile
@@ -12,7 +12,7 @@ BUNDLE_ID = com.google.ios.youtube
|
||||
|
||||
EXTRA_CFLAGS := $(addprefix -I,$(shell find Tweaks/FLEX -name '*.h' -exec dirname {} \;))
|
||||
|
||||
YTLitePlus_INJECT_DYLIBS = .theos/obj/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib .theos/obj/YTUHD.dylib .theos/obj/YouPiP.dylib .theos/obj/YouTubeDislikesReturn.dylib .theos/obj/YTABConfig.dylib .theos/obj/YouMute.dylib .theos/obj/DontEatMyContent.dylib .theos/obj/YTHoldForSpeed.dylib .theos/obj/YTLite.dylib .theos/obj/YTNoCommunityPosts.dylib .theos/obj/YTVideoOverlay.dylib .theos/obj/YouQuality.dylib
|
||||
YTLitePlus_INJECT_DYLIBS = .theos/obj/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib .theos/obj/YTUHD.dylib .theos/obj/YouPiP.dylib .theos/obj/YouTubeDislikesReturn.dylib .theos/obj/YTABConfig.dylib .theos/obj/YouMute.dylib .theos/obj/DontEatMyContent.dylib .theos/obj/YTHoldForSpeed.dylib .theos/obj/YTLite.dylib .theos/obj/YTVideoOverlay.dylib .theos/obj/YouQuality.dylib
|
||||
YTLitePlus_FILES = YTLitePlus.xm $(shell find Source -name '*.xm' -o -name '*.x' -o -name '*.m') $(shell find Tweaks/FLEX -type f \( -iname \*.c -o -iname \*.m -o -iname \*.mm \))
|
||||
YTLitePlus_IPA = ./tmp/Payload/YouTube.app
|
||||
YTLitePlus_CFLAGS = -fobjc-arc -Wno-deprecated-declarations -Wno-unsupported-availability-guard -Wno-unused-but-set-variable -DTWEAK_VERSION=$(PACKAGE_VERSION) $(EXTRA_CFLAGS)
|
||||
@@ -20,7 +20,7 @@ YTLitePlus_FRAMEWORKS = UIKit Security
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
SUBPROJECTS += Tweaks/Alderis Tweaks/iSponsorBlock Tweaks/YTUHD Tweaks/YouPiP Tweaks/Return-YouTube-Dislikes Tweaks/YTABConfig Tweaks/YouMute Tweaks/DontEatMyContent Tweaks/YTLite Tweaks/YTHoldForSpeed Tweaks/YTNoCommunityPosts Tweaks/YTVideoOverlay Tweaks/YouQuality
|
||||
SUBPROJECTS += Tweaks/Alderis Tweaks/iSponsorBlock Tweaks/YTUHD Tweaks/YouPiP Tweaks/Return-YouTube-Dislikes Tweaks/YTABConfig Tweaks/YouMute Tweaks/DontEatMyContent Tweaks/YTLite Tweaks/YTHoldForSpeed Tweaks/YTVideoOverlay Tweaks/YouQuality
|
||||
include $(THEOS_MAKE_PATH)/aggregate.mk
|
||||
|
||||
before-package::
|
||||
@@ -37,7 +37,6 @@ before-package::
|
||||
@cp -R Tweaks/iSponsorBlock/layout/Library/Application\ Support/iSponsorBlock.bundle Resources/
|
||||
@cp -R Tweaks/YTVideoOverlay/layout/Library/Application\ Support/YTVideoOverlay.bundle Resources/
|
||||
@cp -R Tweaks/YouQuality/layout/Library/Application\ Support/YouQuality.bundle Resources/
|
||||
@cp -R Tweaks/YTNoCommunityPosts/layout/Library/Application\ Support/YTNoCommunityPosts.bundle Resources/
|
||||
@cp -R lang/YTLitePlus.bundle Resources/
|
||||
@echo -e "==> \033[1mChanging the installation path of dylibs...\033[0m"
|
||||
@ldid -r .theos/obj/iSponsorBlock.dylib && install_name_tool -change /usr/lib/libcolorpicker.dylib @rpath/libcolorpicker.dylib .theos/obj/iSponsorBlock.dylib
|
||||
|
@@ -478,6 +478,16 @@ extern NSBundle *YTLitePlusBundle();
|
||||
}
|
||||
settingItemId:0],
|
||||
|
||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_COMMUNITY_POSTS")
|
||||
titleDescription:LOC(@"HIDE_COMMUNITY_POSTS_DESC")
|
||||
accessibilityIdentifier:nil
|
||||
switchOn:IsEnabled(@"hideCommunityPosts_enabled")
|
||||
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideCommunityPosts_enabled"];
|
||||
return YES;
|
||||
}
|
||||
settingItemId:0],
|
||||
|
||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_CAST_BUTTON")
|
||||
titleDescription:LOC(@"HIDE_CAST_BUTTON_DESC")
|
||||
accessibilityIdentifier:nil
|
||||
|
Submodule Tweaks/YTNoCommunityPosts deleted from dbb1e82e32
@@ -330,6 +330,12 @@ static BOOL IsEnabled(NSString *key) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Hide Community Posts - @michael-winay & @arichorn
|
||||
if (IsEnabled(@"hideCommunityPosts_enabled")) {
|
||||
if ([description containsString:@"post_base_wrapper.eml"]) {
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
return %orig;
|
||||
}
|
||||
%end
|
||||
@@ -593,6 +599,7 @@ static BOOL IsEnabled(NSString *key) {
|
||||
%init(gDisableLiveChatSection);
|
||||
}
|
||||
|
||||
|
||||
// Change the default value of some options
|
||||
NSArray *allKeys = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] allKeys];
|
||||
if (![allKeys containsObject:@"RYD-ENABLED"]) {
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required.";
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required.";
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Ocultar Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Quitar los Shorts de YouTube";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Activar App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Active esta opción para utilizar Version Spoofer (Lite) y seleccione su versión preferida a continuación. Es necesario reiniciar la aplicación.";
|
||||
|
@@ -101,6 +101,9 @@
|
||||
"UN_SHORTS" = "Masquer les Shorts (YTUnShorts)" ;
|
||||
"UN_SHORTS_DESC" = "Supprimer les Shorts du feed de YouTube" ;
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Masquer les messages de la communauté";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Masque les messages de la communauté. Le redémarrage de l'application est nécessaire.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Activer le Spoofer de Version de l'Application (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Activez cette option pour utiliser le Spoofer de Version de l'Application (Lite) et sélectionnez votre version préférée ci-dessous. Un redémarrage de l'application est requis.";
|
||||
|
@@ -101,6 +101,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "アプリのバージョン偽装(Lite)を有効にする";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "バージョン偽装(Lite)を使用するにはこれを有効にし、以下からお好みのバージョンを選択してください。アプリの再起動が必要です。";
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required.";
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Activare Spoofer Versiune Aplicație (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Activați pentru a utiliza Version Spoofer (Lite) și alegeți versiunea preferată. Este necesară repornirea aplicației.";
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required.";
|
||||
|
@@ -113,6 +113,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required.";
|
||||
|
@@ -98,6 +98,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
// Version Spoofer
|
||||
"APP_VERSION_SPOOFER_LITE" = "Enable App Version Spoofer (Lite)";
|
||||
"APP_VERSION_SPOOFER_LITE_DESC" = "Enable this to use the Version Spoofer (Lite) and select your perferred version below. App restart is required.";
|
||||
|
@@ -133,6 +133,9 @@
|
||||
"UN_SHORTS" = "Hide Shorts (YTUnShorts)";
|
||||
"UN_SHORTS_DESC" = "Remove Shorts from YouTube feed.";
|
||||
|
||||
"HIDE_COMMUNITY_POSTS" = "Hide community posts";
|
||||
"HIDE_COMMUNITY_POSTS_DESC" = "Hides the Community Posts. App restart is required.";
|
||||
|
||||
"FIX_GOOGLE_SIGNIN" = "Sửa lỗi Đăng nhập bằng Google (chỉ dành cho người dùng TrollStore)";
|
||||
"FIX_GOOGLE_SIGNIN_DESC" = "Chỉ bật tùy chọn này khi bạn không thể đăng nhập bằng tài khoản Google của mình và ứng dụng đã được cài đặt qua TrollStore. Nếu bạn có thể đăng nhập bình thường, hãy tắt nó đi. Khởi động lại ứng dụng là bắt buộc.";
|
||||
|
||||
|
Reference in New Issue
Block a user