Recent posts by wmblewett

Subscribe to Recent posts by wmblewett 33 posts found

Sep 10, 2008
wmblewett 33 posts

Topic: Script development / Replace Body tag?

I'm looking at this site and he's got his vlink alink bgcolor, etc... all in the body tag. Can I replace this with a simple <body>?

I've done css insertion/replacement before but this body thing seems easier.</body>

 
Sep 8, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Search Span for specific text, display div if present

How can I make that inserted div have a specific class name or id?

 
Aug 23, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Search Span for specific text, display div if present

I don't know why the previous one wasn't working... yours, however, is working... Thanks alot, this will give me a great start on this project I'm working on.

 
Aug 22, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Search Span for specific text, display div if present

Thanks for the reply RunningBlind, but I wasn't able to make it work.

Here's a broader description of what I'm trying to do. I want to scan a page for these key words located in 'reason' class. If those words are present I want a div to fade in (using a remote javascript) covering the whole screen. I want to say the reason the warning is there (which of the key words it matched) and then I want the user to be able to click a link to rehide the div.

 
Jul 27, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Search Span for specific text, display div if present

I'm trying to search a span (class="reason") for 1 or 2 specific text strings ("example", "two worder") and then if either or both are present display a div. If any of those words are not present then the div remains hidden.

The div is not present on the page as is, that needs to be inserted with the script as well.

 
Jul 18, 2008
wmblewett 33 posts

Topic: The Banana Bar / Greasemonkey Error "GM_getconfig is not defined"

thanks guys... sorry for posting in the wrong place.

 
Jul 17, 2008
wmblewett 33 posts

Topic: The Banana Bar / Greasemonkey Error "GM_getconfig is not defined"

I've not been able to install new scripts for quite some time. The error in the subject line displays every time I try to install one. I've uninstalled and reinstalled Greasemonkey several times and still get the error. The only google result for that search string sends me to some russian site that I can't read, so any help in how I can get rid of this is appreciated.

 
Apr 1, 2008
wmblewett 33 posts

Topic: Script development / Problem Populating form

Well I give up... it's obviously something wrong w/ my comp and not the script... It's been more trouble than it's worth already... thank you all for your help.

 
Mar 28, 2008
wmblewett 33 posts

Topic: Script development / Problem Populating form

@descriptor: thanks... but there's no way that would have any effect on the form displaying is there?

 
Mar 28, 2008
wmblewett 33 posts

Topic: Script development / Problem Populating form

@znerp: hmmm... I guess I'd better go through w/ extensions disabled to see if there's a conflict... I have no other userscripts active on the page... I'll post back if I find anything out...

Edit: well I disabled all extensions (except greasemonkey, of course) and still no luck... Although since it worked for you znerp that definitely points to the problem being with me and not with the page... This really doesn't make any sense to me... anyone have any ideas?

 
Mar 28, 2008
wmblewett 33 posts

Topic: Script development / Problem Populating form

@znerp I tried what you suggested and it still did not work... I've used the script format that I listed above for months all over the web and have had very few problems.

Is there something unique about this page that I am not seeing that would keep the form from being populated?

 
Mar 28, 2008
wmblewett 33 posts

Topic: Script development / Problem Populating form

Ok... so I get the alert... it was "forms[1]". But I'm still unable to populate using the same code above for form[1].

Here's the full URL of an example, not sure why it got cut off above.
http://www.quickstopentertainment.com/2008/03/2...

 
Mar 26, 2008
wmblewett 33 posts

Topic: Script development / Problem Populating form

I'm trying to autofill the form at http://www.quickstopentertainment.com/2008/03/2...

Here's my script

document.forms[2].elements.namedItem('email').value = "xxxxxxx@gmail.com";
document.forms[2].elements.namedItem('fname').value = "xxxx";
document.forms[2].elements.namedItem('lname').value = "xxxxxxx";
document.forms[2].elements.namedItem('address').value = "xxxx xxxxxxxx xx";
document.forms[2].elements.namedItem('address2').value = "xxx";
document.forms[2].elements.namedItem('city').value = "xxxxxxxxxx";
document.forms[2].elements.namedItem('state').value = "xx";
document.forms[2].elements.namedItem('zip').value = "xxxxx";
document.forms[2].elements.namedItem('country').value = "xxx;
document.forms[2].elements.namedItem('birthmonth').value = "x";
document.forms[2].elements.namedItem('birthday').value = "xx";
document.forms[2].elements.namedItem('birthyear').value = "xx";

I've played with the form number and used 0, 1, 2 and 3. (isn't the 3rd form numbered 2?)

Can anyone help me see why this isn't populating?

 
Mar 12, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Do I need to delay document.form.submit(); ?

thanks alot dob

 
Mar 12, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Do I need to delay document.form.submit(); ?

I'm using document.forms[0].submit(); to automatically submit a form... Do I need to delay it to make sure that the values have been filled or am I worrying too much? If I do need to delay it (for like a second) how do I do that?. Thanks.

 
Feb 28, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Add to link URL

Awesome... thanks a lot znerp. This one has the bonus of not changing the links which don't end in .html as well (a link to a directory for ex)... may the minute's you've saved me be added to your life.

 
Feb 28, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Add to link URL

I'm trying to find/make a script that adds the word "entry" at the end of every link's URL on the page.

for example

1.html
2.html
3.html

become

1entry.html
2entry.html
3entry.html

I've found scripts for replacing all links to point to the same URL, but that's not what I'm looking for.

 
Feb 26, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Request for gmail script

Yes it's for contacts... it's like an electronic business card... http://en.wikipedia.org/wiki/Vcard

 
Feb 26, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Maximum word length in feed aggregator

well, nothing I suppose, but I've gotten better javascript help here than anywhere else.

 
Feb 26, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Maximum word length in feed aggregator

A friend of mine has a website and whenever some yahoo in his feed aggregator posts long words, or long links in the first paragraph of their post it funks up his CSS outline.

Is there a script he can put on his page to limit the maximum word length to something like 25-30 characters (either cutting the word off or inserting an arbitrary ?).

 
Feb 24, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Hide links based on content date

ya... good thinking... I never thought of that... thanks a lot Mikado... that was a far simpler script than I imagined it would be.

 
Feb 24, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Hide links based on content date

http://www.classicheartland.com/sweepstakes/swe...

 
Feb 23, 2008
wmblewett 33 posts

Topic: Ideas and script requests / Hide links based on content date

I'd like to get a script that is WAY over my head...

here's what I'd like it to do

1. get todays date...
2. convert it to MM/DD/YYYY
3. analyze a page full of links, all of which contain a date, amongst other things
4. if the date contained in the link has passed, hide the link.

The links don't have names or id's... they're all on their own < p > ... they have other text in the < a > < /a > other than just the date. All of the dates are wrapped in parenthesis as either (expires MM/DD/YYYY) or (expired MM/DD/YYYY)

Is this something that can be done? And more importantly, is there a kind soul out there willing to put it together for me?

 
Oct 23, 2007
wmblewett 33 posts

Topic: Script development / Help w/ Form Values

Thanks a lot Descriptor...

What about where the form itself isn't given an Id? It's just given a Name also.

 
Oct 22, 2007
wmblewett 33 posts

Topic: Script development / Help w/ Form Values

Hey,

So, I know to edit the value of a form field you can use "document.getElementById('XXXXXXX').setAttribute('value', 'YYYYYYYY');"

But what about when the input isn't given an 'ID', but just a 'Name'?

I tried: "document.getElementByName('XXXXXXX').setAttribute('value', 'YYYYYYYY');" but no dice.

Can anyone help?
Thanks