X.com/Twitter Automation

Automatically loads new posts on X.com/Twitter and scrolls back to the reading position.

目前为 2024-11-23 提交的版本。查看 最新版本

作者
Copiis
评分
0 0 0
版本
2024.12.23
创建于
2024-11-17
更新于
2024-11-23
大小
9.1 KB
许可证
MIT
适用于

X.com/Twitter Automation Script

X.com/Twitter Automation Script


This script automates loading new posts on X.com (formerly Twitter) and ensures that the reading position is preserved. It's designed for users who frequently scroll through their feed and want to stay updated without manually interacting with the platform.

Features

  • Automatically loads new posts when they are available.
  • Scrolls back to your last reading position after new posts are loaded.
  • Stores the top post's data (timestamp and author) to preserve context.
  • Deactivates automation when you manually scroll away from the top.
  • Handles dynamic loading of content and waits for posts to fully render.

Installation Guide

Follow these steps to install and use the script:


  1. Install a userscript manager in your browser. Popular options include:

  2. After installing a userscript manager, click the following link to install the script directly:
    Download the Script.

  3. The userscript manager will prompt you to confirm the installation. Click "Install" to add the script.

  4. Navigate to https://x.com/home to use the script. It will automatically start working when the page loads.

Technical Notes

The script uses the following key features:

  • Mutation Observers to detect dynamic changes in the webpage's structure.
  • Scrolling functionality to keep the user's position intact.
  • Local storage (via GM_setValue and GM_getValue) to persist data between sessions.

Licensing and Credits


This script is open-source and distributed under the MIT License. Created by Copiis.


Icon used in the script:
Link to Icon.

Support


If you encounter issues or have feedback, visit the script's source page:
Script Repository.