Twitter/X Timeline Sync

Copiis
2024-11-17T11:48:17Z

Tracks and syncs your last reading position on Twitter/X, with manual and automatic options. Ideal for keeping track of new posts without losing your place. Uses Tweet ID for precise positioning and supports reposts.

Twitter/X Timeline Sync

This Tampermonkey userscript helps you track and synchronize your last reading position on Twitter/X (formerly Twitter). It ensures you never lose your place in your timeline, even when new posts appear. The script uses precise Tweet IDs for positioning and fully supports reposts, making it ideal for heavy users who want to seamlessly resume reading.

Key Features:

Automatic Tracking: Detects your current top-visible post as you scroll and saves it automatically (using local storage via GM_setValue/GM_getValue).

Manual and Auto Sync: Buttons for manual search (🔍), loading from JSON file (📂), and downloading the position (💾). Auto-download can be toggled via menu command.

Smart Search: When new posts appear, the script searches for your last position by scrolling intelligently (up/down cycles, slow/fast modes) and highlights it with a glowing border.

Fallback Mechanisms: If the exact Tweet ID isn't found (e.g., deleted post), it falls back to the closest post by timestamp or ID.

Multi-Language Support: Popup messages and descriptions in multiple languages (English, German, Spanish, French, etc.), auto-detected from browser settings.

History Tracking: Keeps up to 50 recent positions in history for better fallback and export.

Edge Case Handling: Warns for old positions (>24 hours), handles reposts, and redirects to home if needed for searching.

How it Works: The script monitors scrolls, DOM changes, and focus events to detect new posts. It uses MutationObserver for real-time updates and IntersectionObserver for efficient post detection during searches. Positions are stored per account and can be exported/imported as JSON for cross-device sync.

Compatibility: Works on x.com/* (Twitter/X). Requires Tampermonkey or similar userscript manager.

Version: 2026.1.20 | Author: Copiis | License: MIT

Support and Donations

If you find this script helpful, consider supporting the developer:

Bitcoin (BTC): bc1quc5mkudlwwkktzhvzw5u2nruxyepef957p68r7

PayPal: PayPal.me/Coopiis