Chrome
下载
直接下载
带自动更新:https://www.google.cn/chrome
Windows 64 位 Stable 正式版离线安装包:https://www.google.com/chrome/?platform=win64&extra=stablechannel&standalone=1
其他方式下载
https://github.com/Bush2021/chrome_installer & https://chrome.noki.icu & https://chrome.noki.eu.org
使用 PowerShell 脚本下载(https://github.com/TkYu/PowerShellScripts):
Chrome.ps1

if($ENV:OS -ne 'Windows_NT') { Write-Host 'Windows Plz!' -ForegroundColor Red return } if($PSVersionTable.PSVersion.Major -lt 3) { Write-Host "I need PowerShell major version >= 3, Current is $($PSVersionTable.PSVersion.Major)" -ForegroundColor Red return } $installLocation = $env:ggdir $arch = $env:ggarch $branch = $env:ggbranch $ggApi = 'https://api.pzhacm.org/iivb/cu.json' if($PSVersionTable.PSVersion.Major -lt 5) { if (-not ([System.Management.Automation.PSTypeName]'Branch').Type) { Add-Type -TypeDefinition @" public enum Branch { Stable, Beta, Dev, Canary } "@ } } else { Enum Branch { Stable Beta Dev Canary } } # $arch check if ([string]::IsNullOrEmpty($arch)) { if($ENV:PROCESSOR_ARCHITECTURE -eq 'AMD64') { $arch = 'x64' } else { $arch = 'x86' } } # $installLocation check if ([string]::IsNullOrEmpty($installLocation)) { $installLocation = (Resolve-Path .\).Path } # $branch check switch ($branch) { 'canary' {$branch = [Branch]::Canary} 'dev' {$branch = [Branch]::Dev} 'beta' {$branch = [Branch]::Beta} default {$branch = [Branch]::Stable} } #if([Enum]::Getvalues([Branch]) -contains $branch) { # $Branch = [Enum]::Parse([Type]"Branch",$branch) #} Write-Host "Current branch is " -NoNewline -ForegroundColor DarkYellow Write-Host $branch -ForegroundColor Green if ($env:TEMP -eq $null) { $env:TEMP = Join-Path $installLocation 'temp' } function Check-InstallLocation { if((Test-Path $installLocation)){ if((Test-Path "$installLocation\chrome.exe")){ $onlineVersion = [System.Version]($JSON.$branch.$arch.version) $localVersion = (Get-Item "$installLocation\chrome.exe").VersionInfo.FileVersion if($onlineVersion -gt $localVersion){ Write-Host "Online version is " -NoNewline Write-Host $onlineVersion -NoNewline -ForegroundColor Green Write-Host ", Local version is " -NoNewline Write-Host $localVersion -NoNewline -ForegroundColor Yellow Write-Host ', let`s update!' } else { Write-Host "You have the latest version($localVersion)/$branch/$arch" -ForegroundColor Green return $false } } else { if(-Not ((Get-ChildItem $installLocation | Measure-Object).Count -eq 0)){ Write-Host 'I need an empty folder!' -ForegroundColor Red #return $false } } } else { Write-Host "Create directory $installLocation" -ForegroundColor Yellow New-Item -ItemType Directory -Force -Path $installLocation | Out-Null } return $true } function Download-String { param ([string]$url) $downloader = new-object System.Net.WebClient $defaultCreds = [System.Net.CredentialCache]::DefaultCredentials if ($defaultCreds -ne $null) { $downloader.Credentials = $defaultCreds } $downloader.Proxy = [System.Net.GlobalProxySelection]::GetEmptyWebProxy() return $downloader.DownloadString($url) } function Download-File { param ([string]$url, [string]$targetFile) # https://blogs.msdn.microsoft.com/jasonn/2008/06/13/downloading-files-from-the-internet-in-powershell-with-progress/ $uri = New-Object "System.Uri" "$url" $request = [System.Net.HttpWebRequest]::Create($uri) $request.Proxy = [System.Net.GlobalProxySelection]::GetEmptyWebProxy() $request.Timeout = 200000 #200 second timeout $response = $request.GetResponse() $totalLength = [System.Math]::Floor($response.get_ContentLength()/1024) $responseStream = $response.GetResponseStream() $targetStream = New-Object -TypeName System.IO.FileStream -ArgumentList $targetFile, Create $buffer = new-object byte[] 256KB $count = $responseStream.Read($buffer,0,$buffer.length) $downloadedBytes = $count while ($count -gt 0) { $targetStream.Write($buffer, 0, $count) $count = $responseStream.Read($buffer,0,$buffer.length) $downloadedBytes = $downloadedBytes + $count Write-Progress -activity "Downloading file '$($url.split('/') | Select -Last 1)'" -status "Downloaded ($([System.Math]::Floor($downloadedBytes/1024))K of $($totalLength)K): " -PercentComplete ((([System.Math]::Floor($downloadedBytes/1024)) / $totalLength) * 100) } Write-Progress -activity "Finished downloading file '$($url.split('/') | Select -Last 1)'" -Status "Ready" -Completed $targetStream.Flush() $targetStream.Close() $targetStream.Dispose() $responseStream.Dispose() } function Extract-File { param ([string]$fileName, [string]$dest) # WARNING: this function copy from chocolatey.org install.ps1 # Write-Host "Extract $fileName to $dest" -ForegroundColor Yellow Write-Host "Extracting $($fileName.split('\') | Select -Last 1)" -ForegroundColor Yellow $7zaExe = Join-Path $env:TEMP '7za.exe' if (-Not (Test-Path ($7zaExe))) { Write-Output "Downloading 7-Zip commandline tool prior to extraction." Download-File 'https://chocolatey.org/7za.exe' "$7zaExe" } $params = "x -o`"$dest`" -bd -y `"$fileName`"" $process = New-Object System.Diagnostics.Process $process.StartInfo = New-Object System.Diagnostics.ProcessStartInfo($7zaExe, $params) $process.StartInfo.RedirectStandardOutput = $true $process.StartInfo.UseShellExecute = $false $process.StartInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Hidden $process.Start() | Out-Null $process.BeginOutputReadLine() $process.WaitForExit() $exitCode = $process.ExitCode $process.Dispose() $errorMessage = "Unable to unzip package using 7zip. Error:" switch ($exitCode) { 0 { break } 1 { throw "$errorMessage Some files could not be extracted" } 2 { throw "$errorMessage 7-Zip encountered a fatal error while extracting the files" } 7 { throw "$errorMessage 7-Zip command line error" } 8 { throw "$errorMessage 7-Zip out of memory" } 255 { throw "$errorMessage Extraction cancelled by the user" } default { throw "$errorMessage 7-Zip signalled an unknown error (code $exitCode)" } } } function Remove-IfExists { param ([string]$file) if(Test-Path $file) { Remove-Item $file } } function Remove-Old-Chrome { $localVersion = (Get-Item "$installLocation\chrome.exe").VersionInfo.FileVersion Remove-IfExists "$installLocation\$localVersion" Remove-IfExists "$installLocation\chrome.exe" Remove-IfExists "$installLocation\chrome_proxy.exe" } function Download-Chrome { $chrome7z = Join-Path $installLocation 'chrome.7z' $url = $JSON.$branch.$arch.cdn $downloadFileName = Join-Path $installLocation $($url.split('/') | Select -Last 1) Download-File $url $downloadFileName if(-Not (Test-Path $downloadFileName)) { Write-Host 'Chrome Download Fail!' -ForegroundColor Red return } $hash = (Get-FileHash $downloadFileName -Algorithm SHA256).Hash if($hash -ne $JSON.$branch.$arch.sha256) { Write-Host "SHA256 not match!" -ForegroundColor Red Remove-IfExists $downloadFileName return } Extract-File $downloadFileName $installLocation Extract-File $chrome7z $installLocation Remove-Old-Chrome Remove-IfExists $chrome7z Move-Item "$installLocation\Chrome-bin\*" -Destination $installLocation Remove-IfExists "$installLocation\Chrome-bin" Remove-IfExists $downloadFileName Write-Host 'Chrome Download Finished' -ForegroundColor Green } Write-Host "" try { $JSON = Download-String $ggApi | ConvertFrom-Json } catch { Write-Host 'Get Chrome versions failed!' -ForegroundColor Red return } if(Check-InstallLocation) { Download-Chrome } else { Write-Host 'Chrome download skipped' -ForegroundColor Yellow } # $updaterpath = Join-Path $installLocation 'Update.cmd' # if(-Not(Test-Path $updaterpath)){ # $lower = $branch.ToString().ToLower() # $updateps = "@SET `"ggbranch=$lower`" && @SET `"ggarch=$arch`" && " + ('@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy AllSigned -Command "iex ((New-Object System.Net.WebClient).DownloadString(''https://raw.githubusercontent.com/TkYu/PowerShellScripts/master/ChromeDownload/Chrome.ps1''))"') # '@echo Checking Chrome update. Sit back and relax.', $updateps, "@pause" -join "`r`n" | Out-File -Encoding "Default" $updaterpath # } cmd /c "pause"
Powershell 文本替换

# Powershell 替换文件夹内所有文件中的字符串 Get-ChildItem -Recurse -File | ForEach-Object { (Get-Content $_).replace('#include <a/b/c/def.hpp>', '#include "def.hpp"') | Set-Content $_ } Get-ChildItem -Recurse -File | ForEach-Object { (Get-Content $_)-replace('(?<=#include ).*\/([^>]+)>', '"$1"') | Set-Content $_ } # Powershell 替换指定文件中的字符串 (Get-Content Update.cmd).replace('raw.githubusercontent.com/TkYu/PowerShellScripts', 'gitee.com/jhxxb/PowerShellScripts/raw') | Set-Content Update.cmd
使用
关于此 flash player 与你的地区不相容
从 30(PPAPI) 版本开始就会出现提示。要么换回老版本,要么安装修改版的新版本。
打开 chrome://version/,查看 Flash 项中 pepflashplayer.dll 文件的地址。需要替换两个文件 manifest.json 和 pepflashplayer.dll
安装 Flash 后会在 C:\Windows\System32\Macromed\Flash 或 C:\Windows\SysWOW64\Macromed\Flash 目录下找到文件,重命名替换到 chrome 即可。
Flash_Player_v29.0.0.171_x64_Final_PPAPI_Plugins.7z
https://www.423down.com/2082.html
翻译

142.251.1.90 translate.googleapis.com 142.251.1.90 translate-pa.googleapis.com #108.177.97.100 translate.googleapis.com #216.239.32.40 translate.googleapis.com #74.125.196.113 translate.googleapis.com #64.233.189.191 translate.googleapis.com #142.251.173.90 translate.googleapis.com #216.239.32.40 translate.googleapis.com #142.250.145.90 translate.googleapis.com #142.250.1.90 translate.googleapis.com #172.217.218.90 translate.googleapis.com #108.177.126.90 translate.googleapis.com
https://github.com/GoodCoder666/GoogleTranslate_IPFinder
gtranslate.cdn.haah.net 是 translate.googleapis.com 的代理
chrome.exe --user-data-dir=Data --translate-security-origin=https://gtranslate.cdn.haah.net --translate-script-url=https://gtranslate.cdn.haah.net/translate_a/element.js
启动参数
创建 chrome 快捷方式,打开属性添加。
# 设置用户目录 https://chromium.googlesource.com/chromium/src/+/HEAD/docs/user_data_dir.md --user-data-dir="User Data" # 设置代理 --proxy-server=https://cppcoding.site --host-resolver-rules="MAP cppcoding.site xxx.xxx.xxx.xxx"
扩展插件
Chrono 下载管理器 https://chrome.google.com/webstore/detail/chrono-download-manager/mciiogijehkdemklbdcbfkefimifhecn
Proxy SwitchyOmega https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif
Restlet Client(类似 Postman) https://chrome.google.com/webstore/detail/restlet-client-rest-api-t/aejoelaoggembcahagimdiliamlcdmfm
Aria2 for Chrome https://chrome.google.com/webstore/detail/aria2-for-chrome/mpkodccbngfoacfalldjimigbofkhgjn
CodeTree(方便浏览 GitHub 与 Gitee) https://chrome.google.com/webstore/detail/keecdmdfhddgmiclpcmhgeamfaecamll
Vysor(Android 投屏) https://chrome.google.com/webstore/detail/vysor/gidgenkbbabolejbgbpnhbimgjbffefm
WEB 前端助手(FeHelper) https://chrome.google.com/webstore/detail/pkgccpejnmalmdinmhkkfafefagiiiad
Vimium(Vim 方式操作 Chrome) https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb
沙拉查词 https://chrome.google.com/webstore/detail/cdonnmffkdaoajfknoeeecmchibpmkmg
SetupXXX https://chrome.google.com/webstore/detail/oofgbpoabipfcfjapgnbbjjaenockbdp
Postman https://chrome.google.com/webstore/detail/fhbjgbiflinjbdggehcddcbncdddomop
IDM https://chrome.google.com/webstore/detail/ngpampappnmepgilojfohadhhmbhlaek
Replace Google CDN https://www.crx4chrome.com/extensions/kpampjmfiopfpkkepbllemkibefkiice
Header Editor:https://chrome.google.com/webstore/detail/eningockdidmgiojffjmkdblpjocbhgh
Redirector:https://chrome.google.com/webstore/detail/ocgpenflpmgnfapjedencafcfakcekcd

# https://servers.ustclug.org/2014/07/ustc-blog-force-google-fonts-proxy # https://github.com/dupontjoy/customization/tree/master/Rules/HeaderEditor fonts.googleapis.com -> fonts.lug.ustc.edu.cn ajax.googleapis.com -> ajax.lug.ustc.edu.cn themes.googleusercontent.com -> google-themes.lug.ustc.edu.cn fonts.gstatic.com -> fonts-gstatic.lug.ustc.edu.cn www.google.com/recaptcha/api.js -> recaptcha.net/recaptcha/api.js gstatic.com -> gstatic.cn
PC 桌面壁纸(非 Chrome 扩展):https://www.microsoft.com/en-us/bing/bing-wallpaper
https://crxdl.com & https://crxsoso.com
Android Chrome 启动参数
https://www.chromium.org/developers/how-tos/run-chromium-with-flags/#android
进入 chrome://flags/#enable-command-line-on-non-rooted-devices,打开 Enable command line on non-rooted devices,然后将启动参数写入 /data/local/tmp/chrome-command-line 文件(需adb权限)
adb pair 192.168.31.60:42627 #adb connect 192.168.31.60:40345 adb devices #adb -s emulator-5554 shell adb shell ls -la /data/local/tmp/ #adb shell mkdir -p /data/local/tmp/ adb push D:\chrome-command-line /data/local/tmp/ adb shell cat /data/local/tmp/chrome-command-line #adb shell chmod 755 /data/local/tmp/chrome-command-line #adb kill-server #taskkill /f /im adb.exe
参数第一个命令行项应该是 _(下划线),然后才是实际需要的命令行项,例如
_ --host-rules="MAP cdn.jsdelivr.net U0" --host-resolver-rules="MAP U0 104.16.89.20" --test-type --ignore-certificate-errors
或者
chrome --host-rules="MAP cdn.jsdelivr.net U0" --host-resolver-rules="MAP U0 104.16.89.20" --test-type --ignore-certificate-errors chromium-browser _ --host-rules="MAP cdn.jsdelivr.net U0" --host-resolver-rules="MAP U0 104.16.89.20" --test-type --ignore-certificate-errors
火狐
下载:https://ftp.mozilla.org/pub/firefox/releases
指定用户目录
firefox.exe -profile "D:\profile-My"
修改 UA,在 about:config 中添加
general.useragent.override:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
视频全屏会黑一下,在 about:config 中添加
full-screen-api.transition-duration.enter:0 0 full-screen-api.transition-duration.leave:0 0 full-screen-api.warning.timeout:0
代理:设置 -> 常规 -> 网络设置
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理