Archive for the ‘Programming’ Category

Opera UserJS: 4chan ‘enhancements’

Friday, April 20th, 2007

My feeble attempts to get to know the more in-depth aspects of JavaScript.

It adds some more advanced functionality like buttons to delete/report posts without having to go to the bottom of the page. With the current version it is also possible to `hide’ threads, a feature from the 4chan extension for Firefox that is sorely missed by Opera users.

Download: 4chan.js, 02/06/09

Has to be placed into your Opera UserJS directory, which can be set up under Preferences > Advanced > Content > JavaScript Options.

Full list of features

  • Kills any iframes (you know who you are)
  • Also kills any <embed> tags to prevent, for example, background sound caused by Flash objects.
  • `Fixes’ quoting, that is, the comment box now properly advances to a new line after clicking on a post id. Also note that you can CTRL-click post ids to prevent the window from jumping up to the comment box.
  • Adds buttons to delete, report and hide posts/threads.
  • Also adds noko and sage boxes next to the e-Mail text control.

Notes on compatibility with fychan.js

The buttons to delete, report and hide posts do not work with fychan. Might or might not work on a fix for this in the future.

X-Chat plugin: AniDB Search

Friday, March 23rd, 2007

More useless plugins for X-Chat: AniDBSearch, triggered by channel text starting with .anidb, looks up the search string on AniDB and prints the corresponding AniDB entry url, or the search url if multiple results matching the search string were found. Nothing too fancy. Can also be triggered by typing /anidb.

PS: No AniDB API calls. Just HTTP fetch and some regexps.

Current: AniDBSearch 2.2

(more…)

MPCinfo X-Chat plugin, Take 2

Wednesday, December 20th, 2006

Wasn’t really that happy with the earlier version of the plugin, so I modified the mpcinfo-Sources to compile as a native Python plugin, thus eliminating the need for a DLL wrapper. This marks the my first time with the Python/C-API. Quite convenient.

The new version can be downloaded here: MPCinfo 1.3.1

There used to be C++ sources for the .pyd file and some instructions included in the archive, but I unfortunately lost the source and the original archive, so you’ll have to make do with just the essentials. ;)

MPC Status plugin for X-Chat 2

Monday, December 18th, 2006

It seems I finally got my MPCInfo plugin for X-Chat working, as far as not crashing X-Chat after a set amount of time is concerned. The point is, basically, to output the file currently playing in Media Player Classic to the current channel, similar to mIRC plugins such as GTSDll, but without all the bloat I’m not using anyway. The output currently looks like the following example, but should be fairly easy to change if you know what you’re doing.

[ TwoPoints] MPC: [Eclipse] Itadaki no Hecatetan – 01 (h264) [81CA68B4].mkv : [00:00/08:04 min (stopped)] : Size: 64.59 mb

(more…)

Apache and mod_python on Windows

Wednesday, November 29th, 2006

Just a friendly reminder for myself how to get Apache 2.2 and mod_python 3.3.x working again after I wasted almost five hours trying to get it running again after upgrading from an older version and Apache 2.0.54.

(more…)