Join us on Discord!
You can help CodeWalrus stay online by donating here.

Batman

Started by Snektron, January 15, 2015, 02:51:35 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Snektron

I made this little script:

javascript:var url='http://fc08.deviantart.net/fs71/f/2012/213/7/5/batman_derp_by_uchihirokilove-d59h7in.png';for (var x=0; x<document.images.length; x++){i=document.images[x];i.src = url;}void(0);

paste this into your browser and don't forget to type 'javascript:' before it if
you are using Chrome!
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Could you describe what it does? I probably won't try until then.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

It replaces every photo (clientside) on a website
to batman (reloading resets is).
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

Ah ok thanks for clarifying.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Duke "Tape" Eiyeron

;i.src = url;}void(0);]Url test

The parser is lucky, by adding http://, it kills the script.
  • Calculators owned: A lot.

p2

omg this script is just awesome :D And it still works in modern browsers *-* really nice work!  :thumbsup:
But is there any way to fix the image sizes? it more or less killed my CodeW with 1000 huge batmans xD
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CAS, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Dream of Omnimaga

#6
I finally got the script to work for the first time ever. I realized I didn't need parentheses in Chrome, just adding javascript: instead of the usual javascript:() now works.

I replaced the picture with http://img.codewalr.us/flashywalruses.gif tho :P

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

kotu

me - i already know what batman looks like
  • Calculators owned: TI 84+CE-T
  • Consoles, mobile devices and vintage computers owned: Sega Master System, Sony PlayStation 3
SUBSCRIBE TO THE FUTURERAVE.UK MAILING LIST
http://futurerave.uk

WholeWheatBagels

#8
javascript:var url='https://1800nycbagels.com/wp-content/uploads/2015/05/WholeWheatBagel_web1.jpg';for (var x=0; x<document.images.length; x++){i=document.images[x];i.src = url;}void(0);

this one really borks threads up

i call it BAGELIFY muhahahahaaa
Living in another world to you.



Also in case you were wondering Frankie did go to Hollywood

Snektron

I got bored in class today. For me they only work when you paste them in your dev console though
function getRandomColor()
{
var letters = '0123456789ABCDEF';
var color = '#';
for (var i = 0; i < 6; i++ )
color += letters[Math.floor(Math.random() * 16)];
return color;
}

var all = document.getElementsByTagName("*");
for (var i=0, max=all.length; i < max; i++)
all[i].style.backgroundColor = getRandomColor();

function getRandomColor()
{
var letters = '0123456789ABCDEF';
var color = '#';
for (var i = 0; i < 6; i++ )
color += letters[Math.floor(Math.random() * 16)];
return color;
}

function a()
{
var all = document.getElementsByTagName("*");
for (var i=0, max=all.length; i < max; i++)
all[i].style.backgroundColor = getRandomColor();
}
setInterval(a, 60);


epilepsy warning
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Powered by EzPortal