我可以在同一台机器上运行多个版本的谷歌浏览器吗?(Mac 或 Windows)

本文介绍了我可以在同一台机器上运行多个版本的谷歌浏览器吗?(Mac 或 Windows)的处理方法,对大家解决问题具有一定的参考价值

问题描述

这个绝妙的答案表明无法在一台机器上运行多个版本的 Google Chrome.

This fabulous answer suggests there’s no way to run multiple versions of Google Chrome on one machine.

您时不时地会遇到网站用户卡在旧版 Chrome 上的情况(不知道是怎么回事,但确实发生了 — 也许他们安装了 独立版本?)有问题,您需要能够验证它.如果没有浏览器版本,就很难做到这一点.

Every now and then you’ll get a website user stuck on an old version of Chrome (no idea how, but it happens — maybe they installed the standalone version?) with an issue, and you need to be able to verify it. Bit difficult to do that without their browser version around.

有谁知道是否真的有办法做到这一点?即

Does anyone know if there’s actually a way to do this? I.e.

  1. 获取旧版 Google Chrome 的安装程序(Google 似乎对版本保持沉默,这对用户来说非常有用,但对于试图支持旧版本的开发者来说不太好)
  2. 在一台机器上运行两个版本的谷歌浏览器

推荐答案

在评论中,我 提到 一种可轻松并行安装多个 Chrome 版本的分步方法.这个答案引用了我的原始答案,并包含一个脚本,可以为您完成这项工作.

In the comments, I mentioned a step-by-step method to easily install multiple Chrome versions, side-by-side. This answer quotes my original answer, and includes a script which does the job for you.

引自: 跨浏览器测试:一台机器上的所有主要浏览器:

Quoted from: section 7 of Cross-browser testing: All major browsers on ONE machine:

Chrome:可以从 File Hippo 下载独立安装程序一>.也可以运行多个 Chrome 版本并排.

Chrome: Stand-alone installers can be downloaded from File Hippo. It is also possible to run multiple Chrome versions side-by-side.

虽然可以使用 Sandboxie,但是建议使用 next native 方法以运行多个版本并排.

Although Sandboxie can be used, it's recommended to use the next native method in order to run multiple versions side-by-side.

  1. File Hippo 下载所需的版本.
  2. 创建一个主目录,例如C:Chrome.
  3. 提取安装程序(=不安装),使用7-Zip 例如.解压后,一个 chrome.7z 存档是创建.也提取这个文件,并下降创建的 Chrome-bin目录.现在,您会看到 chrome.exe 和类似 18.0.1025.45 的目录.把chrome.exe移动到18.0.1025.45,然后把这个目录移动到C:Chrome.Chrome-bin 中的剩余文件可以安全地已删除.
  4. 为每个版本创建一个快捷方式:

  1. Download the desired version(s) from File Hippo.
  2. Create a main directory, e.g. C:Chrome.
  3. Extract the installer (=without installing), using 7-Zip for example. After extracting, a chrome.7z archive is created. Also extract this file, and descend the created Chrome-bin directory. Now, you see chrome.exe and a dir like 18.0.1025.45. Move chrome.exe to 18.0.1025.45, then move this directory to C:Chrome. The remaining files in Chrome-bin can safely be deleted.
  4. Create a shortcut for each version:

"C:Chrome18.0.1024.45chrome.exe" --user-data-dir="..User Data18" --chrome-version=18.0.1025.45

