# Browser **Repository Path**: yztwenyang/browser ## Basic Information - **Project Name**: Browser - **Description**: master 分支,开源浏览器原来分支;dev分支,根据开源浏览器master分支修改UI和添加浏览器记录和拦截功能,BrowserFileUtil - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-12 - **Last Updated**: 2025-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Yuzu browser [![license](https://img.shields.io/github/license/hazuki0x0/YuzuBrowser.svg)](http://www.apache.org/licenses/LICENSE-2.0)  Stable: [![GitHub release](https://img.shields.io/github/release/hazuki0x0/YuzuBrowser.svg)](https://play.google.com/store/apps/details?id=jp.hazuki.yuzubrowser)  Latest: [![GitHub release](https://img.shields.io/github/v/release/hazuki0x0/YuzuBrowser?include_prereleases)](https://github.com/hazuki0x0/YuzuBrowser/releases) Yuzu browser is an open source power full web browser. You can create your own browser using custom UI and custom buttons. This browser based on Mikan Browser. ## Download and install **Android 6.0 or higher is required.** Or prebuilt apk file is here https://github.com/Hazuki0x0/YuzuBrowser/releases ## Theme Yuzu Browser supports custom theme. You can create custom theme with [theme creator app](https://play.google.com/store/apps/details?id=jp.hazuki.yuzubrowser.themecreator). You can use it if you have the theme of Mikan Browser. However, as the theme has been expanded, not all displays change. #### New theme pack sample for version 2.3 or later Just download the theme pack and tap it to import! You can unzip and edit this theme. [Theme material dark](https://github.com/hazuki0x0/YuzuBrowser/releases/download/v3.1.1/theme_material_dark.yuzutheme) (default theme) [Theme material light](https://github.com/hazuki0x0/YuzuBrowser/releases/download/v3.1.1/theme_material_light.yuzutheme) > Aug. 14, 2017 update for 3.1.1 ##### Classic theme sample For versions prior to version 2.3 For installation method and specifications, please check the Readme.txt in the archive. You should use new theme pack if you are using version 2.3 or later [Theme material dark](https://github.com/Hazuki0x0/YuzuBrowser/releases/download/v1.1.0/yuzu_theme_material_dark.zip) [Theme material light](https://github.com/Hazuki0x0/YuzuBrowser/releases/download/v1.1.0/yuzu_theme_material_light.zip) ## Contributing Contributions are always welcome TL;DR - Create an issue (except for minor fixes and additional translations/translation fixes). - Create a branch for your patch. - Create a pull request on the dev branch. Details are in [Contributing.md](https://github.com/hazuki0x0/YuzuBrowser/blob/dev/Contributing.md) ## Build $ git clone https://github.com/Hazuki0x0/YuzuBrowser.git $ cd YuzuBrowser $ ./gradlew build ## License Copyright (C) 2017-2021 Hazuki Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. *********************************相关功能代码说明********************************* 1、MainSettingsActivity 设置页面 2、WebClient 跳转 loadUrl 拦截 fun loadUrl(tab: MainTabData, url: String, handleOpenInBrowser: Boolean) 3、search_seach_bar.xml 搜索 4、CustomWebChromeClient 5、BrowserController 6、ActionIconManager 7、Toolbar 顶部和底部UI BrowserToolbarManager addSingleToolbarView(i, urlBar, isPortrait) 顶部搜索UI UrlBarBase 顶部UI CustomToolbarBase 底部UI 8、ActionExecutor 按钮点击事件 GO_BACK GO_FORWARD showMenu 菜单 GO_HOME 主页 SHOW_HISTORY 历史记录 SHOW_DOWNLOADS 下载列表 SHOW_SETTINGS 设置 SHOW_SEARCHBOX 搜索 SHOW_BOOKMARK 底部中间 showSearchBox query:,,,target:0,,,openTabType:0,,,reverse:false 中间搜索 run id:35000 showSearchBox query:yuzu:speeddial,,,target:0,,,openTabType:0,,,reverse:false 顶部搜索 9、SearchActivity 搜索 10、SpeedDialHtml 首页UI 11、ActionIconManager 图标管理 12、底部菜单 MenuWindow MenuActionManager 13、ActionNameArray 14、AppData 按钮Action数据 15、TAB_LIST 显示已打开的页面 16、ResourceBlockListFragment 管理资源拦截 /data/user/0/jp.hazuki.yuzubrowser.debug/app_resblock1/1.dat 17、TabListLayout 主页底部主页列表弹窗 18、BrowserFileUtil 浏览记录和url拦截管理 1、配置拦截-数据格式 storage/emulated/0/Android/data/com.ps.browser/files/Intercept.json {"isBalack":true,"urlList":[{"url":"https://www.baidu.com"},{"url":"https://www.goodle.com"}]} 黑名单:isBalack-true 白名单:isBalack-false 2、浏览记录-数据格式 storage/emulated/0/Android/data/com.ps.browser/files/Record.json [{"tille":"香港 - 百度","url":"https://www.baidu.com/s?wd\u003d%E9%A6%99%E6%B8%AF"}, {"tille":"中国澳门 - 百度","url":"https://www.baidu.com/s?wd\u003d%E4%B8%AD%E5%9B%BD%E6%BE%B3%E9%97%A8"}, {"tille":"深圳 - 百度","url":"https://www.baidu.com/s?wd\u003d%E6%B7%B1%E5%9C%B3"}, {"tille":"贵州 - 百度","url":"https://www.baidu.com/s?wd\u003d%E8%B4%B5%E5%B7%9E"}, {"tille":"惠州 - 百度","url":"https://www.baidu.com/s?wd\u003d%E6%83%A0%E5%B7%9E"}]