Comments by Henrik N on scripts

223 comments

Comment on:
Helgon.net toolbar

Jul 25, 2008

Fixed broken "Galleri" link (changed .asp to .aspx).

Comment on:
Bookmark/quick search combo

Jul 17, 2008

Syntax:

If %s is omitted, I can't think of a good solution.

You could change if (search.indexOf("%s") != -1) to if (search.indexOf("="+delimiter) != -1) , but this has the caveat that your %s has to come immediately between a = and the #http bit.

Per: Fixat, mest för att "jag är inne i värsta Tradera-fasen" var så gulligt :p

maznos: Feel free to make those modifications yourself. I don't think it makes sense for everyone else.

maznos: Thanks for the report. Fixed it. Latest GM seems to have namespacing issues. The fact that I was using a variable named "status" made things break; renamed the variable to fix (another way would have been to wrap it in a closure).

Comment on:
Helgon.net toolbar

Jun 15, 2008

Hrm. Actually, it was that the variable name "toolbar" collided with something else, presumably in Firefox 3's sandbox. So the timeout itself wasn't what fixed it, but the closure. So I renamed the variable instead.

Thanks to Johan Sundström for figuring this out.

Comment on:
Helgon.net toolbar

Jun 15, 2008

Starfriend: Fixed. Was http://wiki.greasespot.net/0.7.20080121.0_compa...: had to add a big ugly setTimeout :/

Comment on:
Profanity Filter

May 7, 2008

...and "cobia" must surely be a Mountweazel :)

Comment on:
Profanity Filter

May 7, 2008

Looking at the word list as inspiration since I've been asked to write a profanity filter.

Some of these blocked words are a weird choice. Are e.g. "vagina" and "smut" words that offend? Is it really a good idea to censor "balls"? :p Seems like it'd overgenerate wildly. And the censoring of "gaysex" seems more offensive than the word.

Comment on:
IMDB enlarge actor pictures on hover

Apr 24, 2008

ebkworldwide: Not something I'd use myself, so I can't justify spending time on it, but feel free to write a script for that based on this one.

Comment on:
ScrollToY

Apr 12, 2008

More specifically, Johan's fix handles this case:

You intend to scroll 500 pixels down. But when the DOM loads the page is only 200 pixels high.

Before the fix, you'd scroll to the 200 pixel mark. With the fix, the script notices the discrepancy and adjusts the scroll when all images have loaded.

Comment on:
ScrollToY

Apr 12, 2008

Incorporated a fix from Johan Sundström that accounts for images loading and shifting the page.

Comment on:
IMDB enlarge actor pictures on hover

Mar 29, 2008

I still can't reproduce this issue. It works fine for me. Tried reinstalling the script from this page to make sure I was up to date, and it still works fine.

So this is what the script does. Perhaps someone could look at the page source of a page where this breaks, and tell me where it goes wrong:

It finds all images surrounded by a link with an onclick attribute containing the text "tinyhead". This should be the actor pictures.

It then takes the image URL and replaces
_SX123_SY456_
with
_SX100_SY150_
where 123 and 456 can be any numbers.

What are the actor picture URLs? What are the onclicks of their links?

Comment on:
IMDB enlarge actor pictures on hover

Mar 22, 2008

ekbworldwide:

Weird, it Works For Me™. On that page with that actor. The screenshot looks like the enlarging part works, but the thumbnail hasn't been swapped for the larger-size image first.

Updated to work with Tradera's new listing style.

Comment on:
IMDB enlarge actor pictures on hover

Feb 7, 2008

Fixed! Thanks for letting me know.

Comment on:
ScrollToY

Jan 30, 2008

Thanks, Johan. Fixed.

Comment on:
"Scrap All" Defense Plan

Dec 23, 2007

Miguel: You could easily achieve that with Yahoo Pipes.

Comment on:
ICA-banken autofill date for transfers

Dec 21, 2007

Script is deprecated. ICA finally seems to handle empty date fields as "as soon as possible".

Comment on:
IMDB enlarge actor pictures on hover

Nov 30, 2007

Marin Purgar: Thanks! Confirmed to work. Updated the script.

Comment on:
Autologin

Nov 29, 2007

idon'tknow: You set keyboard focus on it, e.g. click inside some form field so that if you would press a letter key, it would appear in the field.

Comment on:
ICA-banken autologin

Nov 29, 2007

Updated to work.

The URL to bookmark has changed from
http://www.ica.se/FrontServlet?s=inloggning&sta...
to
https://icabanken.ica.se/Login/LoginPw.aspx?JSE...

The name of the PIN form field changed as well, so you need to re-install the script in addition to changing the bookmark.

Comment on:
IMDB enlarge actor pictures on hover

Nov 28, 2007

Confirmed it doesn't work. If it's a simple fix, I'll try to get it done later today.

Comment on:
Autologin

Nov 15, 2007

Batshua: Weird. I see it with Fx 2.0.0.9. Are you looking under Tools > Greasemonkey > User Script Commands?

Comment on:
Gmail bottom posting in replies

Nov 15, 2007

Rob: I don't use the script myself anymore since I check Gmail through http://mailplaneapp.com. If it's an easy fix, though, I might do it. Did they roll out v2 anywhere yet?