Re: [greasemonkey-users] How to remove a full div class=foobar.../div pane?

2013-05-27 Thread cc
with Greasemonkey? The webpage should be treated just as if the DIV section had never been defined. So all webpage content below the DIV pane should be visually shifted accordingly to the top border. Ben -- cc | pseudonymous | http://carlclark.mp/ -- You received this message because you are subscribed

Re: [greasemonkey-users] How to remove a full div class=foobar.../div pane?

2013-05-27 Thread cc
On 2013-05-27 11:51, LWChris@LyricWiki wrote: Am 27.05.2013 11:10, schrieb cc: Grab a reference to the div, then set its style.display property to none. For example (untested): var divFoobar = document.evaluate('//div[@class=foobar]', document, null, typeXPathResult.FIRST_ORDERED_NODE_TYPE

Re: [greasemonkey-users] Can GreaseMonkey do this ? act as if it is me playing a game. in other words -------

2013-01-27 Thread cc
a lot of time learning grease monkey only to discover it will not do anything like this. I would like to know - Is grease money the wrong tools for me to use to accomplish what I want ? -- cc | pseudonymous -- You received this message because you are subscribed to the Google Groups

Re: [greasemonkey-users] GM: Double Check

2011-07-05 Thread cc
the smoothest way to Install GM and our application, to do this I need two scripts: 1. A code able to check whether GM is installed 2. A code able to check whether our application is installed (only when GM is installed) Do you think it could be feasible? -- cc | pseudonymous |http://carlclark.mp

Re: [greasemonkey-users] Vocabulary learning assistant.

2011-06-25 Thread cc
with Javascript or Greasemonkey coding, my only experience is with LUA. -- 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 greasemonkey-users@googlegroups.com

Re: [greasemonkey-users] Re: Vocabulary learning assistant.

2011-06-25 Thread cc
).textContent = text; } } (Read https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace for more info -- this is an awesome function, let me tell you.) -- cc | pseudonymous |http://carlclark.mp/ -- You received this message because you are subscribed to the Google

Re: [greasemonkey-users] Vocabulary learning assistant.

2011-06-25 Thread cc
/Global_Objects/... for more info -- this is an awesome function, let me tell you.) -- cc | pseudonymous |http://carlclark.mp/ -- 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

Re: [greasemonkey-users] facebook

2010-09-07 Thread cc
On 2010-09-07 15:29, Jim wrote: how do you unhide greasemonkey on facebook? What do you mean by unhide, exactly? What script(s) are you using, or trying to use? (Please include URLs for the scripts if at all possible.) -- cc | pseudonymous |http://carlclark.mp/ -- On the keyboard of life

Re: [greasemonkey-users] Re: facebook

2010-09-07 Thread cc
, exactly? What script(s) are you using, or trying to use? (Please include URLs for the scripts if at all possible.) -- cc | pseudonymous |http://carlclark.mp/ -- On the keyboard of life, always keep one finger on the escape key. = tagzilla.mozdev.org -- cc | pseudonymous |http://carlclark.mp

Re: [greasemonkey-users] Re: facebook

2010-09-07 Thread cc
for the scripts if at all possible.) -- cc | pseudonymous |http://carlclark.mp/ -- On the keyboard of life, always keep one finger on the escape key. = tagzilla.mozdev.org -- cc | pseudonymous |http://carlclark.mp/ -- You cannot achieve the impossible without attempting the absurd. = tagzilla.mozdev.org

Re: [greasemonkey-users] How-To Question for a GreaseMonkey Newbie

2010-08-29 Thread cc
')...new text.../a Now, myScript is the main object in my user.js file. The problem is that I get the following error message when I click on the modified link: Error: myScript is not defined How do I get that link to invoke a function in my user.js file? Thanks. -- cc | pseudonymous |http

Re: [greasemonkey-users] Re: How-To Question for a GreaseMonkey Newbie

2010-08-29 Thread cc
); Thanks. -- cc | pseudonymous |http://carlclark.mp/ -- Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. «= tagzilla.mozdev.org -- You

