mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 适配网页xhs
This commit is contained in:
parent
099c64c416
commit
2d25b325f6
@ -797,10 +797,13 @@ export class tools extends plugin {
|
|||||||
let msgUrl =
|
let msgUrl =
|
||||||
/(http:|https:)\/\/(xhslink|xiaohongshu).com\/[A-Za-z\d._?%&+\-=\/#@]*/.exec(
|
/(http:|https:)\/\/(xhslink|xiaohongshu).com\/[A-Za-z\d._?%&+\-=\/#@]*/.exec(
|
||||||
e.msg,
|
e.msg,
|
||||||
)?.[0] ||
|
)?.[0]
|
||||||
/(http:|https:)\/\/www\.xiaohongshu\.com\/discovery\/item\/(\w+)/.exec(
|
|| /(http:|https:)\/\/www\.xiaohongshu\.com\/discovery\/item\/(\w+)/.exec(
|
||||||
e.message[0].data,
|
e.message[0].data,
|
||||||
)?.[0];
|
)?.[0]
|
||||||
|
|| /(http:|https:)\/\/www\.xiaohongshu\.com\/explore\/(\w+)/.exec(
|
||||||
|
e.msg,
|
||||||
|
)?.[0]
|
||||||
let id;
|
let id;
|
||||||
if (msgUrl.includes("xhslink")) {
|
if (msgUrl.includes("xhslink")) {
|
||||||
await fetch(msgUrl, {
|
await fetch(msgUrl, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user