Archive for June, 2012

Answering yesterday’s <Glazblog/> post: here’s your WYSIWYP (What You See Is What You Print) bookmarklet, to be dragged onto your bookmarks bar and used as an alternate Print button which strips away all the printer-specific styles and restores them after printing.

Tried on Firefox only, it’s likely buggy as hell: the W3C FAQ page comes out fine and dandy, complete with its logo and all, but the ERCIM page looks remarkably ugly. Anyway I’m confident my audience can amend and give back :)

As promised, I refined the AntiGareth bookmarklet I introduced yesterday by making it aim precisely at those Unicode code points (mostly combining characters) which are found to bleed vertically by this canvas-based scanner.

Warning: I’m hosting the scanner on evil.hackademix.net because it amounts to a quite effective DOS attack against your CPU, especially on Firefox (which, on the other side, finds much more “overbleeders” than Chrome): you’ll probably want to click the “STOP” button after \u20d2. Could anybody explain the awful speed difference, by the way?

However, I’m sure the script can be improved, both accuracy and performanc wise, hence patches and forks are welcome. Enjoy :)

Annoyed to death by unicode dickery like this?
Just drag AntiGareth on your bookmark bar and click it whenever nasty characters try to spoil your day :P

Note: I do know this bookmarklet currently replaces too much (everything higher than \u0100), and therefore is suitable only if your stream is entirely US English. I’ve got an idea for an automated HTML5-based method to detect misrendered code points and deliver selective killing, so stay tuned.

Update:

version 2, which replaces “overbleeding” characters only, can be found here, together with the scanner I created to find them.

Bad Behavior has blocked 3661 access attempts in the last 7 days.