Yes, these things exist, they are called "bookmarklets" and they work with JavaScript. Usually the website itself provides them, but if you know JS you can write them yourself. There are a lot of useful examples for bookmarklets on
this site, and you can read the wikipedia entry about it for more information.