diff --git a/ContextMenuManager/BluePointLilac.Methods/UAWebClient.cs b/ContextMenuManager/BluePointLilac.Methods/UAWebClient.cs index 5f37c6f..9a17c38 100644 --- a/ContextMenuManager/BluePointLilac.Methods/UAWebClient.cs +++ b/ContextMenuManager/BluePointLilac.Methods/UAWebClient.cs @@ -18,7 +18,7 @@ namespace BluePointLilac.Methods this.Encoding = Encoding.UTF8; //远程服务器返回错误: (403) 已禁止 //浏览器 F12 console 输入 console.log(navigator.userAgent); 获取 User Agent - this.Headers.Add("User-Agent", + this.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " + "Chrome/90.0.4430.212 Safari/537.36 Edg/90.0.818.66"); } diff --git a/ContextMenuManager/Controls/Interfaces/ITsiTextItem.cs b/ContextMenuManager/Controls/Interfaces/ITsiTextItem.cs index 5035e07..664a17e 100644 --- a/ContextMenuManager/Controls/Interfaces/ITsiTextItem.cs +++ b/ContextMenuManager/Controls/Interfaces/ITsiTextItem.cs @@ -1,6 +1,5 @@ using BluePointLilac.Controls; using BluePointLilac.Methods; -using System; using System.Windows.Forms; namespace ContextMenuManager.Controls.Interfaces diff --git a/ContextMenuManager/Controls/ShellSubMenuDialog.cs b/ContextMenuManager/Controls/ShellSubMenuDialog.cs index cd1b18a..392c1cd 100644 --- a/ContextMenuManager/Controls/ShellSubMenuDialog.cs +++ b/ContextMenuManager/Controls/ShellSubMenuDialog.cs @@ -216,7 +216,7 @@ namespace ContextMenuManager.Controls { dlg.IsReference = true; dlg.ShellPath = ShellItem.CommandStorePath; - dlg.Filter = new Func(itemName => !(AppConfig.HideSysStoreItems + dlg.Filter = new Func(itemName => !(AppConfig.HideSysStoreItems && itemName.StartsWith("Windows.", StringComparison.OrdinalIgnoreCase))); if(dlg.ShowDialog() != DialogResult.OK) return; foreach(string keyName in dlg.SelectedKeyNames) diff --git a/ContextMenuManager/MainForm.cs b/ContextMenuManager/MainForm.cs index 06987db..f278311 100644 --- a/ContextMenuManager/MainForm.cs +++ b/ContextMenuManager/MainForm.cs @@ -18,10 +18,10 @@ namespace ContextMenuManager this.Text = AppString.General.AppName; this.ForeColor = Color.FromArgb(80, 80, 80); this.Controls.Add(new ExplorerRestarter()); - donateBox.Parent = aboutMeBox.Parent = dictionariesBox.Parent - = languagesBox.Parent = appSettingBox.Owner = shellList.Owner - = shellNewList.Owner = sendToList.Owner = openWithList.Owner - = winXList.Owner = guidBlockedList.Owner = enhanceMenusList.Owner + donateBox.Parent = aboutMeBox.Parent = dictionariesBox.Parent + = languagesBox.Parent = appSettingBox.Owner = shellList.Owner + = shellNewList.Owner = sendToList.Owner = openWithList.Owner + = winXList.Owner = guidBlockedList.Owner = enhanceMenusList.Owner = thirdRuleList.Owner = iEList.Owner = MainBody; ToolBar.SelectedButtonChanged += (sender, e) => SwitchTab(ToolBar.SelectedIndex); SideBar.HoverIndexChanged += (sender, e) => ShowItemInfo();