文泉学堂JPG下载

文泉学堂JPG下载,在Culaccino脚本基础上修改

< Părere la script-ul 文泉学堂JPG下载

Recenzie: OK - script works, but has bugs

§
Postat în: 10-06-2022
Editat în: 10-06-2022

感谢提供的脚本,有个地方需要修改,开头url部分需要增加转义,getinfo函数意义不大,毕竟好像已经屏蔽了这个域名。

修改的脚本如下,其他都可以就头部分这里部分转义改一下就行

原本代码部分:

const baseURL = `https://${window.location.host}/`
if(baseURL.indexOf("www") > -1){window.location.href=window.location.href.replace("www","wqbook")}
const bid = window.location.href.replace(baseURL + "read/pdf/", "")

改为

const baseURL = `https:\/\/${window.location.host}\/`
if(baseURL.indexOf("www") > -1){window.location.href=window.location.href.replace("www","wqbook")}
const bid = window.location.href.replace(baseURL + "read\/pdf", "")

Postează un raspuns

Autentifică-te pentru a posta un răspuns.