-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Description
现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
Labels
No labels