Where the Group of Seventeen sit, there final justice is done.

September 11, 2007

Where the Group of Seventeen sit, there final justice is done.

// Based on a script in Mark Pilgram's upcoming "Dive into Greasemonkey",
// based off another script based off that

// ==UserScript== 
// @name          replaceannoyingwords
// @namespace     http://modcult.org/userscripts
// @description   Sick of this word
// @include       *
// ==/UserScript== 


(function() {
    var replacements, regex, key, textnodes, node, s; 

    replacements = { 
        "hipsters": "members of the bohemian community",
        "Hipsters": "Toddlers",
        "hipster":  "slick johnny",
        "Hipster":  "Prussian",
        "Zen and the Art of ": "How to Good-bye depression: "
    }; 

    regex = {}; 
    for (key in replacements) { 
        regex[key] = new RegExp(key, 'g'); 
    } 

    textnodes = document.evaluate( "//body//text()", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 

    for (var i = 0; i < textnodes.snapshotLength; i++) { 
        node = textnodes.snapshotItem(i); 
        s = node.data; 
        for (key in replacements) { 
            s = s.replace(regex[key], replacements[key]); 
        } 
        node.data = s; 
    } 

})();

I hear Greasmonkey is the rage among Gr’ups.

nice ascian ref.

also, ry, I think I’m going to have to kill you for reminding me of the existence of that fucking nymag article.

It’s big with the New Victorians too.

please, both of you, just stop.

hey man, for me, its strike one. for ry, its strike two.