Skip to content

Instantly share code, notes, and snippets.

@bradland
bradland / sub.js
Last active December 27, 2015 18:49 — forked from jiaaro/sub.js
javascript:function replace(e){e=e.replace(/witnesses/gi,"dudes I know");e=e.replace(/allegedly/gi,"kinda probably");e=e.replace(/new study/gi,"tumblr post");e=e.replace(/rebuild/gi,"avenge");e=e.replace(/space/gi,"spaaace");e=e.replace(/google glass/gi,"virtual boy");e=e.replace(/smartphone/gi,"pokédex");e=e.replace(/electric/gi,"atomic");e=e.replace(/senator/gi,"elf-lord");e=e.replace(/car/gi,"cat");e=e.replace(/election/gi,"eating contest");e=e.replace(/congressional leaders/gi,"river spirits");e=e.replace(/homeland security/gi,"homestar runner");e=e.replace(/could not be reached for comment/gi,"is guilty and everyone knows it");return e}function replace_all_on_page(){function e(t){if(t.childNodes.length>0)for(var n=0;n<t.childNodes.length;n++)e(t.childNodes[n]);if(t.nodeType==Node.TEXT_NODE){window.el=t;t.textContent=replace(t.textContent)}}var t=document.getElementsByTagName("html")[0];e(t)}replace_all_on_page()
#!/bin/bash
#
# Install nginx on Debian.
#
# Author : Scott Barr
# Date : 7 Jan 2010
#
VERSION=0.8.53