Nyaa.si - Load More Thumbnail

Load image from cover/screenshot links.

< Commentaires sur Nyaa.si - Load More Thumbnail

Question / commentaire

§
Posté le: 2024-11-16

please add hentaicovid.com.
I modified the existing coding myself and used it, but hentaicovid.com does not work.

§
Posté le: 2024-11-16

I found the solution. Add this

addHandler(/^https?:\/\/(hentaicovid\.com)(\/\w+)+/, callback => {
const img = document.querySelector('#fileOriginalModal img')
if(img) {
callback(img.src)
} else {
const btn = document.querySelector('a.continue')
btn && btn.click()
}
}, (url, callback) => {
GM_xmlhttpRequest({
method: 'GET',
url: url,
onload: res => {
const src = res.responseText.match(/"https?:\/\/((hentaicovid\.com)\/uploads\/Application\/storage\/app\/public\/uploads\/users\/.*)"/)
if(src.length > 1) callback("http://"+src[1])
}
})
})

Poster une réponse

Connectez-vous pour poster une réponse.