├── Assets ├── OFGB.png └── icon.ico ├── Build Tools ├── build win-x64.bat ├── build win-arm64.bat ├── build win-x64 selfcontained.bat └── build win-arm64 selfcontained.bat ├── AssemblyInfo.cs ├── App.xaml.cs ├── App.xaml ├── OFGB.csproj ├── OFGB.sln ├── LICENSE ├── README.md ├── MainWindow.xaml ├── .gitignore ├── MainWindow.xaml.cs └── dark.xaml /Assets/OFGB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TOP-01/OFGB_win11/HEAD/Assets/OFGB.png -------------------------------------------------------------------------------- /Assets/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TOP-01/OFGB_win11/HEAD/Assets/icon.ico -------------------------------------------------------------------------------- /Build Tools/build win-x64.bat: -------------------------------------------------------------------------------- 1 | cd /d %~dp0 2 | cd .. 3 | dotnet publish -c Release -r win-x64 --self-contained false /p:PublishSingleFile=true -------------------------------------------------------------------------------- /Build Tools/build win-arm64.bat: -------------------------------------------------------------------------------- 1 | cd /d %~dp0 2 | cd .. 3 | dotnet publish -c Release -r win-arm64 --self-contained false /p:PublishSingleFile=true -------------------------------------------------------------------------------- /Build Tools/build win-x64 selfcontained.bat: -------------------------------------------------------------------------------- 1 | cd /d %~dp0 2 | cd .. 3 | dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true -------------------------------------------------------------------------------- /Build Tools/build win-arm64 selfcontained.bat: -------------------------------------------------------------------------------- 1 | cd /d %~dp0 2 | cd .. 3 | dotnet publish -c Release -r win-arm64 --self-contained true /p:PublishSingleFile=true -------------------------------------------------------------------------------- /AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | [assembly: ThemeInfo( 4 | ResourceDictionaryLocation.None, 5 | ResourceDictionaryLocation.SourceAssembly 6 | )] 7 | -------------------------------------------------------------------------------- /App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System.Windows; 2 | 3 | namespace OFGB 4 | { 5 | /// 6 | /// Interaction logic for App.xaml 7 | /// 8 | public partial class App : Application 9 | { 10 | 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /OFGB.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | WinExe 4 | net8.0-windows7.0 5 | enable 6 | true 7 | 7.0 8 | Assets\icon.ico 9 | true 10 | true 11 | None 12 | False 13 | true 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | Always 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /OFGB.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio Version 17 3 | VisualStudioVersion = 17.6.33815.320 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OFGB", "OFGB.csproj", "{493D1790-F67D-45E3-9CD8-D880FB1E05E3}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Any CPU = Debug|Any CPU 10 | Release|Any CPU = Release|Any CPU 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {493D1790-F67D-45E3-9CD8-D880FB1E05E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 14 | {493D1790-F67D-45E3-9CD8-D880FB1E05E3}.Debug|Any CPU.Build.0 = Debug|Any CPU 15 | {493D1790-F67D-45E3-9CD8-D880FB1E05E3}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | {493D1790-F67D-45E3-9CD8-D880FB1E05E3}.Release|Any CPU.Build.0 = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(SolutionProperties) = preSolution 19 | HideSolutionNode = FALSE 20 | EndGlobalSection 21 | GlobalSection(ExtensibilityGlobals) = postSolution 22 | SolutionGuid = {27FFC424-4579-463D-8E36-F5404D07E39B} 23 | EndGlobalSection 24 | EndGlobal 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 广告滚蛋软件截图 3 |

4 | 5 | # 广告滚蛋 (OFGB Chinese Translation) 6 | 这是原 [**OFGB**](https://github.com/xM4ddy/OFGB) 软件的汉化版。 7 | 8 | 在2024年4月23日,微软发布了 [KB5036980 更新](https://support.microsoft.com/zh-cn/topic/5a0d6c49-e42e-4eb4-8541-33a7139281ed),给 Windows 11 系统的文件管理器、开始菜单等组件添加了广告。本软件通过修改 [Windows 注册表](https://baike.baidu.com/item/%E6%B3%A8%E5%86%8C%E8%A1%A8) 来关闭这些广告。软件是用 C# 编写的,界面用 [WPF](https://baike.baidu.com/item/WPF) 制作。 9 | 10 | ## 先说感谢: 11 | - [各注册表键及其功能说明](https://github.com/xM4ddy/OFGB/blob/92756276178137bb78d7c563733dde0d24f13aff/MainWindow.xaml.cs#L33) 以及制作该软件的灵感,全都来自 [Shawn Brink](https://www.elevenforum.com/members/brink.2/) 和他 [精妙绝伦的脚本](https://www.elevenforum.com/t/disable-ads-in-windows-11.8004/)。 12 | - [软件的 UI 主题](https://github.com/xM4ddy/OFGB/blob/main/dark.xaml) 很大一部分都来自这个非常炫酷的项目,[Aldaviva](https://github.com/Aldaviva) 的 [DarkNet](https://github.com/Aldaviva/DarkNet)。 13 | - **以及整个汉化版的基础,[xM4ddy](https://github.com/xM4ddy) 制作的 [OFGB 原版软件](https://github.com/xM4ddy/OFGB)** 14 | 15 | ## 下载 16 | [点击下载软件最新版](https://github.com/zetaloop/OFGB/releases/latest),或者前往网页右侧的 "Releases" 发布页。 17 | 18 | ## 构建 19 | 构建 OFGB 需要 [Visual Studio](https://visualstudio.microsoft.com/zh-hans/) 和 [.NET 8.0 SDK](https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0)。 20 | 21 | 1. 克隆/下载该储存库,可以用 `git clone https://github.com/zetaloop/OFGB`,也可以直接下载项目 ZIP 压缩包。 22 | 2. 在 Visual Studio 中打开解决方案文件。 23 | 3. 按快捷键 `Ctrl + Shift + B` 或点击 `生成 > 生成解决方案` 来构建软件。 24 | 25 | ## 贡献 26 | 如果发现了任何软件 Bug 或者有任何建议,欢迎 [给 OFGB 原版软件创建议题](https://github.com/xM4ddy/OFGB/issues) 或 [发布讨论](https://github.com/xM4ddy/OFGB/discussions)。 27 | 汉化问题请 [给 zetaloop 创建议题](https://github.com/zetaloop/OFGB/issues)。 28 | 29 | ## 此外 30 | - 感谢大家对该项目(包括汉化以及原软件)的关注与支持!❤️ 31 | 32 | - 注意该软件只在 GitHub 发布!其他网站与我们无关,从其他地方下载该软件可能有风险。 33 | 34 | - 不想折腾这堆烂摊子?试试 Linux 吧! 35 | -------------------------------------------------------------------------------- /MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 19 | 20 | 21 | 22 |