This site is no longer updated but kept as it still get lots of traffic. You can find more updated information about me at jenswedin.com.



07
Dec 08

Greasemonkey & Nordea

I was really impressed by the Helveticareader project, a Gresemonkey script that transforms the Google Reader into something that looks more nice. I’ve never used Greasemonkey scripts or userscripts as they also are called. Just to try it out I did some hacking on my own bank site, Nordea which I use quiet often.

The nice thing with user scripts is that you can insert your own code inte to the live site as you are using it. In my script I add a new CSS file (that are on my site). From the CSS file I can add a new design and layout of the Nordea site. As you can add stuff to the code I also added some HTML to the frontpage just to try it out. The welcome text is inserted by the userscript.

Userscripts are just normal javascript so if you are a javascript hacker this will be easy stuff for you. As this is my first shot don’t shot me. I’ve added some resources below if you find this interesting.

To use userscript you need

1. Download Firefox if you don’t already have it.

2. Install Greasemonkey plugin

3. Install my userscript

4. Visit nordea.se

So what do my userscript do with the Nordea site?

1. User a grid width of 960px instead of 740px

2. Use Helvetica (you need this installed on your computer)

3. Removes much of the visual clutter (head, navigation, search, related content, banners etc)

4. Maximize the width of the content.

5. Moves all your money to my account :) I wish, this script only works for the open public pages, not the eBanking service. Check the code if you don’t trust me.

Example of before and after

Resources about Greasemonkey / userscripts

1. http://helvetireader.com/

2. Greasemonkey tutorial

3. Userscripts.org


03
Dec 08

url(data:image/jpg;base64…)

This cool stuff. Check out the CSS code below. Here they have added an image to the CSS file by encoding (base64) it directly into the CSS. This code was CTRL + C from the Helvetireader project. Believe that this works in most browsers except the infamous IE. There is some work done to fix this, check Dean Edwards site below. The good thing is that the images are in the same file as the CSS, no more broken images. The CSS can be gzipped so it should not be any bigger than separate files.  The bad is that whenever you noeed to change the image you need to convert the new image. I’m not sure if there is any image programs like Photoshop that can save base64 file right away. Let me know if have any more information to this.

body {background: URL(data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/
2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExM
cGxsbHCAgICAgICAgICD/2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICA
gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wAARCAFKABsDAREAAhEBAx
EB/8QAGQABAQEBAQEAAAAAAAAAAAAAAAECBAMI/8QAFxABAQEBAAAAAAAAAAAAAAAA
ABESE//EABQBAQAAAAAAAAAAAAAAAAAAAAD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/
9oADAMBAAIRAxEAPwD6pAAAAAAABAAAASgUCgUEAAABAAAASgUCgUAAAAGQAAAKBQ
KBQQAAAEAAABAAAASgUCgUEAAABAAAASgUCgUEAAABAAAAQAAAEoFAoFBAAAAQAAA
EoFAoFAAAABkAAACgUCgUEAAABAAAAQAAAEoFAoFBAAAAQAAAEoFAoFBAAAAQAAAEAA
AB47A2BsDYOboB0A6AdAc3QDoB0A6A5tgbA2BsGQAAAf/Z) left bottom
repeat-x !important;}

Here is example of my own picture that has been translated into base64, should work in most browsers except IE.

Elvis


11
Nov 08

SIME08

Tomorrow and Thursday is conference day. I’m having the opportunity to attend to the SIME08 conference that starts tomorrow. I have high hopes that it will be fun and inspiring. There are some big names that will be great to listen to like

* Michael J. Wolf (Author, former President MTV Networks)
* David Sifry (Founder of Technorati)
* Hans Rosling (Founder of Gapminder, professor at Karolinska Institutet)
* Joi Ito (CEO of Creative Commons, Chairman of Six Apart Japan etc.)
* Pelle Törnberg (former CEO Metro, former CEO MTG.)
* Lena K Samuelsson (Editor in Chief at Svenska Dagbladet)
* Net Jacobsson (Director of International Business Development at Facebook)

Hopefully it will be two nice days.


23
Oct 08

Just passed 100k of spam

Just amazing to see that Akismet (my spamfilter) has caught over 100k of spam. Check out the graph of the past months.


16
Sep 08

Chwisgi.com is released

This is going to be a short one, it’s late and my latest project is out in the wild. Just check out the post on the project blog and you will see what it is.

http://blog.chwisgi.com/2008/09/16/hooray-first-release/


24
Aug 08

Back online

Last post was about vacation so I thought I update the status a bit. I now have worked for a few weeks and the life is back to normal. This week though has really been great. On wednesday I went with my collegues on a weekly long conference to Italy. The conference was mostly about getting to know each other and having a nice time. I have had a wonderfull week with much sun, great food and many laughs. I’m writing this on the plane back to Stockholm. Good to have the WP App. for my iTouch, great for killing some time when flying. Tomorrow it is back to business as usual.