askrobots / x-cards Public

A view rule for dbbasic-browser: X's timeline as dense cards in a tab of the browser's own

0 downloads

x-cards/x-cards.json
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/x-cards.git
HTTPS
https://gitstable.com/git/askrobots/x-cards.git
SSH
ssh://git@gitstable.com:2222/askrobots/x-cards.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 X as cards, 2026.11v1 050fa64 57 minutes ago History
x-cards.json · 1.3 KB · 20 lines
1{
2 "v": 1,
3 "id": "x-cards",
4 "name": "X as cards",
5 "sites": ["x.com", "twitter.com"],
6 "post": "article",
7 "fields": {
8 "link": [{ "sel": "a[href*=\"/status/\"]:has(> time)", "take": "href" }, { "sel": "a[href*=\"/status/\"]", "take": "href" }],
9 "author": [{ "sel": "[data-testid=\"User-Name\"] a", "take": "text" }, { "sel": "a > div[dir=\"auto\"]", "take": "text" }],
10 "handle": { "sel": "span", "take": "text", "match": "^@\\w{1,30}$" },
11 "avatar": [{ "sel": "[data-testid=\"Tweet-User-Avatar\"] img", "take": "src" }, { "sel": "[data-post-avatar] img", "take": "src" }],
12 "time": { "sel": "time", "take": "datetime" },
13 "timeText": { "sel": "a[href*=\"/status/\"]", "take": "text", "match": "^\\d+[smhd]$|^[A-Z][a-z]{2} \\d{1,2}" },
14 "text": [{ "sel": "[data-testid=\"tweetText\"]", "take": "text" }, { "sel": "div[dir=\"auto\"][lang]", "take": "text" }],
15 "images": [{ "sel": "img[src*=\"pbs.twimg.com/media/\"], img[src*=\"pbs.twimg.com/card_img/\"]", "take": "src", "all": true }, { "sel": "video[poster]", "take": "poster", "all": true }],
16 "stats": { "sel": "[role=\"group\"][aria-label]", "take": "aria-label" },
17 "context": { "sel": "[data-testid=\"socialContext\"]", "take": "text" },
18 "promoted": { "sel": "span", "take": "exists", "match": "^(Ad|Promoted)$" }
19 }
20}