How to replace image links with img src url in Greasemonkey
问题 From the title this may sound like a duplicate question. But what I am asking for is help writing a Greasemonkey script that takes all images containing the word "thumbnails" in the src url, replaces "thumbnails" with "images" but then putting the new url into the href (target) url. What I have so far is: for(var iImage=0;iImage<document.images.length;iImage++){ var imageUrl = document.images[iImage].src; if (imageUrl.indexOf("thumbnails") != -1) { imageUrl = imageUrl.replace("thumbnails",