Re: [greasemonkey-users] Greasemonkey mod for Firefox 4.0 beta 5 works very fine

2010-08-19 Thread cc
scam -- cc | pseudonymous |http://carlclark.mp/ -- Value restrictions tend to force arity reification. This is icky. «= tagzilla.mozdev.org -- You received this message because you are subscribed to the Google Groups greasemonkey-users group. To post to this group, send email to greasemonkey-us

Re: [greasemonkey-users] Greasemonkey mod for Firefox 4.0 beta 5 works very fine

2010-08-19 Thread cc
Eh, I wouldn't blame you all that much... and I didn't install it either ;) (perhaps because I'm still on 3.6.8? :P). On 2010-08-19 19:49, John Plsek wrote: I still wouldn't download and install an addon from .cn domain (or .ru or .ro etc etc) On 20 August 2010 12:44, cc carlcl

Re: [greasemonkey-users] XPCComponents, unsafeWindow and newer Geckos

2010-08-04 Thread cc
location or anything to something I haven't cleaned up before. And so remains my original question :) Anthony's suggestion, actually, was intended to help with that -- have you tried using the location hack as linked to eliminate the usage of unsafeWindow? -- cc | pseudonymous |http

Re: [greasemonkey-users] Re: Prevent flicker?

2010-08-01 Thread cc
The corrected second link is I believe http://wiki.greasespot.net/Talk:Metadata_Block On 2010-07-31 22:53, YAOMTC wrote: Did you notice that one of the two links you used was the one I linked to in the OP? Also there's no content in your second link... -- cc | pseudonymous |http

Re: [greasemonkey-users] Re: Firefox 4.0b1

2010-07-15 Thread cc
-on for Firefox... Testing Firefox 4.0b1 now, and am missing my userscripts. Please sort it. -- cc | pseudonymous |http://carlclark.mp/ -- ~ On the keyboard of life, always keep one finger on the escape key. ~ http://tagzilla.mozdev.org v0.066 -- You received this message because you

Re: [greasemonkey-users] Re: is GM the right choice for my application?

2010-07-06 Thread cc
///path/ meta-scheme. Thanks for correcting me! I learned something new today -- 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 greasemonkey-us

Re: [greasemonkey-users] Re: is GM the right choice for my application?

2010-07-05 Thread cc
#Can_Greasemonkey_be_used_to_open_local... -- PJH -- cc | pseudonymous |http://carlclark.mp/ -- ~ Smash forehead on keyboard to continue ~ http://tagzilla.mozdev.org v0.066 -- You received this message because you are subscribed to the Google Groups greasemonkey-users group. To post to this group, send

Re: [greasemonkey-users] Greasemonkey not working in new Flickr page layout

2010-07-01 Thread cc
prior posts, but I'm hoping to find out whether Greasemonkey scripts will be revised so that they work in the new Flickr format, which is now in preview but about to become permanent. -- cc | pseudonymous |http://carlclark.mp/ -- ~ Due to cutbacks, the light at the end of the tunnel

Re: [greasemonkey-users] Re: read from local file

2010-05-29 Thread cc
} } } ); } On Sat, May 29, 2010 at 10:55 PM, jyothi panidarapu jyothi.panidar...@gmail.com mailto:jyothi.panidar...@gmail.com wrote: On Sat, May 29, 2010 at 9:46 PM, cc carlcl...@lavabit.com mailto:carlcl

Re: [greasemonkey-users] Re: read from local file

2010-05-26 Thread cc
://groups.google.com/group/greasemonkey-users?hl=en. Healthcare.com : Request Health Insurance Quotes Leading Health Insurance Providers http://click.lavabit.com/?r=MTYyNjA5 -- cc | pseudonymous |http://carlclark.mp/ -- ~ A clean house is a sign of a misspent life. ~ http://tagzilla.mozdev.org

Re: [greasemonkey-users] Re: read from local file

