mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Improve readability and added “Hide Ask Button”.
Previously, I added hide Hype button, next I have added the hide Ask button, but as usual it may not work because of the lack of an identifier, also updated the code’s readability to note which button has an missing or unidentified identifier. It is still possible to hide them if the identifiers to the buttons exist.
This commit is contained in:
parent
da0036982e
commit
b6ffbd2fce
1 changed files with 13 additions and 12 deletions
|
|
@ -123,22 +123,23 @@ static NSDictionary<NSString *, NSString *> *HideToggleMap(void) {
|
|||
map = @{
|
||||
// identifiers
|
||||
@"id.video.share.button": @"hideShareButton_enabled",
|
||||
@"id.ui.add_to.offline.button": @"hideDownloadButton_enabled",
|
||||
@"id.video.remix.button": @"hideRemixButton_enabled",
|
||||
@"clip_button.eml": @"hideClipButton_enabled",
|
||||
@"id.ui.add_to.offline.button": @"hideDownloadButton_enabled",
|
||||
@"id.ui.carousel_header": @"hideCommentSection_enabled",
|
||||
// fallbacks
|
||||
@"Share": @"hideShareButton_enabled",
|
||||
@"Remix": @"hideRemixButton_enabled",
|
||||
@"Clip": @"hideClipButton_enabled",
|
||||
@"Download": @"hideDownloadButton_enabled",
|
||||
@"Save to playlist": @"hideSaveToPlaylistButton_enabled",
|
||||
@"Report": @"hideReportButton_enabled",
|
||||
@"Hype": @"hideHypeButton_enabled",
|
||||
@"Thanks": @"hideThanksButton_enabled",
|
||||
@"connect account": @"hideConnectButton_enabled",
|
||||
@"Like": @"hideLikeButton_enabled",
|
||||
@"Dislike": @"hideDislikeButton_enabled"
|
||||
@"Like": @"hideLikeButton_enabled", // unidentified identifier
|
||||
@"Dislike": @"hideDislikeButton_enabled" // unidentified identifier
|
||||
@"Share": @"hideShareButton_enabled", // Share Button
|
||||
@"Ask": @"hideAskButton_enabled", // unidentified identifier
|
||||
@"Download": @"hideDownloadButton_enabled", // Download Button
|
||||
@"Hype": @"hideHypeButton_enabled", // unidentified identifier
|
||||
@"Thanks": @"hideThanksButton_enabled", // unidentified identifier
|
||||
@"Remix": @"hideRemixButton_enabled", // Remix Button
|
||||
@"Clip": @"hideClipButton_enabled", // Clip Button
|
||||
@"Save to playlist": @"hideSaveToPlaylistButton_enabled", // unidentified identifier
|
||||
@"Report": @"hideReportButton_enabled", // unidentified identifier
|
||||
@"connect account": @"hideConnectButton_enabled" // unidentified identifier
|
||||
};
|
||||
});
|
||||
return map;
|
||||
|
|
|
|||
Loading…
Reference in a new issue