irssi-python for irssi 0.8.14

March 10th, 2010

I recently became aware of a Python plugin for irssi, which conveniently resides in the irssi SVN repository. This plugin presumably exposes a API very similar to the one used in the Perl plugin, so creating new scripts should be easy with all those Perl samples out there.

There’s a useful guide for building the plugin here, but I found that some lose ends still needed to be patched up.

For one, the plugin apparently hasn’t been updated in a while, so some function calls still reference old irssi structures and functions. Naturally, these don’t compile with irssi 0.8.14, which is the latest version as of this writing (and, looking at development history, will probably be for a while). For those issues, I compiled a patch with various fixes here. This isn’t exactly a perfect fix, but should do in most cases.

There is one more catch that isn’t mentioned in above guide: The plugin tries to load irssi_startup.py on startup, which will have to be on a specific path to be found. Without any parameters to ./configure, that will be /usr/local/share/irssi/scripts. So, if you’d rather have it in /usr/share/irssi/scripts (this is where my distribution places scripts, at least), you have to explicitly specify this when calling ./configure:

./configure --with-irssi=<path to irssi sources> \
    --datadir=/usr/share

After that, make should (hopefully) work and libpython.so will be placed in src/.libs/. This file should be moved to irssi’s module directory, which should be /usr/lib/irssi/modules or /usr/local/lib/irssi/modules, depending on distribution. Copy irssi_startup.py and irssi.py from src/ to the data directory you specified above, and irssi should be able to load the Python plugin without problems via /load python.

Well fuck.

July 10th, 2009

Destroyed my theme for the third time now – this time thanks to Wordpress’ automatic update feature, which takes the liberty to overwrite the default theme files.

I’m not going to completely fix it again, so you’ll just have to do with this somewhat faggy style.

4chan /b/ackwash for Opera

January 22nd, 2009

Another conversion for 4chan, /b/ackwash, which shows quoted posts in a small hovering window next to the quote link when moving the mouse over it.

Screenshot

Backwash screenshot

Download

4chan Backwash for Opera, Version 1.2c

Read the rest of this entry »

4chan Filter userscript for Opera

January 21st, 2009

Inspired by various Firefox extensions that deal with filtering posts on 4chan, I’ve taken some time to rewrite such a script for Opera. The current version doesn’t yet come with as many features as the original, but provides most of the important functionality.

Sample settings (based on real-life /a/)

Control panel

Download

4chan Filter for Opera, Version 1.3a

Read the rest of this entry »

Comix: Windows start script

January 2nd, 2009

There has been some progress on Comix recently, fixing some slight flaws that prevented the program from starting up correctly on Win32. With that gone, the only issue left is that Comix cannot be directly started on Windows without an .exe file, so I wrote a simple startup script to handle that. It invokes Python and runs the file src\comix.py, so it should be put into the SVN checkout root directory of Comix. C++ source included.

Win32 Comix Starter