Do you want to see a web page as you like? Do you want to add some extra functions to a web page that will work for you? Do you want to make these changes On-the-Fly to a web page? Do you want these to a web page that you haven’t developed by you or you have no modification access to it? Then here is UserScript and greasemonkey.
You can achieve those goals easily in Mozilla Firefox. You are needed only five basic steps:
2. Write your desired functionality/features to a UserScript. Include/Exclude the web address(es) in your UserScript that you want/doesn’t want to have the feature(s)
3. Then add your UserScript to the greasemonkey
4. Enable(if not) the greasemonkey into your browser
5. Finally open your desired web page into the Firefox web browser.
Here I’m not going to explain more about the greasemonkey and UserScript. but the basic idea of UserScript is:
Once you write a UserScript then greasemonkey will provide you option to attach the file into it. An important point is that a UserScript file will have the extension .user.js [e.g. MyFeature.user.js]
Here is a sample UserScript:
// @name SayHelo
// @description Whenever a page of google will be loaded then it will say Helo to user
// @include *google.com*
alert(“Helo I’m from UserScript”);
After adding this UserScript if you open any page that has google.com in address bar then the message Helo I’m from UserScript will be shown by the browser.
> To find existing UserScript that might work for you, follow the link www.userscript.org. This is a huge resource of UserScripts.
I hope you enjoyed this article! 🙂