Tag: hacking

  • Firefox 2.0, Find As You Type and Next (and other missing buttons)

    My testing with Firefox 2.0 RC2 turned out yet another feature I need to tweak to make it work the way I want: Find As You Type now brings up a stripped-down (featureless) quick search instead of the normal search with clickable buttons. IMO this sucks ass. So here’s a fix:

    A quicker and easier hack than the one I posted below […] can be done by editing your userChrome.css and adding

    /* Use the old-style / and ' QuickFind Bar instead of the featureless QF found in FF2.0 */
    #FindToolbar > * {display:-moz-box}

    RenegadeX@MozillaZine Forums

  • How to disable background sound in Firefox

    this is how you block background sounds: put this in your userContent.css file:

    /* block embedded sounds */
    object[data*=".mid"],embed[src*=".mid"] { display: none !important; }
    object[data*=".mp2"],embed[src*=".mp2"] { display: none !important; }
    object[data*=".mp3"],embed[src*=".mp3"] { display: none !important; }
    object[data*=".mp4"],embed[src*=".mp4"] { display: none !important; }
    object[data*=".wav"],embed[src*=".wav"] { display: none !important; }
    object[data*=".wma"],embed[src*=".wma"] { display: none !important; }

    CaptainKirk @ A. Bersvendsen

    Had to look for a way to do this after having exposed my ears to the front page of Finland-Korea Friendship Association, while looking for comments on North Korea’s latest feat.

    Well, it doesn’t seem to help. The horrible jingle is still played.

    No, wait – it’s just those stupid fancy quotation marks WordPress has shoved into CK’s comment – so replace any occurences of “ or ” in the above with a regular, plain, sideless double quotation mark, a ".

  • Some of your db passwords are belong to us

    Google opened up a new search sevice called Google Code Search today. […] Since Google Code Search actually indexes the contents of compressed files like ZIP and TARBALL files, we were able to find copies of people’s wp-config files and several contained usernames and passwords.

    Death By Comet via digg
    some links added

  • DVD Jon Fairplays Apple

    DVD Jon has […] reverse-engineered Apple’s Fairplay and is starting to license it to companies who want their media to play on Apple’s devices.

    GigaOM via BlogsNow

  • Classic Search Style (Kill the dog, done right)

    In order to remove the annoying and useless search dog all you need to do is add one simple registry key.

    TweakXP.com

  • Quickest Patch Ever

    If you really want to see Microsoft scramble to patch a hole in its software, don’t look to vulnerabilities that impact countless Internet Explorer users or give intruders control of thousands of Windows machines. Just crack Redmond’s DRM.

    Wired via Juha

  • C64 USB keyboard

    This page describes how to build a USB-keyboard in the form-factor of an old C64 breadbox.

    symlink.dk via Make via Engadget via Knuttz’s

  • Theme Switcher: fixing the theme editor breakage

    Version 2.0 of Mr Peer’s Theme Switcher is would be perfect, if it weren’t for the unfortunate breaking of WordPress’ built-in theme editor, causing all requests to open files for editing be redirected to the home page. The problem seems to be the theme parameter, which is used by both the built-in editor and Theme Switcher.

    Fixing this issue seemed to be as simple as replacing all isolated mentionings of theme in the plugin source with a new, non-ambiguous keyword. I chose switchto, and the resulting code is available behind the previous link.

    So, the parameter to switch themes with this modified version of the plugin is switchto=themename, and this eliminates the problem with the theme editor. Otherwise it should be identical to the original in functionality.

  • Recent Comments Plugin and trackback titles

    I’m using the excellent Recent Comments plugin by Krischan Jodies on my other blog. It’s been working perfectly until I got the first pingback without a » (a ») in the $comment->comment_author field. That caused it to echo “Anonymous” instead of the actual title of blog doing the pingback.

    Strangely, of the macros defined by Recent Comments, %trackback_title seems to have the correct title already for the one ping coming from outside my site, but for in-site pings it displays the title of the post being pinged, so replacing %comment_author with %trackback_title wouldn’t help.

    So I edited the plugin to fix this. $comment_author is set on line 659:

    659			$comment_author =
    				trim(substr($comment_author,0,strpos($comment_author,'»')));

    Apparently, if the title doesn’t have a » in it, this nullifies comment_author, causing the soon to follow if (! $comment_author) test to fail and subsequently $comment_author being set to “Anonymous”.

    So I wrapped the trimming clause (the one on line 659 in the original) inside a conditional, which tests for the presence of »:

    659			if (strpos($comment_author,'»') !== false) {
    660				$comment_author =
    					trim(substr($comment_author,0,strpos($comment_author,'»')));
    661			}

    Now the title of the page doing the pingback is preserved in %comment_author.