Comments by dob on scripts

10 comments

Comment on:
Times they are a changing

Oct 8, 2008

I think I opened a thread about that once, given that it's possible by simply a for() loop in PHP, but it wasn't changed, which is too bad.

It should only be counted as one install per IP in my opinion.

Comment on:
Times they are a changing

Oct 8, 2008

Jesse, regarding your post about the "dashboard".

I actually thought I was logged in with a false name.
How about the link just says "Settings"? Or what was wrong with just my username?

Also, a quote function for comments would be very nice.

// Also, I think that the amount of installed scripts is one of the most interesting facts, so why not make it a little more prominent?
I think the number 1 criteria for installing a script would be how many people installed it, and not how many Fans it has, or how many updates.

Comment on:
Rapidshare Links Checker

Jul 7, 2008

For some reason this script "unbolds" all the text on my google result pages.

Try this version:

function $x(p, context) {
	if (!context) context = document;
	var i, arr = [], xpr = document.evaluate(p, context, null, 6, null);
	for (i=0; item=xpr.snapshotItem(i); i++) arr.push(item);
	return arr;
}

var links = $x("//a[contains(@href, 'imdb.com/title/')]");
if (links.length) {
	links.forEach(function(link,i) {
	if (!link.hasChildNodes()) {
			if (!GM_getValue(link.href)) {
				GM_xmlhttpRequest({
					method: "get",
					url: link.href,
					onload: rs(i)
				});
			}
		}
	});
}
function rs(i) {
	return function(e) {
		var title = e.responseText.split("<title>")[1].split("</title>")[0];
		links[i].textContent = title;
		GM_setValue(links[i].href, title);
	}
}

This is just alpha, I haven't tried it yet.

I updated the script so image links won't be changed.

Comment on:
Rapidshare - Timer

Jun 5, 2008

This is just a quick&dirty version to get it to work.
Maybe I'll add some extra features to it later on.

Comment on:
Facebook Auto-Colorizer

May 20, 2008

This is really amazing, I wish I knew how to do that.

I can't really read through hundreds of lines of code, but all I'd like to know is how you read the colors from the photo?

Thanks!

Comment on:
RS_Bundle

May 5, 2008

Found a little bug on a widescreen 1680x1050:

Updated the script a little.
If the link has been changed before it will be saved, making the script work a lot faster.

Also, http://*.imdb.com will be excluded.
Thanks for the tip, Hiromacu.

Comment on:
Userscripts comment helper

Mar 27, 2008

Awesome script, but support for editing post would be great, too. I really miss that.