WallHaven一键下载

前言

很早前,写过一个批量下载wallhaven的python程序,但它缺点很明显:无法提前看到要下载的内容,只能一次性全部下载完再筛选。

最近有空,准备想重新写个带预览功能的程序,但默念一想,原网站功能已经很完善,唯一的不足是无法直接下载。

于是,我在油猴上寻找类似脚本,最终,找到一个最后更新于19年的脚本,功能已经无法正常使用了,于是我在此基础上进行了修改,新脚本可以下载网站上全部格式的图片(好像只有jpg和png)

另外,受到最近学习通事件的影响,我删除了原脚本中关于登录信息的代码,只保留并完善了一键下载功能,请放心使用

功能

  • 在缩略图-浏览模式下,无法直接点击右键保存图片,此脚本添加一个下载按钮,点击后即可快速下载对应的图片
  • 功能示意图

语言

  • javasrcipt

安装方法

使用方法

  • 打开wallhaven网站,比如进入了toplist,将鼠标悬放到(不用点击)想要下载的图片上,在图片尺寸旁边,有个“下载图标”,点击即可下载
    • 下载图标
  • 若未出现“下载图标”,请ctrl+f5强制刷新wallhaven页面尝试,并确保油猴状态已启用
    • 脚本已经启用

注意

  • 下载的图片名字是wallhaven使用默认的图片名
  • 无任何关于账户信息的代码,请放心使用

脚本来源

  • 脚本修改于“Wallhaven壁纸网站增强”,原作者为作者胡中元,原脚本最后于2019年修改,现在已经无法使用
  • 此脚本去除了原脚本一些未完成的功能,只保留了快速下载功能
  • 此脚本对快速下载功能进行了修改与完善,支持wallhaven网站上全部图片格式

Wallhaven One-click download

Preface

A long time ago, I wrote a python program that downloads wallhaven in batches, but it has obvious shortcomings: it is impossible to see the content to be downloaded in advance, and it can only be downloaded all at once and then filtered.

I have time recently, and I want to re-write a program with a preview function, but after thinking about it, the function of the original website is already perfect, and the only drawback is that it cannot be downloaded directly.

So, I looked for a similar script on Oil Monkey. Finally, I found a script that was last updated in 2019. The function could no longer be used properly, so I made modifications on this basis. The new script can download all the images on the website. (seems like only jpg and png)

In addition, affected by the recent learning pass incident, I deleted the code about login information in the original script, and only retained and improved the one-click download function, please use it with confidence

Function

  • In thumbnail mode, add a download button, click to quickly download pictures

installation method

Instructions

  • Open the wallhaven website, such as entering the toplist, hover the mouse (without clicking) on the picture you want to download, next to the picture size, there is a “download icon”, click to download
    • Download icon
  • If the “Download Icon” does not appear, please ctrl+f5 to force a refresh of the wallhaven page, and make sure the oil monkey status is Enabled
    • Script enabled

Precautions

  • The name of the downloaded image is the default image name used by the website
  • This script does not have any code for account information query