2010-05-25 Thread cc
) ? I hope you got my doubt. On Tue, May 25, 2010 at 6:35 PM, Anthony Lieuallen arant...@gmail.com mailto:arant...@gmail.com wrote: On 05/25/10 02:29, jyothi panidarapu wrote: .. how to use GM_setValue().. http://wiki.greasespot.net/GM_setValue -- cc | pseudonymous |http

Re: [greasemonkey-users] Re: new to grease monkey

2010-05-22 Thread cc
. To unsubscribe from this group, send email to greasemonkey-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/greasemonkey-users?hl=en. -- cc | pseudonymous |http://carlclark.mp/ -- ~ Think honk if you're telepathic. ~ http

Re: [greasemonkey-users] Re: new to grease monkey

2010-05-22 Thread cc
your question? Erik On 2010-05-21, at 19:39, hangdawghangdawg...@gmail.com wrote: why is there a time delay for scripts to work -- cc | pseudonymous |http://carlclark.mp/ -- ~ Think honk if you're telepathic. ~ http://tagzilla.mozdev.org v0.066 -- You received this message

Re: [greasemonkey-users] programatically turning off a greasemonkey script

2010-04-28 Thread cc
it off at that point? Thanks! -- cc | pseudonymous |http://carlclark.mp/ -- ~ Today’s lesson is brought to you by the word niggardly. Remember kids, don’t attribute to racism what can be explained by Scandinavian language roots. –Robert Royall ~ http://tagzilla.mozdev.org v0.066 -- You received

Re: [greasemonkey-users] Error message when downloading Grease Monkey

2010-04-18 Thread cc
/addon-748-latest.xpi?src=addondetail because: Invalid file hash (possible download corruption) -261I tried clearing my cache but still wont install. Please Help -- cc | pseudonymous |http://carlclark.mp/ -- You received this message because you are subscribed to the Google Groups

Re: [greasemonkey-users] Re: Cannot get tutorial to work

2010-04-16 Thread cc
() { alert('hello world'); }; window.setTimeout('helloworld()', 60); -- cc | pseudonymous |http://carlclark.mp/ -- ~ If I am nobody and nobody is perfect does that mean that I am perfect? Yes, yes, it does. ~http://tagzilla.mozdev.orgv0.066 -- You received this message

Re: [greasemonkey-users] My Greasemonkey has disappeared

2010-04-10 Thread cc
for any help. -- 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 greasemonkey-us...@googlegroups.com. To unsubscribe from this group, send email to greasemonkey

Re: [greasemonkey-users] Link sharing: URL, title and description

2010-04-07 Thread cc
/share.php?url=blahtitle=thetitledescription=blahblahblah Would appreciate any help with this. I'm hoping someone knows an existing script or could help me write one. This functionality would be similar to FireFox extensions like AddThis, DiggBar etc but is for local use only. -- cc | pseudonymous |http

Re: [greasemonkey-users] how to call a function? I thought it's easy

2010-03-12 Thread cc
= red; document.getElementById('divnotas').style.background = #00; //Crear botón extractor de información document.getElementById('divnotas').innerHTML = 'input type=button value=Recolectar info onClick = recolecta();'; -- cc | pseudonymous |http://carlclark.mp/ -- You received

Re: [greasemonkey-users] Re: What does (function(){...})(); mean in Greasemonkey?

2010-03-12 Thread cc
with evalInSandbox, for security. This last wrapping is what's responsible for unsafeWindow and friends, or more accurately for why there's a distinction possible between unsafeWindow and window.) -- cc | pseudonymous |http://carlclark.mp/ Sounds good. If GM double-wraps my code, I don

Re: [greasemonkey-users] Re: Grease Monkey - Iframes load remote domain

2010-03-12 Thread cc
was the Iframe Injector script i have over here http://gist.github.com/326029. I need to pass the url over to it. There used to be a script that would do this for you already, but the site that hosted the remote .JS got shutdown for a month. Thats why i am trying to make this script. -- cc

Re: [greasemonkey-users] What does (function(){...})(); mean in Greasemonkey?

