greasemonkey
Would you like to customize your favorite websites with popular Greasemonkey scripts? Here’s how you can use any user script in Google Chrome with only 3 clicks.
您想使用流行的Greasemonkey脚本自定义您喜欢的网站吗? 只需单击三下,即可使用以下方法在Google Chrome浏览器中使用任何用户脚本。
Greasemonkey is one of the most-love extensions on Firefox, so you may have been disappointed to leave behind your favorite website customizations when you switched to Google Chrome. Now you can have the best of both worlds, as Chrome now natively supports user scripts. You don’t have to install an extra extension to use them; in fact, Chrome treats each user script as an individual addon so you can easily manage and remove them. Let’s see how Greasemonkey scripts work in Google Chrome.
Greasemonkey是Firefox上最受欢迎的扩展程序之一,因此当您切换到Google Chrome浏览器时,可能会失望地抛弃自己喜欢的网站自定义设置。 现在,您可以两全其美,因为Chrome现在本身就支持用户脚本。 您无需安装额外的扩展程序即可使用它们。 实际上,Chrome将每个用户脚本视为一个单独的插件,因此您可以轻松地管理和删除它们。 让我们看看Greasemonkey脚本如何在Google Chrome中工作。
Install Greasemonkey Scripts in Chrome
在Chrome中安装Greasemonkey脚本
You can download Greasemonkey user scripts from many websites across the net, including the ones listed in the links below. Once you find a user script you’d like to use, simply click Install. You don’t need to download an extension to enable Greasemonkey scripts like you do in Firefox; they work just like a standard extension in Chrome.
您可以从网上的许多网站下载Greasemonkey用户脚本,包括下面链接中列出的脚本。 找到想要使用的用户脚本后,只需点击安装 。 您无需像在Firefox中那样下载扩展即可启用Greasemonkey脚本; 它们的工作方式就像Chrome中的标准扩展程序一样。
You’ll see a download popup on the bottom of the window; click Continue to download the user script.
您将在窗口底部看到一个下载弹出窗口。 单击继续以下载用户脚本。
Once it’s downloaded, click Install in the confirmation window to go ahead and install the script.
下载完成后,在确认窗口中单击“ 安装 ”继续安装脚本。
Once it’s installed, you’ll see a tooltip from the gear menu letting you know the user script has been installed.
安装完成后,您会在齿轮菜单中看到一个工具提示,让您知道已安装用户脚本。
Next time you visit the website that the user script was designed for, you’ll be greeted with it’s new style. Older scripts may not work on sites that have been recently updated, so it’s often good to look at the upload date and recent comments on the script before installing it.
下次您访问该用户脚本设计的网站时,您会被它的新样式所吸引。 较早的脚本可能无法在最近更新的网站上运行,因此在安装脚本之前,最好先查看该脚本的上载日期和最近的注释。
Install User Scripts Manually
手动安装用户脚本
If you’d like to write your own user scripts or install scripts you have the code for, here’s how you can install them in Chrome. Simply paste the code into a text editor such as Notepad, and save it with the file extension .user.js.
如果您想编写自己的用户脚本或安装脚本,请使用下面的代码在Chrome中进行安装。 只需将代码粘贴到文本编辑器(如记事本)中,然后将其保存为文件扩展名.user.js即可 。
Now drag and drop the script file into a Chrome window. You’ll see the same installation prompts as before, so accept them and your new script will be installed in Chrome.
现在,将脚本文件拖放到Chrome窗口中。 您将看到与以前相同的安装提示,因此接受它们,您的新脚本将安装在Chrome中。
Remove User Scripts
删除用户脚本
If you don’t like your new styles, you can easily get rid of them in Google Chrome. To do this, click the gear button on the top left, and select Extensions.
如果您不喜欢自己的新样式,可以在Google Chrome浏览器中轻松摆脱它们。 为此,请点击左上方的齿轮按钮,然后选择扩展程序 。
Your scripts will be listed right along with other Chrome Extensions you may have installed. Click Uninstall under any scripts you wish to remove. Alternately, if you only want to turn it off, you can click Disable so you can use it again easily in the future.
您的脚本将与您可能已安装的其他Chrome扩展程序一起列出。 在要删除的任何脚本下,单击“ 卸载 ”。 或者,如果您只想将其关闭,则可以单击“ 禁用”,以便将来可以轻松再次使用它。
If you’re uninstalling the script, click Uninstall in the popup to confirm that you wish to uninstall the script. Now the website will work like it did before you added the script.
如果要卸载脚本,请在弹出窗口中单击“ 卸载 ”以确认要卸载脚本。 现在,网站将像添加脚本之前一样工作。
Conclusion
结论
Greasemonkey scripts are a great way to make websites look and work like you want. There are thousands of user scripts available from the sites listed below and more, or you could always code your own script if you’d like. Between extensions, themes, and user scripts in Chrome, you can make your browser experience personalized while still taking advantage of Chrome’s speed and support for advanced web technologies.
Greasemonkey脚本是使网站外观和工作如您所愿的好方法。 下面列出的网站上提供了成千上万的用户脚本,或者更多,或者如果您愿意,您可以始终编写自己的脚本。 在Chrome的扩展程序,主题和用户脚本之间,您可以使浏览器个性化,同时仍可利用Chrome的速度和对高级网络技术的支持。
If you’d like to use Greasemonkey in Firefox, check out our Beginner’s Guide to Greasemonkey User Scripts in Firefox.
如果您想在Firefox中使用Greasemonkey,请查看Firefox 中Greasemonkey用户脚本的初学者指南 。
Websites with Greasemonkey Scripts for Download:
可下载Greasemonkey脚本的网站:
Userscript.org
Userscript.org
Learn More About Greasemonkey at the Greasemonkey Wiki
在Greasemonkey Wiki上了解有关Greasemonkey的更多信息
-
› How to Quickly Scroll Through Home Screen Pages on iPhone and iPad
-
› How to Move a Window to Another Virtual Desktop on Windows 10
-
› What’s the Deal with Google Home and Nest? Is There a Difference?
翻译自: https://www.howtogeek.com/howto/24790/beginner-guide-for-greasemonkey-scripts-in-google-chrome/
greasemonkey