我正在尝试编写一个Greasemonkey脚本,该脚本会隐藏Google Image Search中我已经看过的图像(这样,在进行多次搜索时,我不会在搜索结果中显示两次相同的图像。 )有没有办法使用Greasemonkey脚本从搜索结果中获取图像列表,以便我可以防止图像在查看后加载?为了做到这一点,我需要找到一种方法来防止图像在以前被查看后加载。
var blockedImageList = new Array();
function blockImages(imageList){
//prevent images from loading if they are on the blocked image list,
//which is an array of image URLs
}
function getAllImagesFromPage(){
//add all of the images on the current page to the blocked image list.
}