2010-03-09 Thread cc
* -- once with an anonymous function, for compatibility and reliability, and once with evalInSandbox, for security. This last wrapping is what's responsible for unsafeWindow and friends, or more accurately for why there's a distinction possible between unsafeWindow and window.) -- cc

Re: [greasemonkey-users] Click a link using Javascript and GreaseMonkey

2010-03-01 Thread cc
programatically? Any help on this would be greatly appreciated. Thanks in advance. Regards, Fede -- 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 greasemonkey-us

Re: [greasemonkey-users] Re: How to extract text from a Javascript block in an HTML document?

2010-02-28 Thread cc
, Feb 27, 2010 at 5:44 PM, cc carlcl...@lavabit.com mailto:carlcl...@lavabit.com wrote: Cautionary note: read the entirety of http://wiki.greasespot.net/UnsafeWindow, especially if you're going to be running the script on a page you don't control. Bad things can happen when you use

Re: [greasemonkey-users] Re: How to extract text from a Javascript block in an HTML document?

2010-02-28 Thread cc
that specifically. My bad. -- 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 greasemonkey-us...@googlegroups.com. To unsubscribe from this group, send email to greasemonkey

Re: [greasemonkey-users] Re: How to extract text from a Javascript block in an HTML document?

2010-02-27 Thread cc
what that umm means.) -- cc | pseudonymous |http://carlclark.mp/ -- || Confidence is the feeling you have before you really understand the problem. || http://tagzilla.mozdev.org v0.066 -- You received this message because you are subscribed to the Google Groups greasemonkey-users group

Re: [greasemonkey-users] Disable some scrits on website.

2010-02-22 Thread cc
type=text/javascript if (blahblah) { blah; } else if (blahblah2) { blah2; } /script I need greasemonkey code that will disable it. I hope there is some simple solution. Thank you. -- cc | pseudonymous |http://carlclark.mp/ -- || Why do people ask Has the bus come yet? If the bus

Re: [greasemonkey-users] GM_xmlhttpRequest progress event?

2010-02-20 Thread cc
Well, does it? Try it and see, and let us know. (Note: I've not yet had reason to use GM_xhr, so I have no idea one way or another.) On 2010-02-20 21:45, Yansky wrote: Does GM_xmlhttpRequest have access to the progress event when using the binary method to upload files? -- cc | pseudonymous

Re: [greasemonkey-users] Reinstalling script causes it to stop working

2010-02-19 Thread cc
the script, then installing it, and it still doesn't work. I place an alert at the beginning of the script and it doesn't fire. Any idea why re-installing would cause a script to stop working? TIA, Ed -- cc | pseudonymous |http://carlclark.mp/ -- || 640K ought to be enough RAM for anybody

Re: [greasemonkey-users] Re: child anchor iteration

2010-02-11 Thread cc
what I'm trying to do? -- cc | pseudonymous |http://carlclark.mp/ -- 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 greasemonkey-us

Re: [greasemonkey-users] Re: child anchor iteration

2010-02-11 Thread cc
of every single message here? (Otherwise, I have no idea what our group means.) -- 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 greasemonkey-us

Re: [greasemonkey-users] grease monkey has support for firefox.......why not convert it to a chrome extenstion?

2010-02-11 Thread cc
. it would be nice if the best addon i used on firefox would become an extension on googles chrome browser. start now before the actually OS comes out? kinda just an idea on my end. -- cc | pseudonymous |http://carlclark.mp/ -- || Better to understand a little than to misunderstand a lot. || http

Re: [greasemonkey-users] gm_scripts

2010-02-09 Thread cc
least relative to your user directory.) On 2010-02-09 19:24, Brian wrote: my scripts are in the folder, but GM is not finding them today ... I'm sure there is something boneheadedly simple I am overlooking, but I can't figure out why not ... no problems until today -- cc | pseudonymous

Re: [greasemonkey-users] How do you change a TextBox on a page

