Skip to content

Instantly share code, notes, and snippets.

View tsholmes's full-sized avatar

Tom Holmes tsholmes

View GitHub Profile
@tsholmes
tsholmes / eraser.js
Last active August 29, 2015 13:56
Page eraser
(function(){
var scripts;
while ((scripts=document.getElementsByTagName("script")).length) {
for (var i = 0; i < scripts.length; i++) {
scripts[i].parentNode.removeChild(scripts[i]);
}
}
var els = [];
var count = 0;
var stack = [document.body];
(function(){
var counter = 0;
function swimmyai() {
var x = james.center.x;
var y = james.center.y;
var ice = iceburgs[0];
if (ice) {
if (x > ice.x + 100) ice = iceburgs[1];
var top = ice.IceburgTopUnderWaterHeight + ice.IceburgTopY;
var odx = ice.x - x;
(function(){
var counter = 0;
function flappyai() {
if (ingame && !gameover) {
var next = 0;
var nextx = 10000;
var nexty = 100;
for (var i = 1; i <= 3; i++) {
var tube = $("#tube" + i).get(0).style.left;
tube = Number(tube.substring(0,tube.length-2));