修复提示信息中的许可证描述错误
一个简洁高效的浏览器起始页,创新型多引擎搜索框分布、支持自定义预设快捷方式以及搜索引擎和壁纸。
./ ├── index.html # 主页面结构 ├── style.css # 样式文件 ├── script.js # 交互逻辑(含安全防护模块) ├── search-engine.json # 搜索引擎配置 ├── quick-access.json # 快捷访问配置 ├── wallpaper.xml # 壁纸配置 ├── LICENSE # AGPLv3 许可证 └── README.md # 本文件
本项目支持通过修改配置文件来自定义内容,适用于以下场景:
部署使用请遵守项目许可证
定义所有可用的搜索引擎,支持预设和自定义。
{ "engines": [ { "id": 11, "title": "", "icon": "<svg>...</svg>", "url": "https://cn.bing.com/search?q={query}", "comment": "必应" } ] }
id
title
icon
url
{query}
%s
comment
定义右键菜单中的快捷方式列表。
[ { "id": 11, "title": "微软翻译", "icon": "<svg>...</svg>", "url": "https://bing.com/translator", "comment": "" } ]
定义可选的壁纸列表。
<?xml version="1.0" encoding="UTF-8"?> <wallpapers> <wallpaper id="11"> <title>Bubbles</title> <comment>彩色气泡</comment> <url>https://www.bing.com/th?id=OHR.BubblesAbraham_ZH-CN7203734882_1920x1080.jpg</url> </wallpaper> </wallpapers>
说明: 配置文件:预设内容,打包后不可更改(适合统一部署场景) localStorage:用户自定义内容,浏览器端实时生效(适合个人使用) 两者合并后呈现最终效果,自定义内容优先级更高
说明:
任选一种方案安装
控制面板 -> 程序 -> 程序和功能 -> 启用或关闭 Windows 功能 -> 勾选 “Internet Information Services” 复选框 -> 点击 确定 -> 等待完成,部分设备可能需要重新启动
Windows 服务器管理器 -> 右上角”管理” -> 添加角色和功能 -> 一直”下一页”到”服务器角色”(也可以直接点击”服务器选择”后点击”服务器角色”) -> 勾选 “Web 服务器” 复选框 -> 一直”下一步”到确认 -> 安装 -> 等待完成,部分设备可能需要重新启动
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -NoRestart
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
需要以管理员身份运行 PowerShell 执行上述命令。
左侧展开”计算机名” -> 左侧展开”网站” -> 如果 “Default Web Site” 是启动状态(图标只有地球没有方框),那么右键在菜单中点击停止(不建议删除) -> 右键左侧的”网站” -> 弹出的菜单中点击”添加网站” -> 物理路径选择一个记得住的位置 -> 点击”确定”(如果遇到了端口重复绑定的弹窗,点击”是”)
在上面选择的网站目录中使用git克隆仓库或下载压缩包解压到目录
在浏览器中使用 http://localhost 测试(如果更改了端口号则在URL添加端口号,如:http://localhost:8080)
http://localhost
http://localhost:8080
开放防火墙端口(对局域网开放)
# 安装 Apache sudo apt update sudo apt install apache2 # 启用必要模块 sudo a2enmod rewrite # 将项目复制到网站目录 sudo cp -r /path/to/project /var/www/html/ # 重启 Apache sudo systemctl restart apache2 # 开放防火墙端口 sudo ufw allow 80/tcp
# 安装 Apache sudo dnf install httpd # 启动并启用服务 sudo systemctl enable --now httpd # 将项目复制到网站目录 sudo cp -r /path/to/project /var/www/html/ # 设置权限 sudo chmod -R 755 /var/www/html/project # 重启 Apache sudo systemctl restart httpd # 开放防火墙端口 sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --reload
htdocs
httpd.conf
# 使用 Homebrew 安装 brew install httpd # 启动 Apache sudo brew services start httpd # 将项目复制到文档根目录 sudo cp -r /path/to/project /Library/WebServer/Documents/ # 访问 http://localhost 测试
# 安装 Nginx sudo apt update sudo apt install nginx # 将项目复制到网站目录 sudo cp -r /path/to/project /var/www/html/ # 创建配置文件 sudo tee /etc/nginx/sites-available/project << 'EOF' server { listen 80; server_name localhost; root /var/www/html/project; index index.html; location / { try_files $uri $uri/ /index.html; } } EOF # 启用配置 sudo ln -s /etc/nginx/sites-available/project /etc/nginx/sites-enabled/ # 测试并重启 sudo nginx -t sudo systemctl restart nginx # 开放防火墙端口 sudo ufw allow 80/tcp
# 安装 Nginx sudo dnf install nginx # 启动并启用服务 sudo systemctl enable --now nginx # 将项目复制到网站目录 sudo cp -r /path/to/project /usr/share/nginx/html/ # 创建配置文件 sudo tee /etc/nginx/conf.d/project.conf << 'EOF' server { listen 80; server_name localhost; root /usr/share/nginx/html/project; index index.html; location / { try_files $uri $uri/ /index.html; } } EOF # 测试并重启 sudo nginx -t sudo systemctl restart nginx # 开放防火墙端口 sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --reload
html
conf/nginx.conf
nginx.exe
# 使用 Homebrew 安装 brew install nginx # 将项目复制到文档根目录 sudo cp -r /path/to/project /usr/local/var/www/ # 启动 Nginx brew services start nginx # 访问 http://localhost:8080 测试(默认端口 8080)
本项目基于 AGPLv3 开源协议,详见 LICENSE 文件。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
HarmonyMagic 起始页
一个简洁高效的浏览器起始页,创新型多引擎搜索框分布、支持自定义预设快捷方式以及搜索引擎和壁纸。
仓库镜像
功能特性
多引擎搜索
快捷访问
壁纸设置
项目文件结构
配置文件
本项目支持通过修改配置文件来自定义内容,适用于以下场景:
search-engine.json - 搜索引擎配置
定义所有可用的搜索引擎,支持预设和自定义。
字段说明:
idtitleiconurl{query}或%s为搜索词占位符commentquick-access.json - 快捷访问配置
定义右键菜单中的快捷方式列表。
字段说明:
idtitleiconurlcommentwallpaper.xml - 壁纸配置
定义可选的壁纸列表。
字段说明:
idtitlecommenturl技术实现
浏览器支持
项目部署
IIS(Internet Information Services)
安装
任选一种方案安装
图形化
Windows 桌面版(Vista/7/8/8.1/10/11)
Windows Server(2012 R2/2016/2019/2022/2025)
PowerShell
Windows 桌面版(10/11)
Windows Server(2012 R2/2016/2019/2022/2025)
部署
Apache
Linux(Ubuntu/Debian)
Linux(Red Hat 系 / CentOS Stream / Rocky Linux / AlmaLinux)
Windows
htdocs目录httpd.conf配置网站根目录(可选)http://localhost测试macOS
Nginx
Linux(Ubuntu/Debian)
Linux(Red Hat 系 / CentOS Stream / Rocky Linux / AlmaLinux)
Windows
html目录conf/nginx.conf配置网站根目录(可选)nginx.exehttp://localhost测试macOS
许可证
本项目基于 AGPLv3 开源协议,详见 LICENSE 文件。