At first, I thought your question might be answered by 
http://groups.google.com/group/greasemonkey-users/browse_frm/thread/ad67ee03ae92e3f0.
 
But I guess you're trying to install a script, not run it. Every user 
script has to be given a name that ends in .user.js; .script is not an 
extension GM recognizes. Whenever you open a .user.js file in Firefox, 
Greasemonkey will pop up an installation dialog to confirm you really 
want to install the script, so if you don't get that dialog, you know 
that GM didn't recognize your file as a user script.

On 2010-01-02 08:51, Ben Stover wrote:
> Sorry for this newbie question but how do I start a greasemonkey script from 
> my local hard disc?
>
> I wrote the simple script (see bottom of this posting) into a file
>
> D:\tmp\myscript.script
>
> and dragged this file on my Firefox (Greasemonkey addon is installed and 
> enabled).
> After dragging the following URL is visible in the browser:
>
> file:///D:/tmp/myscript.script
>
> But after hitting RETURN the script does not run.
>
> Why?
>
> Do all scripts have to be on a server and accessible only through http://  
> protocol - no file:/// possible?
>
> Ben
>
>
>
> // ==UserScript==
> // @name                        Test
> // @namespace           Foo
> // @description         Test
> // @include                     *CFIDE/debug/blank.html*
> // @version                     0.0.1
> // ==/UserScript==
>
> var x = document.createElement("<iframe>");
> x.src = "http://www.google.com";;
> document.body.appendChild(x);
> var x = document.createElement("<iframe>");
> x.src = "http://www.yahoo.com";;
> document.body.appendChild(x);
> var x = document.createElement("<iframe>");
> x.src = "http://www.bing.com";;
> document.body.appendChild(x);
>    
-- 
cc | pseudonymous |<http://carlclark.mp/>


--

You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.


Reply via email to