community forum

[Archived] "flashlight mod" on the site...?

posted
Total Posts
45
show more
PROGUY
Holy crap, it just got more epic. Thank you sir.
KinomiCandy
APRIL FOOLS
DarkStoorM
I don't care... just turned off JS
Jerry
EPICNESS
Raging Bull
Now we need HR and flip everything over.
winber1
relax mod...

move ur mouse around and it clicks random shit for you lulz. that would be annoying as hell.
Laharl
Great job!
Pereira006
woow
Nitojgrem

DD64 wrote:

It's not fully functional in Opera and Internet Explorer (9, 10). Please fix that, otherwise the webpage cannot be used with this browsers.
I find it rather funny how buggy it is actually with IE xD
I wonder why this picture hasn't been posted in this thread (only April fools was written :? )

Thanks for this idea Sapphire^^
dasadasa

winber1 wrote:

relax mod...

move ur mouse around and it clicks random shit for you lulz. that would be annoying as hell.
haha I liked that idea xD
AkiShizuha
random words are missing....loool
What about adding effect when we touch on z/x keys?XD..
[KOR]Extream_Sigma
oh my gawd it haves hidden too
Aoko
♥ Love this mod.
Hiza-chan
Lol. Completely forgot what day it was. I thought I was going crazy when I saw the flashlight mod and then I saw someone say April 1st..Also saw "The end of OSU" thread and thought "really?!" But, now I get it..soo slow.
palion
	switch (Math.floor(Math.random() * 10))
{
case 0:
case 3:
$("body").append("<div class='flashlight'></div><div class='modtoggle fl'></div>");
modToggle = $(".modtoggle");

fl = $(".flashlight");

$("body").mousemove(function(e) {
if (fl.is(":visible"))
fl.css('background-position', (e.pageX - 1280) + 'px ' + (e.pageY - 720 - $(document).scrollTop()) + 'px');
});

$(".fl").click(function(e) { fl.toggle(); });
case 1:
case 3:
$("body").append("<div class='modtoggle hd'></div>");
modToggle = $(".modtoggle");

$("a").addClass("hiddenA");
$(".hd").click(function() { $("a").toggleClass("hiddenA"); });
break;
}
3/10 chance of HD (case 0,1, or 3) per page load
1/5 chance of FL(case 0,3) per page load
since the first case 3 is missing a break; (not sure if intentional) FL always appears with HD cause it falls through the cases

clever use of a background image + jquery for flashlight
hd hides links only by setting opacity to 0.01 so they still take up space
Tohob
well after 5 minutes i've managed to scroll down to the bottom of the screen. seriously. you could at least make the toggle buttons appear so i can turn it off BEFORE it completely rapes my computer. im sure it would be fun and entertaining for me if my computer had been made in 2012
or 2010
or 2007
or 2005
or 2003
but it was made in 1998 and i seriously cannot use the site right now.
CNM501
This is really cool. I thought something was wrong with my computer when hidden mod was on LOL. Hard Rock mod would just be funny. Maybe you click on a link and it takes you somewhere random? lol.
peppy
Here's the full code in case anyone is curious, and for archiving purposes:
https://gist.github.com/2276367
Please sign in to reply.

New reply