Is Grease Monkey only for changing webpages and not making your browser do something? And if I wanted to make a sponsor doer: Could I add a button to neopets.com's side bar to visit a bunch of links? If so, how?
what you would do is write a script to make it go to all the links that you want it to go to. then have it be activated when you go to a certain page.
its not as simple as it might look. You need to understand HTML and how everything in HTML functions. You'll use DOM to minipulate the pages. You need to learn javascript, and how it works with the client. Big mistake that i made and see is that javascript is client-side, not server-side, so there no way to contact the server with it unless you use a backdoor trick. it you want to use GUI, you need to learn about who forms work, and different types of requests and what not. Its not like vb.net where you can just jump right into it...
but to use javascript in the way to write gm scripts is harder then regular javascript on web pages. You have to find different ways to get stuff then other programming languages.
Well, not really. Javascript's DOM Functions are 'more regular' than the methods we use in Vb to find data in a page. Javascript uses an XML structure, which is really flexible and easy-to-use. There are many ways to get specific data from a page, as you can take into consideration more than just one object. And, to stay on topic, I'll also answer Fexxel's question. JavaScript was originally made to modify a page's look, without interfering with the server-part of the page. But as JavaScript was further developed, it got some functions implemented to make it interact with the server: this technology is called AJAX. However, making EVERY site accessible from any page would have been a security risk, and that's why common browsers raise a security exception when a site attempts to do so. Greasemonkey got a step ahead, though. It has a built-in function which allows cross-site requests, making it possible to do almost anything you want to do on the page. Just take a look at Javascript's XMLHttpRequest object and at GM's GM_xmlHttpRequest function.