Mokey tutorials
Today we want to show you how to make a monkey fist with sisal rope. For me, these sisal nautical rope balls (which I’ve since learned are also known as Monkey’s Fists) are an example of just that. We all have crafting and DIY fails from time to time, but I’m talking about the opposite experience. If the script is already loaded in the webpage, then it can be accessed using unsafeWindow object.Have you ever crafted something purely by accident? You know when you start a project expecting it to be one thing and it surprisingly turns into something else (…even better). To load multiple scripts,You can use multiple times. This.$ = this.jQuery = jQuery.noConflict(true)
#MOKEY TUTORIALS CODE#
Below code loads jQuery and shows an alert when the document is ready. Var inputs = document.getElementsByTagName("input") Īfter adding the code to your script, Open Google 4.Loading External ScriptsĮxternal Scripts are loaded in Greasemonkey using tag.
The below script, fills search field with “” and submits.
You can see the video information as shown in the below image. Var sidebar = document.getElementById("watch7-sidebar") Īfter adding the code to your script, open any YouTube video: Youtube. Var spans =viewsObj.getElementsByTagName("span") ĭiv.setAttribute("style"," border:1px solid red padding:10px 10px 10px 100px ") ĭiv.innerHTML +="Uploaded By:"+userName+"" ĭiv.innerHTML +="Uploaded Videos: "+userVideos+"" ĭiv.innerHTML +="Total Views: "+views+"" ĭ(div,) Var viewsObj = document.getElementById("watch7-views-info") If(document.getElementById("watch7-views-info")) Var as = document.getElementsByTagName("a") Title = document.getElementById("eow-title").textContent HTML content can be read/write with HTML DOM object.In this section, I gave two examples.īelow code explains how to read YouTube Video information. tAttribute("style", "font-size:18px position:absolute top:120px right:40px ") The above script, adds a Button at the end of every webpage as shown in the below image.īy adding style to the button, we can show the button at the top as shown in the below image. 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.
#MOKEY TUTORIALS INSTALL#
“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.