npm 卸载全局安装_如何手动卸载全局安装的Chrome扩展程序
npm 卸载全局安装
Google Chrome allows other programs on your computer to install system-wide Chrome extensions. Chrome even allows these extensions to prevent you from disabling or removing them via Chrome’s Extensions page.
Google Chrome浏览器允许您计算机上的其他程序安装系统范围的Chrome扩展程序。 Chrome甚至允许使用这些扩展程序,以防止您通过Chrome的“扩展程序”页面禁用或删除它们。
The terrible Ask Toolbar included with Java security updates is one of the most common examples of this, but this technique could be used by other programs — and even malware.
Java安全更新中包含的可怕的Ask Toolbar是最常见的示例之一,但是该技术可以被其他程序使用,甚至是恶意软件。
控制面板 (Control Panel)
If the extension’s developer is behaving properly, you will be able to uninstall a globally installed extension from the Windows Control Panel. They will be shown alongside the other applications you have installed on your system in the Programs and Features section. Uninstall them from the Control Panel, if you can.
如果扩展程序的开发人员行为正常,则可以从Windows控制面板中卸载全局安装的扩展程序。 它们将与您在系统上安装的其他应用程序一起显示在“程序和功能”部分。 如果可以,请从“控制面板”中卸载它们。
In the case of the Ask Toolbar, Ask.com graciously allows us to remove it from our system via the Control Panel, although they don’t even allow us to disable it from within Chrome. However, a developer could just as easily create a malicious extension and prevent you from uninstalling it via the Programs and Features window, so we’ll cover how you could get rid of this extension manually.
以Ask工具栏为例,Ask.com允许我们通过“控制面板”将其从系统中删除,尽管他们甚至不允许我们在Chrome中禁用它。 但是,开发人员可以轻松创建恶意扩展并阻止您通过“程序和功能”窗口将其卸载,因此我们将介绍如何手动摆脱此扩展。
Windows注册表 (Windows Registry)
Chrome allows other programs to associate extensions with Chrome via the Windows Registry. We’ll need to use the registry editor to deal with such extensions. To open it, press the Windows key to open the Start menu (or Start screen, on Windows 8), type regedit into the Start menu (or at the Start screen), and press Enter.
Chrome允许其他程序通过Windows注册表将扩展程序与Chrome关联。 我们需要使用注册表编辑器来处理此类扩展。 要打开它,请按Windows键以打开“开始”菜单(或Windows 8上的“开始”屏幕),在“开始”菜单中(或在“开始”屏幕上)键入regedit ,然后按Enter。
Locate the following key in the registry:
在注册表中找到以下项:
HKEY_LOCAL_MACHINE\Software\Google\Chrome\Extensions (On 32-bit versions of Windows) HKEY_LOCAL_MACHINE\Software\Wow6432Node\Google\Chrome\Extensions (On 64-bit versions of Windows)
HKEY_LOCAL_MACHINE \ Software \ Google \ Chrome \ Extensions(在32位版本的Windows上)HKEY_LOCAL_MACHINE \ Software \ Wow6432Node \ Google \ Chrome \ Extensions(在Windows 64位版本上)
Each key (folder) under the Extensions key represents a globally installed Chrome extension. You can check which extension a key contains by opening the key and examining the Path value.
Extensions键下的每个键(文件夹)代表一个全局安装的Chrome扩展程序。 您可以通过打开**并检查Path值来检查**包含的扩展名。
In our example here, we haven’t yet found the terrible Ask Toolbar, but we have located an obnoxious “SweetIM” toolbar that hitched a ride on some unscrupulous software.
在这里的示例中,我们还没有找到可怕的Ask工具栏,但是我们找到了一个令人讨厌的“ SweetIM”工具栏,该工具架了一些不道德的软件。
To get rid of this extension, we’ll need to delete its key by right-clicking it and selecting delete.
要摆脱此扩展名,我们需要通过右键单击它并选择删除来删除它的**。
To delete the extension’s files as well, we could note the location displayed in the Path box, navigate to that folder on our computer, and delete the extension’s .crx file (or the entire folder containing it).
要也删除扩展名的文件,我们可以记下“路径”框中显示的位置,导航到计算机上的该文件夹,然后删除扩展名的.crx文件(或包含该扩展名的整个文件夹)。
删除托管扩展 (Remove a Managed Extension)
We haven’t yet found the Ask toolbar, so we know it’s not attached to Chrome through the registry. It must be located in one of Chrome’s extension folders.
我们尚未找到Ask工具栏,因此我们知道它没有通过注册表连接到Chrome。 它必须位于Chrome的扩展程序文件夹之一中。
To open your Chrome user data folder, enter the following into Windows Explorer’s address bar:
要打开您的Chrome用户数据文件夹,请在Windows资源管理器的地址栏中输入以下内容:
%LOCALAPPDATA%\Google\Chrome\User Data
%LOCALAPPDATA%\ Google \ Chrome \ User Data
Open your profile folder – generally named Default, unless you have created a new profile – and open the Extensions folder inside it. You should be in a folder like the following:
除非创建了新的配置文件,否则打开您的配置文件文件夹(通常命名为Default),然后打开其中的Extensions文件夹。 您应该位于以下文件夹中:
C:\Users\NAME\AppData\Local\Google\Chrome\User Data\Default\Extensions
C:\ Users \ NAME \ AppData \ Local \ Google \ Chrome \ User Data \ Default \ Extensions
If you have a variety of extensions and apps installed, you’ll see quite a few subfolders. To determine which one is associated with the Ask Toolbar (or whatever globally installed extension you want to remove), we can open Chrome’s Extensions page, enable the Developer mode check box, and view the Ask Toolbar’s extension ID.
如果您安装了各种扩展程序和应用程序,则将看到很多子文件夹。 要确定与Ask Toolbar(或要删除的任何全局安装的扩展程序)相关联的代码,我们可以打开Chrome的Extensions页面,启用Developer模式复选框,并查看Ask Toolbar的扩展程序ID。
Locate the folder with the same name as the extension ID, delete it, and restart Chrome. The extension will be removed.
找到与扩展名相同名称的文件夹,将其删除,然后重新启动Chrome。 该扩展名将被删除。
Unfortunately, in the case of the Ask Toolbar, the folder we deleted will immediately be recreated. Ask.com runs an Updater.exe process in the background, and it appears to recreate the extension’s folder each time you open Chrome. This ensures that the Ask Toolbar comes along whenever you create a new Chrome profile.
不幸的是,对于“询问工具栏”,我们将立即重新创建我们删除的文件夹。 Ask.com在后台运行Updater.exe进程,每次您打开Chrome时,它似乎都会重新创建扩展程序的文件夹。 这样可以确保每当您创建新的Chrome配置文件时都可以使用Ask Toolbar。
This example just goes to show that, if you have malicious software running in the background, you’ll need to neutralize the malware by removing its associated browser extensions. The malicious software can keep recreating extensions even after you remove them manually.
本示例仅说明,如果在后台运行恶意软件,则需要通过删除其关联的浏览器扩展来中和该恶意软件。 即使您手动删除扩展程序,恶意软件仍会继续创建扩展程序。
Luckily, we can just uninstall the Ask Toolbar from the Control Panel, so this doesn’t really matter in this example. However, Ask.com have provided an excellent example to malware authors looking to get around Chrome’s protection against globally installed extensions.
幸运的是,我们可以从“控制面板”中卸载“询问工具栏”,因此在此示例中这并不重要。 但是,Ask.com为希望绕过Chrome防止全球安装的扩展程序的恶意软件作者提供了一个很好的例子。
Chrome also provides a way for programs to globally install extensions using a preferences file located in Chrome’s application directory. However, you likely won’t find any extensions using this method to install themselves. Thanks to a long-standing bug, extensions using a preferences file will be automatically uninstalled each time Chrome updates itself to a new version. You can find more information about the preferences file method over at Chrome’s developer site.
Chrome还为程序提供了一种使用位于Chrome应用程序目录中的首选项文件在全球范围内安装扩展程序的方式。 但是,您可能找不到使用此方法自行安装的任何扩展。 由于存在一个长期存在的错误,每次Chrome将自身更新为新版本时,使用首选项文件的扩展程序都会自动卸载。 您可以在Chrome的开发者网站上找到有关首选项文件方法的更多信息。
翻译自: https://www.howtogeek.com/140464/how-to-manually-uninstall-a-globally-installed-chrome-extension/
npm 卸载全局安装