-
Notifications
You must be signed in to change notification settings - Fork 62
Description
有很多网站比如这个
https://69shuba.cx/
要是可以的话可以告诉我方法吗?
之后脚本可否支持这种模式
{{getSearchUrl(java.put("key",key))}}
或
https://69shuba.cx/modules/article/search.php,
{
"charset": "gbk",
"method": "POST",
"body": "searchkey={{key}}&searchtype=all"
}
或
// 主逻辑:根据关键词类型生成不同URL
if(key.match(/#/)) {
result = 'https://69shu.biz/b/' + encodeURI(key.match(/^(?:#|#)(.)/)[1]) + '.html';
}
else if(key.match(/@/)) {
result = 'https://69shu.biz/booklist/tag/' + encodeURI(key.match(/^@(.)/)[1]) + '/';
}
else {
result = 'https://69shu.biz/modules/article/search.php,{
"charset": "gbk",
"method": "POST",
"body": "searchkey=' + key + '&submit=Search"
}';
}
result
// 变量注释:生成动态User-Agent
"variableComment": "
let date = 'Mobile ' + Date.now();
result = JSON.stringify({
'User-Agent': String(date)
});
"