You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

Batman

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

0
b/Web publicado por u/Snektron January 15, 2015, 02:51:35 PM
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!
Last Edit: January 15, 2015, 02:54:22 PM by Cumred_Snektron
Inicia sesión o crea una cuenta para dejar un comentario
u/Dream of Omnimaga January 15, 2015, 03:13:38 PM
Could you describe what it does? I probably won't try until then.
u/Snektron January 15, 2015, 03:55:04 PM
It replaces every photo (clientside) on a website
to batman (reloading resets is).
u/Dream of Omnimaga January 15, 2015, 04:47:45 PM
Ah ok thanks for clarifying.
u/Duke "Tape" Eiyeron January 15, 2015, 05:12:05 PM
;i.src = url;}void(0);]Url test

The parser is lucky, by adding http://, it kills the script.
u/p2 October 17, 2016, 09:26:09 AM
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
u/Dream of Omnimaga November 03, 2016, 06:01:13 PM
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

Last Edit: November 03, 2016, 06:03:48 PM by DJ Omnimaga
u/kotu November 03, 2016, 06:02:37 PM
me - i already know what batman looks like
u/WholeWheatBagels November 04, 2016, 01:14:12 AM
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
Last Edit: November 04, 2016, 01:18:46 AM by WholeWheatBagels
u/Snektron November 22, 2016, 11:43:40 AM
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
Start a Discussion

b/Web

Website developement and scripting

68
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal