

Var input=document.createElement("input") We can create a button dynamically with JavaScript API and append it to current webpage body. Note: Make sure that “Enabled” and “Hello World” menu items are checked and You need to refresh the webpage or open a new page to see the effects. Below user-script shows an alert message when the webpage is loaded. Script is included for the domain and //All the http //All the https You can use all the Javascript API in Greasemonkey scripts. add multiple times, for multiple domains. : name of the user : namespace to differentiate the scripts.You can use domain name as version of the User enable this script only for this URLs. To write a new User script, Click on “New User Script” and fill all the details as shown in the below image.Īfter submitting the details, User-script is opened in an editor with initial configuration. Once the Greasemonkey is installed in Firefox, You can see Greasemonkey icon in the toolbar as shown in the below image. “Greasemonkey is a Mozilla Firefox extension that allows users to install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser”īelow picture explains how grease monkey works.

After this tutorial,you will be able to write user-scripts for Greasemonkey. In Greasemonkey tutorial, I have covered how to write Greasemonkey user scripts.
