Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Image expander

Name: Anonymous 2015-06-21 19:49

This now works with with the webm file format. YW.

javascript: (function() {
function I(u) {
var t = u.split('.'),
e = t[t.length - 1].toLowerCase();
return {
gif: 1,
jpg: 1,
jpeg: 1,
png: 1,
webm: 1,
mng: 1
}[e]
}

function hE(s) {
return s.replace(/&/g, '&').replace(/>/g, '>').replace(/</g, '<').replace(/"/g, '"');
}

function U(a) {
var r = [];
o: for (var i = 0, n = a.length; i < n; i++) {
for (var x = 0, y = r.length; x < y; x++) {
if (r[x][0] == a[i][0]) continue o;
}
r[r.length] = a[i];
}
return r;
}
var q, h, i, z = open().document;
var a = [];
z.write('<style type="text/css">img{max-width:100%}</style>' /*+'<p>Images linked to by '+hE(location.href)+':</p><hr>'*/ );
for (i = 0; q = document.links[i]; ++i) {
h = q.href;
if (h && I(h)) a.push([hE(h), q.innerHTML]);
}
a = U(a);
for (i = 0; q = a[i]; ++i) {
z.write('<p>' /*+q[1] --dangerous innerhtml-- +' ('+q[0]+')<br>'*/ + '<img src="' + q[0] + '">');
}
z.close();
})()

Name: Anonymous 2015-06-21 20:22

WebM is not an image format.

Name: del 2015-06-21 21:18

javascript
del

Don't change these.
Name: Email:
Entire Thread Thread List