0

我正在尝试编写一个 Greasemonkey 脚本,该脚本将隐藏我已经看过的Google 图片搜索中的图片(这样在进行多次搜索时,我不会在搜索结果中两次显示相同的图片。)有什么办法吗使用 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.
}
4

0 回答 0