// 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;
}
})();
Cool public-art-hypertext (or maybe “walking novel” is a better term for this medium) project images in this photoset. I missed the original press when it went up, but will try and see if any are still up this weekend.
“The mission stencil story is an interactive, choose your-own-adventure story that takes place of the sidewalks of the Mission district in San Francisco. It is told in a new medium of storytelling that uses spraypainted stencils connected to each other by arrows. The streetscape is used as sort of an illustration to accompany each piece of text.”
I could see some awesome possibilites for this- perhaps merged with say new books in the City Noir series.
(via if:book)
I was about to post a link to this article, about the popularity of the Martha Stewart homes. I’m posting an image instead… I got freaked out about the next gen of targeted advertising for a second.
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.
works like a charm!
hey man, for me, its strike one. for ry, its strike two.