Merge branch 'YTLitePlus:main' into main

This commit is contained in:
zentaplus 2024-07-05 21:41:40 +07:00 committed by GitHub
commit c5c8293c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 113 additions and 28 deletions

View file

@ -1,43 +1,45 @@
name: Delete Workflow Runs name: Delete old workflow runs
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
days: days:
description: 'Number of days.' description: 'Days-worth of runs to keep for each workflow'
required: true required: true
default: 0 default: '7' # default value is "30"
minimum_runs: minimum_runs:
description: 'The minimum runs to keep for each workflow.' description: 'Minimum runs to keep for each workflow'
required: true required: true
default: 0 default: '5' # default value is "6"
delete_workflow_pattern: delete_workflow_pattern:
description: 'The name or filename of the workflow. if not set then it will target all workflows.' description: 'Name or filename of the workflow (if not set, all workflows are targeted)'
required: false required: false
default: 'Build and Release uYouEnhanced' # default value is ""
delete_workflow_by_state_pattern: delete_workflow_by_state_pattern:
description: 'Remove workflow by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually' description: 'Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
required: true required: true
default: "All" default: "ALL"
type: choice type: choice
options: options:
- "All" - "ALL"
- active - active
- deleted - deleted
- disabled_inactivity - disabled_inactivity
- disabled_manually - disabled_manually
delete_run_by_conclusion_pattern: delete_run_by_conclusion_pattern:
description: 'Remove workflow by conclusion: action_required, cancelled, failure, skipped, success' description: 'Remove runs based on conclusion: action_required, cancelled, failure, skipped, success'
required: true required: true
default: "All" default: "ALL"
type: choice type: choice
options: options:
- "All" - "ALL"
- "Unsuccessful: action_required,cancelled,failure,skipped"
- action_required - action_required
- cancelled - cancelled
- failure - failure
- skipped - skipped
- success - success
dry_run: dry_run:
description: 'Only log actions, do not perform any delete operations.' description: 'Logs simulated changes, no deletions are performed'
required: false required: false
jobs: jobs:
@ -45,6 +47,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
actions: write actions: write
contents: read
steps: steps:
- name: Delete workflow runs - name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2 uses: Mattraks/delete-workflow-runs@v2
@ -55,5 +58,10 @@ jobs:
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }} keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }} delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }} delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }}
delete_run_by_conclusion_pattern: ${{ github.event.inputs.delete_run_by_conclusion_pattern }} delete_run_by_conclusion_pattern: >-
${{
startsWith(github.event.inputs.delete_run_by_conclusion_pattern, 'Unsuccessful:')
&& 'action_required,cancelled,failure,skipped'
|| github.event.inputs.delete_run_by_conclusion_pattern
}}
dry_run: ${{ github.event.inputs.dry_run }} dry_run: ${{ github.event.inputs.dry_run }}

View file

@ -530,6 +530,16 @@ extern NSBundle *YTLitePlusBundle();
} }
settingItemId:0], settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_HOME_TAB")
titleDescription:LOC(@"HIDE_HOME_TAB_DESC")
accessibilityIdentifier:nil
switchOn:IsEnabled(@"hideHomeTab_enabled")
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"hideHomeTab_enabled"];
return YES;
}
settingItemId:0],
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"ENABLE_FLEX") [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"ENABLE_FLEX")
titleDescription:LOC(@"ENABLE_FLEX_DESC") titleDescription:LOC(@"ENABLE_FLEX_DESC")
accessibilityIdentifier:nil accessibilityIdentifier:nil

View file

