July 28, 2021, 08:12:52 AM

News:

Juju thinks he's so clever by putting funny stuff here


+-Discord Shoutbox


Alternatively, join us on Discord directly.
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 1 Guest are viewing this topic.

Snektron

January 15, 2015, 02:51:35 PM Last Edit: January 15, 2015, 02:54:22 PM by Cumred_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...


DJ Omnimaga

Could you describe what it does? I probably won't try until then.
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, 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...


DJ Omnimaga

Ah ok thanks for clarifying.
  • Calculators owned: TI-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, 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)

DJ Omnimaga

November 03, 2016, 06:01:13 PM #6 Last Edit: November 03, 2016, 06:03:48 PM by DJ Omnimaga
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-84 Plus C Silver Edition, TI-84 Plus CE, Casio fx-CG10, HP Prime, fx 1.0 Plus, fx-7400G Plus, fx-9750G Plus, fx-9860G, HP 39gII
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Nintendo 64, 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

November 04, 2016, 01:14:12 AM #8 Last Edit: November 04, 2016, 01:18:46 AM by WholeWheatBagels
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