So I got bored and started messing around with myUMBC
myUMBC Hijinks with jquery
posted over 11 years ago
http://youtu.be/mwhoEa9hkSc
Just having some fun messing around with jquery on the site ended up with this. Can run it on pretty much any page and it'll work.
So I decided to make my little function work with another site, if you guys wanted to try it just copy and paste this into your url bar. Make sure "javascript:" is before the url;
javascript:function causeHell(){var swfNum = 317; var preH = $("body").html();$("body").html("<div id='textmoardammit'></div>");$("body").append("<audio controls autoplay loop style='opacity: 0;'><source src='//www.riddlydiddly.com/sound1.mp3' type'audio/mpeg'></audio>");$("#textmoardammit").html(preH);$("#textmoardammit").css("z-index","0");$("#flahmoardammit").css('height','100%');$("#flahmoardammit").css('width','100%');$("#textmoardammit").css("position","relative");$("body").append("<div id='flahmoardammit'></div>");$("#flahmoardammit").html('<embed src="//www.riddlydiddly.com/sound.swf" scale="exactfit" height="100%" width="100%" wmode="transparent" id="moardammitflashguh" />');$("#flahmoardammit").css("position","fixed");$("#flahmoardammit").css("z-index","-1");$("#flahmoardammit").animate({top:0, left: 0},200);$("#flahmoardammit").css('height','100%');$("#flahmoardammit").css('width','100%');$("*").css("background-color","rgba(255,255,255,0.2)");$("#textmoardammit").delay(7500).animate({opacity: 0.4},500).delay(4000).fadeOut(500,function(){$("#textmoardammit").css("opacity", 0.8);$("#textmoardammit").fadeIn(1);$("body").append("<div id='FLASHER'></div>");$("#FLASHER").html('');$("#FLASHER").css("position","fixed");$("#FLASHER").css("z-index","50");$("#FLASHER").animate({top:0, left: 0},200);$("#FLASHER").css('height','100%');$("#FLASHER").css('width','100%');$("#FLASHER").css('opacity','0.5');setInterval(function(){var color = "red";switch(Math.floor((Math.random()*5)+1)){case 1: color = "blue"; break;case 2: color = "red"; break;case 3: color = "green"; break;case 4: color = "yellow"; break;case 5: color = "white"; break;}$("#FLASHER").css('background', color);}, 10);$("*").css("overflow","hidden");setInterval(function(){$("#textmoardammit").toggle();}, 100);});}causeHell();
(edited over 11 years ago)