[Greasemonkey] gm addedd javascript would work without it?
Jeremy Dunck
jdunck at gmail.com
Wed Jun 28 20:11:15 EDT 2006
On 6/28/06, chris feldmann <cfeldmann at gmail.com> wrote:
> Sure, you can. You can put forms with as many inputs as you want all
> over the web with greasemonkey. What you can't do is put the code
> needed to accept and process those inputs on the webservers behind the
> webpages, which makes the exercise rather pointless.
Not necessarily true, if he's naming the controls he's creating the
same as some previously-included textbox or something.
I just saw a lame form that required an exact match on a string input,
but provided a popup for a valid list of values, earlier today. Some
pages suck. User script authors generally don't.
Try this:
====
unsafeWindow.location.href = 'javascript:void(var mytestvar=1)';
if (window.mytestvar) { //js enabled, continue.
}
====
I think that approach will work.
More information about the Greasemonkey
mailing list