Sleazy Fork is available in English.

hentai-cover以图搜种

解放搜索过程,图片自带磁力链接

À partir de 2018-11-16. Voir la dernière version.

// ==UserScript==
// @name         hentai-cover以图搜种
// @namespace    psrx-htcover
// @version      0.3
// @description  解放搜索过程,图片自带磁力链接
// @author       psrx
// @match        https://hentai-covers.site/*
// @grant        GM_xmlhttpRequest
// @run-at       document-end
// ==/UserScript==
document.querySelector('.content-width>#content-listing-tabs>#tabbed-content-group>.visible>.pad-content-listing').onmouseover = (e) => {
    if (e.target.localName !== 'a') return
    if (e.target.ok) return
    let a = e.target
    let span = a.nextElementSibling
    a.ok = true
    span.textContent = '正在搜索...'
    let url = `https://sukebei.nyaa.si/?f=0&c=0_0&q=${a.textContent}`
    a.href = url
    GM_xmlhttpRequest({
        method: "GET",
        url,
        onload: (res) => {
            let div = document.createElement('div');
            div.innerHTML = res.responseText
            let cili = div.querySelector('.container>.table-responsive>table>tbody>tr>td:nth-child(3)>a:nth-child(2)')
            if (!cili) {
                span.textContent = '查找失败,请手动搜索'
                a.target = '_blank'
                return
            }
            let oklalala = cili.href
            a.href = oklalala
            span.textContent = '替换完毕,可以下载'
        }
    })
}