Recent posts by Yansky

Subscribe to Recent posts by Yansky 38 posts found

Jun 27, 2008
Yansky 38 posts

Topic: Userscripts.org discussion / Spam and malware

http://userscripts.org/users/57428 - spammer

 
Mar 8, 2008
Yansky 38 posts

Topic: Ideas and script requests / Request for gmail script

tomatz can you send me a test .vcf file? My email it forboden at gmail dot com

Cheers.

 
Feb 29, 2008
Yansky 38 posts

Topic: Ideas and script requests / Youtube with better quality

I've updated it so that you shouldn't need to go 2 steps back now. :)

 
Feb 29, 2008
Yansky 38 posts

Topic: Ideas and script requests / Youtube with better quality

Holy crap I had no idea you could do that!

Here a quick script: http://userscripts.org/scripts/show/23366

 
Feb 28, 2008
Yansky 38 posts

Topic: Script development / Need some basic find/replace help

http://developer.mozilla.org/en/docs/Core_JavaS...

 
Feb 28, 2008
Yansky 38 posts

Topic: Script development / I found a nice tool to remove ADs of Yahoo mail, hotmai and Gmail

How do I get it to block ads for Webmail AD Blocker?

 
Feb 28, 2008
Yansky 38 posts

Topic: Script development / Avoid rendering before modifications

It's not that hard to convert your script to an extension if your script doesn't use any GM api's.

 
Feb 26, 2008
Yansky 38 posts

Topic: Ideas and script requests / Request for gmail script

Ahh, now I get it. Yeah that should be possible.

Time permitting, I'll try and write it up in the next couple of days.

 
Feb 26, 2008
Yansky 38 posts

Topic: Ideas and script requests / Request for gmail script

You don't get a download link for a vcard all you get is the option to download the .vcf file (which is attached to the email as a regular file would be). Using an email client the .vcf is automatically (or on demand) downloaded and displayed in a window.

I'm totally confused. :P

 
Feb 26, 2008
Yansky 38 posts

Topic: Ideas and script requests / Request for gmail script

So where is the download link for "vcards"?

This is all I see: http://img.photobucket.com/albums/v215/thegoodd...

 
Feb 26, 2008
Yansky 38 posts

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

http://www.w3schools.com/css/pr_pos_overflow.asp

 
Feb 26, 2008
Yansky 38 posts

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

Probably, but what does that have to do with greasemonkey?

 
Feb 26, 2008
Yansky 38 posts

Topic: Script development / Edit part of page loaded by ajax

Can you post a link to the page?

 
Feb 26, 2008
Yansky 38 posts

Topic: Ideas and script requests / Request for gmail script

What are vcards? I looked in my gmail page and I couldn't find a download link for "vcards". Are they contacts?

 
Feb 26, 2008
Yansky 38 posts

Topic: Script development / Edit part of page loaded by ajax

Sweeeeet, it worked. (setTimeout())
I love JS.

Cool, glad i could help. :)

 
Feb 26, 2008
Yansky 38 posts

Topic: Script development / Edit part of page loaded by ajax

Nope: alert(document.getElementById("friendList").getElementsByTagName("li").length); will only show "1".

Then there must only be one li descendant element.

 
Feb 26, 2008
Yansky 38 posts

Topic: Script development / Edit part of page loaded by ajax

<ul id="friendList" class="friendList">
	<li id="friend4244" class="fakeLink3">
</ul>

<ul id="friendList" class="friendList" />

You can't have two elements with the same ID.

Once the ajax request is complete, something like this should work:


var listArray = document.getElementById('friendList').getElementsByTagName('li');

var newUL = document.getElementById('friendList2');

for(var i = 0; i<listArray.length; i++){

  newUL.appedChild(listArray[i]);

}

 
Feb 17, 2008
Yansky 38 posts

Topic: Script development / Adding Button

I want to know how do i add a small button on a web page which when clicked redirects to a page from where my script can be executed

Why? Greasemonkey scripts run on a per-site basis. Just add the site to the @include at the start of your script.

please give me the java code for it

So let me get this straight, you "wrote" a script, yet you don't know the difference between java and javascript and you're unable to construct a button element.

Please, for the love of god, explain this to all your orkut "scrap all" friends; GREASEMONKEY SCRIPTS RUN FROM WITHIN THE GREASEMONKEY EXTENSION! There is NO need to execute the script manually.

 
Feb 17, 2008
Yansky 38 posts

Topic: Script development / focus

Try the blur method: http://www.javascriptkit.com/jsref/window.shtml

 
Feb 9, 2008
Yansky 38 posts

Topic: Script development / text after $1 not showing?

do_modify_html_it() - you need to post the code for this function.

 
Feb 8, 2008
Yansky 38 posts

Topic: Script development / Regex kicks my ass

I couldn't figure out yahoo pipes ether. Two other automatic scraping services that I've tried are http://openkapow.com/ and http://www.dapper.net/ . Dapper is the easiest of the two.

But it would probably be easier to just use a GM_xmlhttpRequest to scrape the page. http://diveintogreasemonkey.org/api/gm_xmlhttpr...

GM_xmlhttpRequest({
	method: 'GET',
	url: 'http://foo.com',
	headers: {
		'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
	},
	onload: function(rDetails) {
	
		var rTex = rDetails.responseText;
		
		//do stuff with the responseText
	
	},
	onerror: function(rDetails){
	
		alert('error '+rDetails.responseText);
	
	},
});	

Also: http://immike.net/blog/2007/04/06/the-absolute-...

 
Feb 3, 2008
Yansky 38 posts

Topic: Userscripts.org discussion / New "View Source" Style

Jesse, the new style for the "View Source" pages makes the text quite small and hard to read. Could you increase the text size a bit?

I'm running Firefox on XP FYI.

Cheers.

 
Jan 28, 2008
Yansky 38 posts

Topic: Script development / Install for Safari?

Are you talking about http://creammonkey.sourceforge.net/ ?

 
Jan 28, 2008
Yansky 38 posts

Topic: Script development / My script is teh broken

I figured it out, it's because there's no same-domain restriction when you use a regular XMLHttprequest in greasemonkey.

 
Jan 27, 2008
Yansky 38 posts

Topic: Script development / Help: How to change html code

but i wanted to kw how did you make it..

Ok, fair enough. The best resource for learning how to write greasemonkey scripts is Diveintogreasemonkey
Also look at DOM Reference and w3schools

Also the firebug extension for firefox will be of great use to you: http://www.getfirebug.com/