greasemonkey

Can a greasemonkey script launch an application under windows xp

I would like to allow some users to be able to launch a voip application from a web page, ie in response to clicking a button to dial the telephone number for the record they are looking at. My question is can i use greasemonkey to launch the exe and pass a parameter from the a webpage or will security restrictions stop this from worki...

Greasemonkey guide for Experienced Javascript Developers?

I really really want to write a GreaseMonkey extension. I have written a lot of javascript in my life. I am looking for a guide that will tell me quickly, what exactly the GreaseMonkey environment is and does, from the perspective of someone who is familiar with everything going on in browser based Javascript. I.e. no platitudes about...

Can I build an addin for Gmail?

Is there a way I can create an addin for my Gmail account? Is GreaseMonkey the only real way? I use Gmail for customer service, and I'd like to create a tool that looks up the customer and preps a response to them based upon who it is in my database... instead of looking by hand for the client and typing it out. ...

form.submit() causes uncaught exception in greasemonkey

Hello! I'm using a greasemonkey script to load a page with ajax and automatically fill in the form fields inside the page and submit the form. The problem is that when the form.submit() statement is executed I get an uncaught exception error: "uncaught exception: [Exception... "Component is not available" nsresult: "0x80040111 (NS_ERRO...

Call href from JavaScript

This is the same question as THIS ONE, I can't answer that anymore, so I'm re-posting it with my account. Sorry for the mess. I need a Greasemonkey script that on a page load activates a href link like 'javascript:FUNCTION'. I've seen this code: <script language="Javascript" type="text/javascript"> function somescript() { ...

Clear cache with greasemonkey

I have a web application running in a kiosk, which is set up with greasemonkey so that we can customize little things about the application and ensure the customizations only occur at the kiosk. I have been digging through the GM api hoping that it would have some functionality to affect browser settings, but alas it looks like it only ...

Firefox Exension vs. Greasemonkey Script?

I've been working on a Firefox extension extension, but it's been slow going (in part because I have no time to work on it). I've got a basic skeleton, verified that I can talk to an external JSON API, modify any webpage when loaded, and show a preferences box. These are all necessary HelloWorlds for the extension I am writing (maybe I d...

Greasemonkey communication with server that requires windows-1250 encoding

I'm developing a greasemonkey plugin, which is supposed to send a form in background using POST (GM_xmlhttpRequest) on an application not under my control. That application is written in PHP and seems to expect all its input in windows-1250 encoding. What I need to do is to take all the form fields as they are, edit just one of them and ...

What in a GreaseMonkey script can cause Firefox to crash?

I have a relatively large script in GreaseMonkey and it seems to be crashing the browser after some time. It looks like it does its thing and then after a while Firefox just dies. Seems to me that this has to be connected with to my script. The page I'm modifying is google.com and I'm developing the script on Mac. What are the common cau...

Trouble intercepting AJAX (XHR) requests from GreaseMonkey script

My userscript's task is fairly simple -to listen to XHR requests via an XHR bridge sort of functionality, manipulate the data received, and return it back. Everything happening transparently, of course. I came across this reply (http://stackoverflow.com/questions/629671/how-can-i-intercept-xmlhttprequests-from-a-greasemonkey-script/6297...

Is there a lightweight library to do draggable+sortable lists inside greasemonkey scripts?

I'm writing a GreaseMonkey script, as part of which I'd like to sort a list by dragging its items. I'm using mootools, but the component for sortable lists doesn't work in the GM sandboxed environment. Can you recommend a smallish library/piece of code to do list sorting in the most lightweight fashion? I want it to be independant of any...

Loading my Greasemonkey script after another GM Script Loads

I have two greasemonkey scripts loading on a particular url. How do I make sure my second GM script doesn't load until the first GM script completes building it's page elements. Also how do I control the order in which the GM scripts load/run? ...

replace a whole page useing GreaseMonkey

is there a way to replace a whole web page using GreaseMonkey? basically a redirection but the address bar still shows the original address. i want the original address to show, but i want to load a modified web page from my hard drive without anyone knowing. thanks ...

Greasemonkey script causes page to be locked and grow per click instead of navigating

Each time I click a link if this is loaded into my Greasemonkey script the page grows on links that would be in the same domain with the greasemonkey target instead of the page navigating to the link target. var GM_JQ = document.createElement('script'); GM_JQ.src = 'http://jquery.com/src/jquery-latest.js'; GM_JQ.type = 'text/javascript'...

Updating onclick's string value with Greasemonkey

I'm trying to write a Greasemonkey script to update the onclick value of a bunch of links on a page. The HTML looks like this: <a onclick="OpenGenericPopup('url-99.asp','popup',500,500,false)" href="javascript:void(0)">text</a> I need to update the url-99.asp part of the Javascript into something like urlB-99.asp. In my script, I'm...

Using jQuery in a GreaseMonkey script for GMail

I'm trying to write a Greasemonkey script to change colours on the default GMail UI, using jQuery to select the element I want to change. However, I'm having no end of difficulty getting thing working/debugged. When I eventually corrected my "@requires" url, I found it very hard to identify which div, in a morass of billions of nested ...

Document.oncontextmenu, component is not available (firefox)

I have a script for a website, and one of the things ti does right at the end if attempt to disable an anti-right click protection in a website if($("span[class=MembersNameDisplay]").exists()){ var list_row = document.getElementsByTagName('script'); if(list_row != null){ list_row[0].parentNode.removeChild(list_row[0]); ...

Adding Javascript EventListener only if no other listener is present?

Hello, I'm a relative tyro in the Javascript programming arena, so please go easy on me. :-) I am trying to add an eventListener to various DOM elements on a page. However, some of the elements I'm adding my event to already have an eventListener, and I don't want to supersede that one; I only want to add my event to an element that ...

Greasemonkey to Change Readonly from True to Flase

trying to change a websites text entry field that is currently set to read only to false. The reason being it has an 'Upload" button where you browse to the file on your computer then hit upload. I just want to set the path in a script but since the text field is read only i cannot. Any other ideas would be appreciated. thanks ...

How to set Chrome's user script version number.

Hey. I've been wondering how I might set the version number displayed for user-scripts in Chrome's extension tab So far the obvious methods have failed: // ==UserScript== // @version 1.1.5 // @uso:version 1.1.5 // ==/UserScript== I know Greasemonkey for Firefox doesn't use a version value, but since Chrome actually displays a vers...