Skip to content

关于可可搜索建议 #55

@jak0099

Description

@jak0099

现dr2的可可搜索应是无效的,每个搜索关键词要带入特定参数,代码像下面这样改就能正常搜索了:
searchUrl: '/search?k=**&page=fypage&t=',
预处理: $js.toString(() => {
let homeHtml = request(rule.host);
let tValue = homeHtml.match(/<input[^>]*name="t"[^>]value="([^"])"/i);
if (tValue && tValue[1]) {
rule.searchUrl = rule.searchUrl + encodeURIComponent(tValue[1]);
}
}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions