vault backup: 2026-11-06 20:21:12
This commit is contained in:
1 parent
2c6569dbdf
commit
c2f97640b7
5 files changed
+107
-6
No files matched your search
@@ -0,0 +1,10 @@
|
||||
(() => {
|
||||
const out = { href: location.href, title: document.title, links: [], text: '' };
|
||||
const all = Array.from(document.querySelectorAll('a[href]'));
|
||||
out.links = all
|
||||
.map(a => ({ t: (a.innerText || '').replace(/\s+/g, ' ').trim(), h: a.getAttribute('href') }))
|
||||
.filter(x => x.t && /规则|规范|帮助|协议|中心/.test(x.t))
|
||||
.slice(0, 40);
|
||||
out.text = (document.body.innerText || '').replace(/\s+/g, ' ').slice(0, 800);
|
||||
return out;
|
||||
})()
|
||||
Reference in new issue
Block a user