2010-02-08 Thread cc
File all new bugs as UNCONFIRMED by default (useful only if you have CANCONFIRM) // @include https://bugzilla.mozilla.org/enter_bug.cgi* // // @copyright 2010, cc (http://carlclark.mp/) // @license GPL version 3 or any later version: http://www.gnu.org/copyleft/gpl.html

Re: [greasemonkey-users] [Request] processing multiple form inputs at once

2010-02-07 Thread cc
. Thanks, vst1 -- cc | pseudonymous |http://carlclark.mp/ -- || One out of every three Americans is suffering from some form of mental illness. Think of two of your best friends. If they are OK, then it must be you. || http://tagzilla.mozdev.org v0.066 -- You received this message because

[greasemonkey-users] Re: Hello Developers.I need a function.

2010-01-26 Thread cc
a list from web server when - when user enable one of the profiles or will install one of the scripts and make one more @include param - @@browser it enables catching the browser`s events make a new event GM_scriptInstall Ouch. That's a ton of work to design, implement, and test. -- cc

Re: [greasemonkey-users] Include jQuery on a google.com page - HOW?

2010-01-23 Thread cc
instructions) Would it be possible (and HOW?) to only include the Google-hosted jQuery when/if needed? And use the Google-API otherwise? Not really, and per above, it's not necessary either -- or useful, IMHO. /Kia Hope this helps. -- cc | pseudonymous |http://carlclark.mp/ -- ? I hit

Re: [greasemonkey-users] making scripts for opening links in new tab

2010-01-09 Thread cc
with that in the past.) On 2010-01-09 17:52, Damascus wrote: can someone help me make a userscript? i need to add various domains to it that i would like the links to open in a new tab. and vice versa another usercript where i add domains to the script which open links only in the current tab -- cc

Re: [greasemonkey-users] Re: making scripts for opening links in new tab

2010-01-09 Thread cc
? also what is the format for adding multiple domains to it? -- 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 greasemonkey-us...@googlegroups.com. To unsubscribe

Re: [greasemonkey-users] How to auto-fill form fields and submit action with GM ?

2010-01-06 Thread cc
=inpLoginPasswd type=password name=password/ input class=submit type=submit value=Login name=rv_dologon/ /fieldset ul id=loginLinks /ul /form Ben -- cc | pseudonymous |http://carlclark.mp/ -- You received this message because you are subscribed to the Google Groups greasemonkey-users group

Re: [greasemonkey-users] starting a user script from local hard disc possible?

2010-01-02 Thread cc
= 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

Re: [greasemonkey-users] Run Greasemonkey on Local Pages

2009-12-29 Thread cc
stored HTML pages. This was very handy, especially when combined with the Scrapbook add-on. Does anyone know of a way to restore this behavior to a script? -- cc | pseudonymous |http://carlclark.mp/ -- You received this message because you are subscribed to the Google Groups greasemonkey

Re: [greasemonkey-users] @require 302 Found response treated as error (was: REALLY IMPORTANT BUG)

2009-12-27 Thread cc
, Electroduck wrote: REALLY IMPORTANT: the metadata @require statment is TOTALLY broken! It thinks HTTP code 302 is an error! -- cc | pseudonymous |http://carlclark.mp/ -- You received this message because you are subscribed to the Google Groups greasemonkey-users group. To post

Re: [greasemonkey-users] Detect TAB click (change)

2009-12-19 Thread cc
also need to take into account the other keyboard shortcuts as well. (Ctrl page up/down and Ctrl 0-9.) -- 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

Re: [greasemonkey-users] Followup on the link-text replacing script

2009-12-16 Thread cc
. 'g' stands for global, and tells replace() to replace not just the first, but all instances found with the given replacement. link = link.replace(trafficholder.com, foo2); anchors[i].href = link; } -- cc | pseudonymous |http://carlclark.mp/ -- You received this message because

Re: [greasemonkey-users] Bug report?

2009-12-13 Thread cc
some page tabs on Facebook, specifically Facebook groups. The tabs re-appear when I deactivate Greasemonkey. -- 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

Re: [greasemonkey-users] I don't understand element replacement

2009-12-13 Thread cc
again. -- 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 greasemonkey-us...@googlegroups.com. To unsubscribe from this group, send email to greasemonkey-users

Re: [greasemonkey-users] Facebook friend, fan, attending and group blocks - IN ITALIAN

2009-12-12 Thread cc
I can probably do some simple modifications to these scripts; care to share the URLs (there are thousands of userscripts)? Also, it'd probably be best to take this off-list, to avoid spamming everyone. On 2009-12-12 08:08, Wendell Ricketts wrote: Does anyone know whether scripts exist for

Re: [greasemonkey-users] Script for modifying web page and adding header footer.

2009-12-12 Thread cc
You'll need to write a script that will do approximately the following (high-level): 1. Read in the entire contents of the page, with something like document.textContent 2. Fix up the text by using .replace(), probably on a RegExp object 3. Use document.write to spit out the

Re: [greasemonkey-users] Re: Text replace in links

2009-12-01 Thread cc
On 2009-12-01 18:21, Thor wrote: Thanks! I'm rather new to the scripting language and appreciate your help. Using your changes, I was able to get the script working properly. I'm not sure what you meant by Do you really need to be using regexes for search patterns, and wouldn't it be better

Re: [greasemonkey-users] Odd problem with this.getAttribute

2009-11-21 Thread cc
On 2009-11-21 10:26, Patrick Wiseman wrote: Hello GM'ers: I'm having a funny problem with this.getAttribute. Here's a couple of code snippets: function doWhatever() { def=this.getAttribute('id'); } This, as expected, assigns the value of 'id' to def. function doWhatever(abc) {

Re: [greasemonkey-users] greasemonkey interact with existing js

2009-11-18 Thread cc
On 2009-11-18 07:11, danicgross wrote: Hi, Suppose I have a javascript file (loaded normally) that has a function 'doSomething();' Could that function be defined within a greasemonkey script? I assume you mean *re*defined, and yes, it can. Add a script element to the page with the

Re: [greasemonkey-users] lightbox is not working with deveantart.com

2009-11-12 Thread cc
Two points: a) what is Lightbox, anyway? b) if an individual script is not working, this probably isn't the place to ask for support (at least not initially). Try that script's discussions or issues page first. On 2009-11-12 23:04, Govind Arora wrote: lightbox is not working with

[greasemonkey-users] Re: semaphore using GM_*value?

2009-11-08 Thread cc
On 2009-11-08 14:06, Kodak wrote: On 8 Lis, 22:23, Anthony Lieuallenarant...@gmail.com wrote: On 11/8/2009 1:31 PM, Kodak wrote: If Javascript is single-threaded then it is per window. Do you have any evidence to back up this statement? I do not believe it to be true.

[greasemonkey-users] Re: youtube download videos

2009-10-28 Thread cc
Patrick, a quick note on this (not sending to list). If I'm not mistaken, this quote from the YouTube TOS explicitly forbids downloading videos unless there's a download link there, provided by YouTube (as opposed to by a Greasemonkey script, for example): You may access User Submissions for

[greasemonkey-users] Re: How to obtain a number from the site

2009-10-26 Thread cc
What you're actually looking for is something a little more like this, I think: var ew = document.evaluate(//strong[2], document, null, 9, null).singleNodeValue; if (ew) { ew = ew.innerHTML * 1; alert(Number of earthworms is + ew); } This works (or doesn't; I haven't actually

[greasemonkey-users] Re: How to obtain a number from the site

2009-10-24 Thread cc
The return only works if the chunk of code is within a function. If you're using a current version of Greasemonkey, it should just work (because most versions wrap the script in an anonymous function before executing). Alternatively, reverse the logic of the if statement and put the two

[greasemonkey-users] Re: Cant add scripts in firefox!?

2009-10-20 Thread cc
Check the Extensions again, to make sure that it's listed. If it is, try uninstalling it first, restarting Firefox, then installing again. On 2009-10-19 10:39, Macaroni Toothpick wrote: Ok I dont see any monkey in my status bar, reinstalled greasemonkey then restarted still no monkey

[greasemonkey-users] Re: Page content changes

2009-10-12 Thread cc
Normally, I would suggest adding an event listener and listening for events, doing fancy AJAX-y stuff, all that kind of thing. But in this case, there are actually two Firefox addons that will almost certainly do a better job faster and easier, so I recommend you use one or both of them

[greasemonkey-users] Re: Handling frames

2009-10-11 Thread cc
The problem may simply be that GM does not like having a '*' wildcard in the protocol, though that didn't seem to cause any trouble when I tested it. But I suspect the problem is that the frame's URL does not match the wildcard specified for some reason or other. Check to make sure the frame

[greasemonkey-users] Re: newline question

2009-09-28 Thread cc
Try something like ||text + escape(\r\n) + more text|| to create a CRLF between text and more text (untested, but should work). If that doesn't do the job, try encoding the HTML entities (#13;#10;). HTH. On 2009-09-28 22:26, JoeW wrote: Hey there, I am new to Greasemonkey. Loving t so far.

[greasemonkey-users] Re: I need some help with my first script :p

2009-09-15 Thread cc
elfio wrote: Hello. I'm from Spain and my english is not very good. Please excuse me. Eh, your English is actually not too bad, especially compared to a lot of my own countrymen in America. ;-) I was looking for spanish support or a community but I only found english documentation. I

[greasemonkey-users] Re: I need some help with my first script :p

2009-09-15 Thread cc
elfio wrote: (snip) No, you will not. Like I said above, user scripts are separate. (You _could_ access them, with unsafeWindow: but like the name says, it is unsafe! You should not use it.) But I need access to some variables of the page. How can I do it without use unsafeWindow?

[greasemonkey-users] Re: I need some help with my first script :p

2009-09-15 Thread cc
elfio wrote: (snip) Well, could show you the code, but I don't have a real code... I mean that everything I have written didn't work so I have no code to improve, continue or other... I think I'm explaing very wel if is there, please tell me :p Well, if your code was working, you

[greasemonkey-users] Re: Script To Get the Geo-location of an IP address

2009-09-04 Thread cc
Well, what is your question? Are you asking someone to write your script for you? Then yes, that probably is a dumb question. Are you, on the other hand, asking how this script would likely have to work? That's not such a dumb question. General outline is to add a capturing event listener

[greasemonkey-users] Re: @require not working for me

2009-09-01 Thread cc
There's an easier and better way to (re)install a GM script: navigate to the .user.js file on e.g. http://localhost/path/to/script.user.js This will prompt for installation of the script, download @require resources, and so forth. So I suggest you copy your primary user script into a directory

[greasemonkey-users] Re: Facebook ad removal scripts do not work

2009-08-16 Thread cc
I'm not at all sure why you're trying to use Greasemonkey scripts to block ads in the first place. Can't AdBlock Plus (http://adblockplus.org/en/installation) do the job much faster and tidier? For one thing, GM scripts can't block ads from being downloaded, like ABP can. Also, you don't

[greasemonkey-users] Re: GM_setValue/GM_getValue not working in event listener set with addEventListener?!?

2009-08-08 Thread cc
analysis and so forth, (apparently) without suffering security holes. What happened to that, and why would that have worked? Anthony Lieuallen wrote: On 8/2/2009 9:29 PM, cc wrote: Digging into the GM source code, it sure looks like it was a deliberate choice (which I'd rather like to hear

[greasemonkey-users] Re: execute String with GM_functions

2009-07-25 Thread cc
It's not the script you have to trust so much as the pages it runs on. And that's too much to expect from users, in general. Plus, it adds complexity (which usually means bugs and more strange behavior) for very little benefit to most users or even developers. Sorry about that, but security

[greasemonkey-users] Re: execute String with GM_functions

2009-07-19 Thread cc
Why do you need to use eval() in the first place? Usually, that's a sign of a design flaw somewhere. Are you trying to grab a JSON value or something? If so, there's a much safer parser available, for example, at http://www.json.org/js.html. If you absolutely must execute GM functions from