Instructions to use botezx/flagtldr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Grok
How to use botezx/flagtldr with Grok:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download extension/src/content/content.css from botezx/flagtldr: direct link, hf CLI and curl.
- Browser
- Download file 5.31 kB
-
https://huggingface.co/botezx/flagtldr/resolve/main/extension/src/content/content.css
- Command line
-
hf download hf://botezx/flagtldr/extension/src/content/content.css
-
curl -L -o content.css https://huggingface.co/botezx/flagtldr/resolve/main/extension/src/content/content.css
5.31 kB
| /* FlagTLDR marks. Kept outside X's hashed class names: we only add our own classes | |
| and data attributes to article[data-testid="tweet"]. */ | |
| article[data-testid="tweet"].xa-marked { | |
| box-shadow: inset 4px 0 0 0 var(--xa-color, #1d9bf0); | |
| background-image: linear-gradient(90deg, color-mix(in srgb, var(--xa-color) 10%, transparent), transparent 40%); | |
| } | |
| article[data-testid="tweet"] .xa-badge { | |
| position: absolute; top: 6px; right: 44px; z-index: 2; | |
| font: 600 11px/1.6 system-ui, sans-serif; padding: 0 7px; border-radius: 9px; | |
| color: #fff; background: var(--xa-color, #1d9bf0); cursor: default; pointer-events: auto; | |
| } | |
| article[data-testid="tweet"].xa-collapsed { max-height: 34px; overflow: hidden; opacity: .55; } | |
| article[data-testid="tweet"].xa-collapsed .xa-badge { cursor: pointer; } | |
| article[data-testid="tweet"].xa-hidden { display: none ; } | |
| .xa-summary-btn { | |
| border: 1px solid rgb(83, 100, 113); background: transparent; color: rgb(113, 118, 123); | |
| border-radius: 999px; padding: 0 10px; font: 600 12px/22px system-ui, sans-serif; cursor: pointer; margin-left: 6px; | |
| } | |
| .xa-summary-btn:hover { color: #1d9bf0; border-color: #1d9bf0; } | |
| .xa-toast { | |
| position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2147483647; | |
| max-width: min(560px, 92vw); background: #15202b; color: #e7e9ea; border: 1px solid #f4212e; | |
| border-radius: 12px; padding: 10px 14px; font: 13px/1.4 system-ui, sans-serif; box-shadow: 0 8px 28px rgba(0,0,0,.45); | |
| } | |
| /* ---- account country / region (v0.4.0) ---- */ | |
| .xa-geo { display: inline-flex; align-items: center; gap: 4px; margin: 0 4px; vertical-align: middle; flex: none; | |
| font: 500 12px/18px system-ui, -apple-system, "Segoe UI", sans-serif; color: rgb(113, 118, 123); white-space: nowrap; } | |
| .xa-geo-chip { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 9px; | |
| border: 1px solid rgba(113, 118, 123, .45); cursor: help; } | |
| .xa-geo-self { border-style: dashed; } | |
| .xa-geo-unknown { opacity: .75; } | |
| .xa-flag { font-size: 14px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; } | |
| html.xa-twemoji-flags .xa-flag, html.xa-twemoji-flags .xa-geo-bar .xa-flag { font-family: "XA Twemoji Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; } | |
| .xa-geo-shape { width: 18px; height: 14px; flex: none; fill: currentColor; color: #1d9bf0; } | |
| .xa-geo-shape.xa-geo-globe { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; } | |
| .xa-geo-caveat { color: #ffd400; font-size: 11px; } | |
| .xa-geo-pin { font-size: 11px; } | |
| .xa-geo-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; } | |
| article[data-testid="tweet"].xa-geo-hidden { display: none ; } | |
| article[data-testid="tweet"].xa-geo-dimmed { opacity: .35; transition: opacity .15s; } | |
| article[data-testid="tweet"].xa-geo-dimmed:hover { opacity: .9; } | |
| article[data-testid="tweet"].xa-geo-collapsed { max-height: 36px; box-sizing: border-box; overflow: hidden; } | |
| article[data-testid="tweet"].xa-geo-collapsed > :not(.xa-geo-bar) { visibility: hidden; } | |
| .xa-geo-bar { position: absolute; inset: 0 0 auto 0; height: 36px; z-index: 3; display: flex; align-items: center; gap: 6px; | |
| padding: 0 16px; background: rgba(22, 24, 28, .96); color: rgb(113, 118, 123); font: 13px/1 system-ui, sans-serif; } | |
| .xa-geo-show { margin-left: auto; border: 1px solid #1d9bf0; background: transparent; color: #1d9bf0; border-radius: 999px; | |
| padding: 2px 12px; font: 600 12px/18px system-ui, sans-serif; cursor: pointer; } | |
| /* v0.4.1: one-off "check country" button in the badge spot (lookup only on the user's click) */ | |
| .xa-geo button.xa-geo-ask { border: 1px solid rgba(113, 118, 123, .6); background: transparent; color: rgb(113, 118, 123); | |
| font: inherit; cursor: pointer; margin: 0; } | |
| .xa-geo button.xa-geo-ask:hover { color: #1d9bf0; border-color: #1d9bf0; } | |
| .xa-geo .xa-geo-ask-queued { border-color: #1d9bf0; color: #1d9bf0; cursor: default; } | |
| .xa-geo .xa-geo-ask-loading { border-style: dashed; cursor: progress; } | |
| .xa-geo button.xa-geo-ask-error { border-color: #f4212e; color: #f4212e; } | |
| /* v0.4.2: automatic queue position ("⏳ w kolejce", muted) and the in-flight spinner */ | |
| .xa-geo .xa-geo-ask-queued.xa-geo-auto { border: 1px dotted rgba(113, 118, 123, .6); color: rgb(113, 118, 123); opacity: .8; } | |
| .xa-geo button.xa-geo-ask-queued.xa-geo-auto { cursor: pointer; } | |
| .xa-geo button.xa-geo-ask-queued.xa-geo-auto:hover { color: #1d9bf0; border-color: #1d9bf0; opacity: 1; } | |
| .xa-geo .xa-geo-ask-loading { color: rgb(113, 118, 123); } | |
| .xa-geo .xa-geo-spin { display: inline-block; width: 9px; height: 9px; margin-right: 4px; vertical-align: -1px; box-sizing: border-box; | |
| border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: xa-geo-spin .8s linear infinite; } | |
| @keyframes xa-geo-spin { to { transform: rotate(360deg); } } | |
| @media (prefers-reduced-motion: reduce) { .xa-geo .xa-geo-spin { animation-duration: 2.4s; } } | |
| .xa-geo .xa-geo-wait { font-variant-numeric: tabular-nums; opacity: .85; margin-left: 3px; } | |
| /* v0.4.1: the summary button is its own item in the post's action bar (never positioned over poll/card content) */ | |
| .xa-summary-item { display: flex; align-items: center; flex: 0 0 auto; position: static; } | |