diff --git a/Alt text instead of b/Alt text instead of new file mode 100644 index 0000000..5824f87 --- /dev/null +++ b/Alt text instead of @@ -0,0 +1,13 @@ +javascript: (function() { + function toArray(c) { + let k, a = new Array; + for (k = 0; k < c.length; ++k) a[k] = c[k]; + return a; + } + let img, altText, images = toArray(document.images); + for (let i = 0; i < images.length; ++i) { + img = images[i]; + altText = document.createTextNode(img.alt); + img.parentNode.replaceChild(altText, img) + } +})();