greasemonkey

Storing data in Greasemonkey scripts

Does GreaseMonkey have something built in so you can store data per-site or per-page? For example, say you wanted to tweak StackOverflow.com so you can add a note to each of the questions in your favorites list and sort on that note. Does GreaseMonkey have something built-in to store those notes? Or perhaps can the scripts self-modify...

Greasemonkey script to upload multiple images?

I have an account at wikidot.com that hosts wikis for free. they will even store up to 300mb per of images for you. I currently have a car repair wiki that is doing quite well but I have to upload all the pictures one at a time. I know that this is probably a good application where Greasemonkey could help me but I have very little expe...

Removing list elements with Greasemonkey

A blog I read has some annoying commenters. I thought I would try my hand at Greasemonkey to turn them off. The basic structure of the HTML is simple - a comment looks something like this: <li> <cite>user name ...</cite> comment text </li> So with that in mind, I bashed my head against the keyboard for a while until this dropped...

Is Greasemonkey not capable of using jQuery's full power?

Hey guys, I'm trying to find an element using jQuery, but it is not working.. I found out that this kind of selector can't be done in Greasemonkey: ($("#app7019261521_hover_container > [id^=app7019261521_the_coin]")) Please help me translate this into raw Javascript. This kind of selector is hardcore to do in Javascript. Please help ...

DOM Navigation problem,

Hi guys, please help me select c.. Here's the HTML code: <div id="a"> <div id="b"></div> <div id="app7019261521_the_coin_9996544" style="left: 176px; top: 448px;"> <a href="d.com" onclick="(new Image()).src = &#039;/ajax/ct.php?d_id=;action_type=d;post_form_id=6b; return true;"></a> </div> </div> And here's my Javascr...

Get subdomain and load it to url with greasemonkey.

Hi! I am having the URL http://somesubdomain.domain.com (subdomains may vary, domain is always the same). Need to take subdomain and reload the page with something like domain.com/some/path/here/somesubdomain using greasemonkey (or open a new window with URL domain.com/some/path/here/somesubdomain, whatever). ...

UniversalXPConnect in greasemonkey script

I want to add some button to google reader, that will call some custom XPComponent dll with the feed text, but I am not able to use UniversalXPConnect in greasemonkey scripts. How to call firefox dll plugins from greasemonkey scripts. ...

How can I reload a page using jQuery from Greasemonkey?

I'm working on a Greasemonkey script that occasionally reloads a page and checks for updates. I'd like to be able to do a full-page reload without the side effect of having the page's title show "Loading..." each time. Here's what I have so far. The jQuery loading code is from http://joanpiedra.com/jquery/greasemonkey/ // Add jQuery ...

Greasemonkey script that refreshes page

So, at my school theyy have this service which tells you that "your request has been coached", so I have made a GM script to automatically refresh the page and continue on to the content you wanted. To avoid the hassle of pressing F5 I made this: function main(doc) { if (document.title == "REQUEST COACHED") { window.location.reload();} ...

How do I "quietly" reload a page from a Greasemonkey script?

I want to reload a page so that it does not cause the effects of a full-page refresh, like displaying "Loading..." on the page's tab. Here's the code I have so far. My theory was that I could overwrite the body section with a <frame>-wrapped version of the updated site, gotten via GM_xmlhttpRequest. reloader.js setInterval(reload, 10...

Firefox extension to create a new icon or replace existing icon in the location/address bar

I want to create a Firefox extension that creates a new icon in the address bar or replaces the existing one with the one specified in the extension. And then, add some javascript to display this custom logo only when the user is viewing a particular domain. If this is not doable for the location/address bar, displaying the logo on the...

jQuery.ajax call returns empty data container but the raw URL works!

I'm using a Greasemonkey script to pull data from the RSS feed here http://www.instapaper.com/folder/48337/rss/11185/QBV0RZfH4KBO7GwgrR3D8b7sv90 and insert it into a page with jQuery. The address returns valid RSS, but when Greasemonkey fires ajax call below it always returns an empty request and fires the error callback. What am I missi...

iframe undefined in Greasemonkey script

I have created a Greasemonkey script that runs fine in the firebug editor, with the Greasemonkey specifics removed, but not when I try to package it as a userscript. The Firefox error console is reporting that an iframe I am trying to use is undefined. I've cut the userscript down to a minimum case where it should be printing the ifram...

Firefox plugin or greasemonkey script to insert javascript

I am developing an app that analyzes the typing pattern of a user. To accomplish this, I need to change the HTML of the webpage that the user is on (e.g. yahoo.com) - for all the text box items in the page, add a few javascript functions to capture the key down and key up events. So, I need to be able to add a new javascript to this exis...

GM_addStyle not working

Hi I am trying to make this very simple script to replace the header on google: // ==UserScript== // @name Hell yeah // @description HELL YEAH // @include http://www.google.* // ==/UserScript== GM_addStyle("div #logo {background-image: url('http://img220.imageshack.us/img220/5676/1251559315224.jpg') !important}"); ...

Matching multiline Patterns

I want to use greasemonkey to scrape wiki data from Last.fm (this is not possible with their REST api). I can grab the page fine with GM_xmlhttpRequest(), and it is returning properly. I do not want to use a DOM processor to process the whole page, since I only want a small chunk, so I'm using regular expressions. The wiki data is in t...

How to simulate the click on Refresh link in Gmail ?

Hi All, I'm trying to write a Greasemonkey script that works with Gmail. the script is working good but I need to add simulate a refresh of the Gmail page by "hitting" programmatically the Refresh button. is this possible ? FYI, the refresh link in Gmail isn't a link like but rather : Refresh I've tried to use the click() method but i...

How to compile/package an IE7PRO script as an IE plugin ?

Hi All, is it possible to compile and package IE7PRO scripts as IE plug-in ? I've already developed a script on GreaseMonkey that's working fine under Firefox, and I wanted to port that js script under IE. is there any tools or libraries that allows this kind of compilation (.js (IE7PRO) -> IE Plugin) ? is there any other solutions li...

How to determine why a Greasemonkey script is not running

I am trying to get a Greasemonkey script to run on a page. But it does not. How do you debug scripts? What are the smallest possible baby-steps to start a new Greasemonkey script? ...

How to embed audio file in HTML if it's being sent as octet-stream?

I'm trying to write a Greasemonkey script that will convert all "Play" links on a page to embedded audio (using the <embed> tag). When I use a link that I get from a GMail attachment, it works like a charm. When I use a link from another site (Digium Switchvox), the HTTP response header has ContentType set to "application/octet-stream"...