如果您在您的Windows PC 上使用(Windows)Firefox,您可以获得比 Web 开发人员在其网页上为您创建的内容更多的内容。Greasemonkey是一个有用的扩展程序,可帮助您自定义在Firefox上查看网站的方式。它是一个扩展,它允许用户安装脚本,在页面加载到浏览器之后或之前对网页内容进行即时更改,从而帮助增强浏览。(augmented browsing)
要使用它,您不需要了解JavaScript – Internet上有许多可用的脚本,您可以使用它们来自定义网站在Firefox上的外观。例如,当您将光标悬停在网页上时,它可以扫描网页以查找技术词汇并为您提供它们的含义。本文介绍什么是Greasemonkey以及如何找到适合您需求的Greasemonkey脚本。
什么是油猴
我们在上一段中谈到了Greasemonkey 。基本上,它是Firefox浏览器的扩展。当您在浏览器中打开网站时,它允许您更改网站的运行方式。浏览器应该是Firefox或基于Firefox代码的东西。
注意(NOTE):并非所有使用Mozilla代码的浏览器都支持Greasemonkey。例如,TOR不会,但EPIC可能。
当您加载网站或离开网站时,扩展程序开始运行 - 基于用户脚本的编程方式以提供所需的性能。Greasemonkey可以在Firefox扩展商店以及 softsonic 等网站上下载。如果您已经在使用Firefox,最好和最安全的方法是从商店下载Greasemonkey 。这样,您将避开可能破坏或破坏您的计算的假冒软件。
如何使用 Greasemonkey 脚本
Greasemonkey脚本的安装比您想象的要容易。就像(Just)您添加任何扩展程序或任何软件一样,当您找到Greasemonkey脚本时,单击它或页面上任何位置的安装按钮。如果可能,您也可以将脚本拖放到您希望应用脚本的当前网站。
您也可以创建自己的脚本。单击(Click)Greasemonkey旁边的向下按钮,单击创建新脚本并在第二个文本框中编写代码。然后,您可以通过在“排除(Exclude)”框中输入URL((URLs – one)每行一个)来指定不想在其上运行脚本的网站。请注意,您只能使用Javascript创建Greasemonkey脚本。
But remember one important point – always download and use scripts from sources you trust completely!
在哪里可以找到Greasemonkey 用户脚本(Greasemonkey User Scripts)
Greasemonkey网站上有一些脚本: www.greasespot.net
Greasemonkey用户脚本有一个巨大的存储库,位于: www.userscripts.org
安装Greasemonkey脚本时,请确保它们来自上述两个网站。如果您在第三方网站上看到脚本,请尽量远离它们,除非您完全信任这些网站。
如何关闭某些网站上的Greasemonkey脚本(Greasemonkey)
要关闭Greasemonkey而不将其从Firefox中删除,只需单击左侧出现的猴子图标。Greasemonkey图标由两部分组成:一个是猴脸,另一个是由向下键指示的下拉列表。要切换使用和不使用Greasemonkey,请单击猴脸图标。
另一种选择是打开扩展(Extensions)选项卡并从那里禁用它。您可以稍后在您希望使用它时启用它。
Greasemonkey:有用的资源
- 常见问题解答:http://wiki.greasespot.net/FAQ
- 故障排除信息:http://wiki.greasespot.net/Troubleshooting_(Users)
- 分享脚本:http://wiki.greasespot.net/User_Script_Hosting
您可以在 GitHub 上查看GreaseMonkey 的源代码。(source code of GreaseMonkey)
现在看看这 5 个有用的YouTube GreaseMonkey 脚本(YouTube GreaseMonkey Scripts)。(Now take a look at these 5 useful YouTube GreaseMonkey Scripts.)
Greasemonkey scripts for Firefox: What it does and how to use it
If you are uѕing Firefox on your Windоws PC, you can get much more thаn what web developers created for you on their web pages. Greasemonkey is a useful extension that helps you customize the way you view websites on your Firefox. It is an extension that helps augmented browsing by allowing users to install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser.
To use it, you do not need to know JavaScript – there are dozens of scripts available on the Internet that you can use to customize the way websites look on your Firefox. For example, it can scan the webpage for technical words and provide you with their meanings when you hover your cursor over it. This article is about what is Greasemonkey and how to find Greasemonkey scripts that suit your needs.
What is Greasemonkey
We talked about Greasemonkey in the above paragraph. Basically, it is an extension for the Firefox browser. It allows you to change the way websites function when you open them in your browser. The browser should be Firefox or something that is based on Firefox code.
NOTE: Not all browsers using Mozilla code will support Greasemonkey. For example, TOR will not, but EPIC may.
The extensions start running when you load a website or when you leave a website – based on how the user script is programmed to give you the desired performance. Greasemonkey is available for download in the Firefox extensions store as well as on sites like softensonic. If you are already using Firefox, the best and safest method would be to download Greasemonkey from the store. That way, you will steer clear of fake software that may ruin or hack your computing.
How to use Greasemonkey Scripts
Installation of Greasemonkey scripts is easier than you thought. Just as you add any extension or anything software, when you find a Greasemonkey script, click the install button against it or anywhere on the page. If possible, you may also drag and drop the script to the current website where you want the script applied.
You can create your own scripts too. Click on the down button next to Greasemonkey, click on create a new script and write your code in the second textbox. You can then specify the websites you don’t want to run the script on, by entering their URLs – one per line – in the Exclude box. Note that you can only use Javascript to create Greasemonkey scripts.
But remember one important point – always download and use scripts from sources you trust completely!
Where to find Greasemonkey User Scripts
Some scripts are present on the Greasemonkey website: www.greasespot.net
There is a huge repository for Greasemonkey user scripts at: www.userscripts.org
When installing Greasemonkey scripts, make sure they are from the above two websites. If you see scripts on third-party websites, try to keep them away unless you fully trust the websites.
How to turn off Greasemonkey scripts on certain websites
To turn off Greasemonkey without removing it from Firefox, just click the monkey icon that appears towards the left side. The Greasemonkey icon is two parts: one is the monkeyface and the other is a drop-down list indicated by a down key. To toggle using and not using Greasemonkey, click on the monkey face icon.
Another option is to open the Extensions tab and disable it from there. You can later enable it when you wish to use it.
Greasemonkey: Useful Resources
- FAQ: http://wiki.greasespot.net/FAQ
- Troubleshooting Information: http://wiki.greasespot.net/Troubleshooting_(Users)
- To share script: http://wiki.greasespot.net/User_Script_Hosting
You can check the source code of GreaseMonkey on GitHub.
Now take a look at these 5 useful YouTube GreaseMonkey Scripts.