这个快捷方式的解释:

  • "C:Chrome18.0.1024.45chrome.exe" •这是启动器
  • --user-data-dir="..User Data18" •用户配置文件,相对于 chrome.exe 的位置.你也可以有使用 --user-data-dir="C:ChromeUser Data18" 以获得相同的效果.最低 Chrome 版本设置首选项,并为每个 Chrome 版本复制用户配置文件.旧版 Chrome拒绝使用新版本的用户配置文件.
  • --chrome-version=18.0.1025.45 •二进制文件的位置:
    • 位置(例如 18.0.1025.45)必须是目录的名称:
    • 必须以数字开头和结尾.中间可能会出现一个点.
    • 数字不一定要与真实版本号匹配(尽管使用真实版本号很方便......).
    • "C:Chrome18.0.1024.45chrome.exe" • This is the launcher
    • --user-data-dir="..User Data18" • User profile, relative to the location of chrome.exe. You could also have used --user-data-dir="C:ChromeUser Data18" for the same effect. Set your preferences for the lowest Chrome version, and duplicate the User profile for each Chrome version. Older Chrome versions refuse to use User profiles from new versions.
    • --chrome-version=18.0.1025.45Location of binaries:
      • The location (eg 18.0.1025.45) must be the name of the directory:
      • Must start and end with a number. A dot may appear in between.
      • The numbers do not necessarily have to match the real version number (though it's convenient to use real version numbers...).

      关于配置:所有首选项都可以在chrome://settings/.我通常会更改主页和在引擎盖"设置.

      Regarding configuration: All preferences can be set at chrome://settings/. I usually change the home page and "Under the hood" settings.

      (此答案的旧版本指的是旧版 Chrome 的 Old Apps,但它们不再通过 UI 提供直接下载链接.这些文件仍然存在,我创建了一个 shell 脚本 (bash) 来简化 Chrome 版本本地存储库的创建 - 请参阅 https://gist.github.com/Rob--W/8577499)

      (the old version of this answer referred to Old Apps for old Chrome versions, but they do not offer direct download links any more through the UI. The files do still exist, I've created a shell script (bash) to ease the creation of a local repository of Chrome versions - see https://gist.github.com/Rob--W/8577499)

      创建了一个 VB 脚本,用于安装配置 Chrome(在 XP 和 Win 7 中测试).启动脚本,并出现一个文件对话框(或:将 chrome 安装程序拖放到 VBS 上).选择 Chrome 安装程序的目标位置,脚本会自动解压缩文件并从预先配置的基本目录中复制配置文件.

      I've created a VB script which installs and configures Chrome (tested in XP and Win 7). Launch the script, and a file dialog appears (or: Drag & drop the chrome installer on the VBS). Select the destination of the Chrome installer, and the script automatically unpacks the files and duplicates the profile from a pre-configured base directory.

      默认:

      1. Chrome 二进制文件位于 C:Chrome 的子文件夹中.
      2. 用户配置文件在 C:ChromeUser Data 中创建.
      3. 将从 sFolderChromeUserDataDefault 变量中指定的目录中复制用户配置文件,默认情况下该目录为 C:ChromeUser Data2.
        首次安装 Chrome 后,设置您的首选项(主页、书签等).然后修改源代码中的变量(见3.).之后,安装和配置 Chrome 就像馅饼一样简单.
      1. The Chrome binaries are placed in subfolders of C:Chrome.
      2. The User profiles are created in C:ChromeUser Data.
      3. The user profiles will be duplicated from the directory as specified in the sFolderChromeUserDataDefault variable, which is C:ChromeUser Data2 by default.
        After the first Chrome installation, set your preferences (Home page, bookmarks, ..). Then modify the variable (see 3.) in the source code. After that, installing and configuring Chrome is as easy as pie.

      唯一的依赖项是 7-zip,预计位于 C:Program Files7-zip7z.exe.

      The only dependency is 7-zip, expected to be located at C:Program Files7-zip7z.exe.

      这篇关于我可以在同一台机器上运行多个版本的谷歌浏览器吗?(Mac 或 Windows)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,WP2

admin_action_{$_REQUEST[‘action’]}

do_action( "admin_action_{$_REQUEST[‘action’]}" )动作钩子::在发送“Action”请求变量时激发。Action Hook: Fires when an ‘action’ request variable is sent.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$_REQUEST['action']引用从GET或POST请求派生的操作。源码(Source)更新版本源码位置使用被使用2.6.0 wp-admin/admin.php:...

日期:2020-09-02 17:44:16 浏览:1169

admin_footer-{$GLOBALS[‘hook_suffix’]}

do_action( "admin_footer-{$GLOBALS[‘hook_suffix’]}", string $hook_suffix )操作挂钩:在默认页脚脚本之后打印脚本或数据。Action Hook: Print scripts or data after the default footer scripts.目录锚点:#说明#参数#源码说明(Description)钩子名的动态部分,$GLOBALS['hook_suffix']引用当前页的全局钩子后缀。参数(Parameters)参数类...

日期:2020-09-02 17:44:20 浏览:1070

customize_save_{$this->id_data[‘base’]}

do_action( "customize_save_{$this->id_data[‘base’]}", WP_Customize_Setting $this )动作钩子::在调用WP_Customize_Setting::save()方法时激发。Action Hook: Fires when the WP_Customize_Setting::save() method is called.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_data...

日期:2020-08-15 15:47:24 浏览:806

customize_value_{$this->id_data[‘base’]}

apply_filters( "customize_value_{$this->id_data[‘base’]}", mixed $default )过滤器::过滤未作为主题模式或选项处理的自定义设置值。Filter Hook: Filter a Customize setting value not handled as a theme_mod or option.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分,$this->id_date['base'],指的是设置...

日期:2020-08-15 15:47:24 浏览:898

get_comment_author_url

过滤钩子:过滤评论作者的URL。Filter Hook: Filters the comment author’s URL.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/comment-template.php:32610...

日期:2020-08-10 23:06:14 浏览:930

network_admin_edit_{$_GET[‘action’]}

do_action( "network_admin_edit_{$_GET[‘action’]}" )操作挂钩:启动请求的处理程序操作。Action Hook: Fires the requested handler action.目录锚点:#说明#源码说明(Description)钩子名称的动态部分$u GET['action']引用请求的操作的名称。源码(Source)更新版本源码位置使用被使用3.1.0 wp-admin/network/edit.php:3600...

日期:2020-08-02 09:56:09 浏览:876

network_sites_updated_message_{$_GET[‘updated’]}

apply_filters( "network_sites_updated_message_{$_GET[‘updated’]}", string $msg )筛选器挂钩:在网络管理中筛选特定的非默认站点更新消息。Filter Hook: Filters a specific, non-default site-updated message in the Network admin.目录锚点:#说明#参数#源码说明(Description)钩子名称的动态部分$_GET['updated']引用了非默认的...

日期:2020-08-02 09:56:03 浏览:864

pre_wp_is_site_initialized

过滤器::过滤在访问数据库之前是否初始化站点的检查。Filter Hook: Filters the check for whether a site is initialized before the database is accessed.目录锚点:#源码源码(Source)更新版本源码位置使用被使用 wp-includes/ms-site.php:93910...

日期:2020-07-29 10:15:38 浏览:833

WordPress 的SEO 教学:如何在网站中加入关键字(Meta Keywords)与Meta 描述(Meta Description)?

你想在WordPress 中添加关键字和meta 描述吗?关键字和meta 描述使你能够提高网站的SEO。在本文中,我们将向你展示如何在WordPress 中正确添加关键字和meta 描述。为什么要在WordPress 中添加关键字和Meta 描述?关键字和说明让搜寻引擎更了解您的帖子和页面的内容。关键词是人们寻找您发布的内容时,可能会搜索的重要词语或片语。而Meta Description则是对你的页面和文章的简要描述。如果你想要了解更多关于中继标签的资讯,可以参考Google的说明。Meta 关键字和描...

日期:2020-10-03 21:18:25 浏览:1722

谷歌的SEO是什么

SEO (Search Engine Optimization)中文是搜寻引擎最佳化,意思近于「关键字自然排序」、「网站排名优化」。简言之,SEO是以搜索引擎(如Google、Bing)为曝光媒体的行销手法。例如搜寻「wordpress教学」,会看到本站的「WordPress教学:12个课程…」排行Google第一:关键字:wordpress教学、wordpress课程…若搜寻「网站架设」,则会看到另一个网页排名第1:关键字:网站架设、架站…以上两个网页,每月从搜寻引擎导入自然流量,达2万4千:每月「有机搜...

日期:2020-10-30 17:23:57 浏览:1308