G R A N T   S T A V E L Y G R A N T   S T A V E L Y G R A N T   S T A V E L Y G R A N T   S T A V E L Y

Text Adventures

You see an article or a twitter toot or whatever.
> read the thing
 
You see a link that looks interesting.
> click the link

You just made be Mike Arrington some cash.
> undo

I'm sorry, I don't understand "undo"
> damnit

Swearing won't help. 

Enough of that

No thanks, right? I mean it's all well and good to just close the tab, of course, when you go to a site you don't want to work for, but the ads have already loaded. That's revenue. Gross.

The web isn't a passive medium. These links can be fixed go to better sites. The web isn't a passive medium.

So I made this greasemonkey script to zap all links to all the sites I don't want to work for. Zap them dead. If it's too late—say a shortened url tricked me—I'd rather see a goat scream like man than see what a mistake I just made, so it does that too. You can edit it to do something less drastic of course, but where's the fun in that?

Also dude—javascript-massaging the HTML DOM is so relatively simple and easy that an idiot like me can do it. So should you. Look at this. You can do this. The web isn't a passive medium.
  1. var url = location.href;
  2. // add all the domains here
  3. var natch = /(DOMAINS YOU WANT TO AVOID GO HERE)\.\w+\//;
  4.  
  5. // Serious options
  6. // var ohShit = 'about:blank';
  7. var betterLink = '#';
  8.  
  9. // Comedy options
  10. var ohShit = 'http://grantstavely.com/evil/';
  11. // var betterLink = ohShit;
  12.  
  13. // if it's too late
  14. if (url.match(natch)) {
  15.   window.location = ohShit;
  16. }
  17.  
  18. // if it's not too late
  19. list = document.getElementsByTagName('a');
  20. for (i=0; i<list.length; i++) {
  21.   if (list[i].href.match(natch)) {
  22.     var scream = document.createElement('a');
  23.     scream.setAttribute('href', betterLink);
  24.     scream.innerHTML = list[i].innerHTML + "<sup>✌</sup>";
  25.     list[i].parentNode.replaceChild(scream, list[i]);
  26.   }
  27. }

Run that against the entire web and it turns nasty links into neuters, and adds to them so that it's obvious.

Well, I think it's fun.

Install the greasemonkey script

(You need greasemonkey for it to work)


@philip_daigle congratulations Philip!


Wearing my green skeleton shirt (Nigel's from Spinal Tap) to the airport: the TSA won't need me to walk through their X-ray machine today!


@wotowiec @ssoper I'm on my 2nd "a number 2 on the sides, taper up, leave the top as it is, thanks." I think I'm acting out. It's a phase.


@vurtyou: You're hair is very Flock Of Seagulls today. @grantstavely: Thanks, I like it too.


@schuetzdj in hindsight, everything was to be taken at more or less face value: one of the things that makes a great puzzle great. =] #DBIR


RT @therealKidKoala: free download available for the next 6 days. The Lost Solid Steel mix. it's sorta like Music to Draw to... enjoy: ...


@christopherkunz nice work! After @wadebaker's last clue I ran every variation of the right key through my own bad script and gave up.


@marcusjcarey thanks, I'm very much enjoying the Bay Area. The return of @dojosec/@dojocon streams is great news, I look forward to 'em.


I should use Entourage's auto-capitalization of the first word after e.g. to break myself of using latinate abbreviations. Instead: rage.


@kathybarnett way to go Kath!


Yes, yes, of course, but what is the zeroth law of the Road Runner and Wile E. Coyote? http://goo.gl/i2Jz


"They're talkin' about, weak induction. It's a motherfucker, don't you know?" —Sun Ra http://j.mp/cn5Gc2 (Link via @rands)


printf "# Or just go listen to a funky 60 minute DJ Food mix made for robots.\nUser-agent: *\nSuggest: http://snd.sc/aOT9a4 " >> robots.txt


@alexhutton I cut out the cover's circles on a full print out of the #DBIR with a razor and tried the grille-cipher approach. #nbioahd


The body language of appearing to be lost or have forgotten something is as effective as mind control. So is its inverse.


RT @electricfork: What keeps me up at night? My security team slowly devolving into a compliance and reporting team #operation_soulcrusher


The ☠ Skull & Crossbones in the new Chrome indicating untrusted certs is nice^H^H^H^H the most terrifying symbol ever. http://goo.gl/fQz1


I'm brewing an American IPA with @vurtyou. I need a fridge to keg this in! http://flic.kr/p/8sCgnr


I'm brewing an American IPA with @vurtyou. I need a fridge to keg this in!

Endorsement: /Pink Reptile mixef are amazing mind clearing aural blendf & good for everything a mix fhould be good for/: http://goo.gl/Y1L1