@ -161,7 +161,7 @@ static BOOL IsEnabled(NSString *key) {
- (BOOL)commercePlatformClientEnablePopupWebviewInWebviewDialogController { return NO;} - (BOOL)commercePlatformClientEnablePopupWebviewInWebviewDialogController { return NO;}
%end %end
// Hide Upgrade Dialog - @arichorn // Hide Upgrade Dialog - @arichornlover
%hook YTGlobalConfig %hook YTGlobalConfig
- (BOOL)shouldBlockUpgradeDialog { return YES;} - (BOOL)shouldBlockUpgradeDialog { return YES;}
- (BOOL)shouldForceUpgrade { return NO;} - (BOOL)shouldForceUpgrade { return NO;}
@ -169,18 +169,33 @@ static BOOL IsEnabled(NSString *key) {
- (BOOL)shouldShowUpgradeDialog { return NO;} - (BOOL)shouldShowUpgradeDialog { return NO;}
%end %end
// YTNoTracking - @arichorn - https://github.com/arichorn/YTNoTracking/ // Hide Home Tab - @bhackel
%hook UIApplication %group gHideHomeTab
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { %hook YTPivotBarViewController
NSString *originalURLString = [url absoluteString]; - (void)setRenderer:(YTIPivotBarRenderer *)renderer {
NSString *modifiedURLString = [originalURLString stringByReplacingOccurrencesOfString:@"&si=[a-zA-Z0-9_-]+" withString:@"" options:NSRegularExpressionSearch range:NSMakeRange(0, originalURLString.length)]; // Iterate over each renderer item
NSURL *modifiedURL = [NSURL URLWithString:modifiedURLString]; NSUInteger indexToRemove = -1;
BOOL result = %orig(application, modifiedURL, options); NSMutableArray <YTIPivotBarSupportedRenderers *> *itemsArray = renderer.itemsArray;
return result; for (NSUInteger i = 0; i < itemsArray.count; i++) {
YTIPivotBarSupportedRenderers *item = itemsArray[i];
// Check if this is the home tab button
YTIPivotBarItemRenderer *pivotBarItemRenderer = item.pivotBarItemRenderer;
NSString *pivotIdentifier = pivotBarItemRenderer.pivotIdentifier;
if ([pivotIdentifier isEqualToString:@"FEwhat_to_watch"]) {
// Remove the home tab button
indexToRemove = i;
break;
}
}
if (indexToRemove != -1) {
[itemsArray removeObjectAtIndex:indexToRemove];
}
%orig;
} }
%end %end
%end
// YTNoModernUI - @arichorn // YTNoModernUI - @arichornlover
%group gYTNoModernUI %group gYTNoModernUI
%hook YTVersionUtils // YTNoModernUI Original Version %hook YTVersionUtils // YTNoModernUI Original Version
+ (NSString *)appVersion { return @"17.38.10"; } + (NSString *)appVersion { return @"17.38.10"; }
@ -223,14 +238,27 @@ static BOOL IsEnabled(NSString *key) {
- (BOOL)cxClientEnableModernizedActionSheet { return NO; } - (BOOL)cxClientEnableModernizedActionSheet { return NO; }
- (BOOL)enableClientShortsSheetsModernization { return NO; } - (BOOL)enableClientShortsSheetsModernization { return NO; }
- (BOOL)enableTimestampModernizationForNative { return NO; } - (BOOL)enableTimestampModernizationForNative { return NO; }
- (BOOL)modernizeElementsTextColor { return NO; } - (BOOL)mainAppCoreClientEnableModernIaFeedStretchBottom { return NO; }
- (BOOL)modernizeElementsBgColor { return NO; } - (BOOL)mainAppCoreClientEnableModernIaFrostedBottomBar { return NO; }
- (BOOL)mainAppCoreClientEnableModernIaFrostedPivotBar { return NO; }
- (BOOL)mainAppCoreClientEnableModernIaFrostedPivotBarUpdatedBackdrop { return NO; }
- (BOOL)mainAppCoreClientEnableModernIaFrostedTopBar { return NO; }
- (BOOL)mainAppCoreClientEnableModernIaOpacityPivotBar { return NO; }
- (BOOL)mainAppCoreClientEnableModernIaTopAndBottomBarIconRefresh { return NO; }
- (BOOL)mainAppCoreClientEnableModernizedBedtimeReminderU18DefaultSettings { return NO; }
- (BOOL)modernizeCameoNavbar { return NO; }
- (BOOL)modernizeCollectionLockups { return NO; } - (BOOL)modernizeCollectionLockups { return NO; }
- (BOOL)modernizeCollectionLockupsShowVideoCount { return NO; }
- (BOOL)modernizeElementsBgColor { return NO; }
- (BOOL)modernizeElementsTextColor { return NO; }
- (BOOL)postsCreatorClientEnableModernButtonsUi { return NO; }
- (BOOL)pullToFullModernEdu { return NO; }
- (BOOL)showModernMiniplayerRedesign { return NO; }
- (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNative { return NO; } - (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNative { return NO; }
- (BOOL)uiSystemsClientGlobalConfigIosEnableModernTabsForNative { return NO; } - (BOOL)uiSystemsClientGlobalConfigIosEnableModernTabsForNative { return NO; }
- (BOOL)uiSystemsClientGlobalConfigIosEnableEpUxUpdates { return NO; }
- (BOOL)uiSystemsClientGlobalConfigIosEnableSheetsUxUpdates { return NO; }
- (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; } - (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; }
- (BOOL)uiSystemsClientGlobalConfigModernizeNativeBgColor { return NO; }
- (BOOL)uiSystemsClientGlobalConfigModernizeNativeTextColor { return NO; }
// Disable Rounded Content - YTNoModernUI // Disable Rounded Content - YTNoModernUI
- (BOOL)iosDownloadsPageRoundedThumbs { return NO; } - (BOOL)iosDownloadsPageRoundedThumbs { return NO; }
- (BOOL)iosRoundedSearchBarSuggestZeroPadding { return NO; } - (BOOL)iosRoundedSearchBarSuggestZeroPadding { return NO; }
@ -643,6 +671,9 @@ static NSData *cellDividerData = nil;
if (IsEnabled(@"disableLiveChatSection_enabled")) { if (IsEnabled(@"disableLiveChatSection_enabled")) {
%init(gDisableLiveChatSection); %init(gDisableLiveChatSection);
} }
if (IsEnabled(@"hideHomeTab_enabled")) {
%init(gHideHomeTab);
}
// Change the default value of some options // Change the default value of some options

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Enable YTSpeed"; "YT_SPEED" = "Enable YTSpeed";
"YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required."; "YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "تمكين FLEX"; "ENABLE_FLEX" = "تمكين FLEX";
"ENABLE_FLEX_DESC" = "تمكين FLEX للتصحيح (غير مستحسن). اترك هذا إلا إذا كنت تعرف ما تفعله"; "ENABLE_FLEX_DESC" = "تمكين FLEX للتصحيح (غير مستحسن). اترك هذا إلا إذا كنت تعرف ما تفعله";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "YTSpeed aktivieren"; "YT_SPEED" = "YTSpeed aktivieren";
"YT_SPEED_DESC" = "Aktiviere YTSpeed, um mehr Optionen für die Wiedergabegeschwindigkeit freizuschalten. Ein Neustart der App ist erforderlich."; "YT_SPEED_DESC" = "Aktiviere YTSpeed, um mehr Optionen für die Wiedergabegeschwindigkeit freizuschalten. Ein Neustart der App ist erforderlich.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "FLEX aktivieren"; "ENABLE_FLEX" = "FLEX aktivieren";
"ENABLE_FLEX_DESC" = "Aktiviere FLEX zum Debuggen (nicht empfohlen). Lass diese Option deaktiviert, es sei denn, du weißt, was du tust."; "ENABLE_FLEX_DESC" = "Aktiviere FLEX zum Debuggen (nicht empfohlen). Lass diese Option deaktiviert, es sei denn, du weißt, was du tust.";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Enable YTSpeed"; "YT_SPEED" = "Enable YTSpeed";
"YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required."; "YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX" = "Enable FLEX";
"ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing.";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Activar YTSpeed"; "YT_SPEED" = "Activar YTSpeed";
"YT_SPEED_DESC" = "Activa YTSpeed para tener más opciones de velocidad de reproducción. Es necesario reiniciar la aplicación."; "YT_SPEED_DESC" = "Activa YTSpeed para tener más opciones de velocidad de reproducción. Es necesario reiniciar la aplicación.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Habilitar FLEX"; "ENABLE_FLEX" = "Habilitar FLEX";
"ENABLE_FLEX_DESC" = "Habilitar FLEX para depuración (no recomendado). Déjelo desactivado a menos que sepa lo que está haciendo"; "ENABLE_FLEX_DESC" = "Habilitar FLEX para depuración (no recomendado). Déjelo desactivado a menos que sepa lo que está haciendo";

View file

@ -98,6 +98,9 @@
"YT_SPEED" = "Activer YTSpeed"; "YT_SPEED" = "Activer YTSpeed";
"YT_SPEED_DESC" = "Activez YTSpeed pour avoir plus d'options de vitesse de lecture. Un redémarrage de l'application est requis."; "YT_SPEED_DESC" = "Activez YTSpeed pour avoir plus d'options de vitesse de lecture. Un redémarrage de l'application est requis.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Activer FLEX"; "ENABLE_FLEX" = "Activer FLEX";
"ENABLE_FLEX_DESC" = "Activez FLEX pour le débogage (non recommandé). Laissez cette option désactivée, sauf si vous savez ce que vous faites."; "ENABLE_FLEX_DESC" = "Activez FLEX pour le débogage (non recommandé). Laissez cette option désactivée, sauf si vous savez ce que vous faites.";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "YTSpeedを有効化"; "YT_SPEED" = "YTSpeedを有効化";
"YT_SPEED_DESC" = "より多くの再生速度を選択できるようになります。アプリの再起動が必要です。"; "YT_SPEED_DESC" = "より多くの再生速度を選択できるようになります。アプリの再起動が必要です。";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "FLEXを有効化"; "ENABLE_FLEX" = "FLEXを有効化";
"ENABLE_FLEX_DESC" = "デバッグ用のFLEXを有効化します(推奨しません) \n何をやっているのか分からない場合はオフにしてください。"; "ENABLE_FLEX_DESC" = "デバッグ用のFLEXを有効化します(推奨しません) \n何をやっているのか分からない場合はオフにしてください。";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Enable YTSpeed"; "YT_SPEED" = "Enable YTSpeed";
"YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required."; "YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX" = "Enable FLEX";
"ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing.";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Activare YTSpeed"; "YT_SPEED" = "Activare YTSpeed";
"YT_SPEED_DESC" = "Activați YTSpeed pentru a avea mai multe opțiuni pentru viteza redării. Este necesară repornirea aplicației."; "YT_SPEED_DESC" = "Activați YTSpeed pentru a avea mai multe opțiuni pentru viteza redării. Este necesară repornirea aplicației.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Activare FLEX"; "ENABLE_FLEX" = "Activare FLEX";
"ENABLE_FLEX_DESC" = "Activați FLEX pentru depanare (nerecomandat). Lăsați această opțiune dezactivată dacă nu știți ce faceți."; "ENABLE_FLEX_DESC" = "Activați FLEX pentru depanare (nerecomandat). Lăsați această opțiune dezactivată dacă nu știți ce faceți.";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Enable YTSpeed"; "YT_SPEED" = "Enable YTSpeed";
"YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required."; "YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX" = "Enable FLEX";
"ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing.";

View file

@ -110,6 +110,9 @@ https://github.com/PoomSmart/Return-YouTube-Dislikes/tree/main/layout/Library/Ap
"YT_SPEED" = "Enable YTSpeed"; "YT_SPEED" = "Enable YTSpeed";
"YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required."; "YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX" = "Enable FLEX";
"ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing.";

View file

@ -95,6 +95,9 @@
"YT_SPEED" = "Enable YTSpeed"; "YT_SPEED" = "Enable YTSpeed";
"YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required."; "YT_SPEED_DESC" = "Enable YTSpeed to have more Playback Speed Options. App restart is required.";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "Enable FLEX"; "ENABLE_FLEX" = "Enable FLEX";
"ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing."; "ENABLE_FLEX_DESC" = "Enable FLEX for debugging (not recommended). Leave this off unless you know what you are doing.";

View file

@ -93,6 +93,9 @@
"YT_SPEED" = "啟用 YTSpeed"; "YT_SPEED" = "啟用 YTSpeed";
"YT_SPEED_DESC" = "擁有更多種影片速度。重新啟動應用程式以套用變更。"; "YT_SPEED_DESC" = "擁有更多種影片速度。重新啟動應用程式以套用變更。";
"HIDE_HOME_TAB" = "Hide Home Tab";
"HIDE_HOME_TAB_DESC" = "Be careful when hiding all tabs";
"ENABLE_FLEX" = "啟用 FLEX不建議使用"; "ENABLE_FLEX" = "啟用 FLEX不建議使用";
"ENABLE_FLEX_DESC" = "如果不知道這是什麼,請勿啟用"; "ENABLE_FLEX_DESC" = "如果不知道這是什麼,請勿啟用";