X to Twitter Text Replacer

Replace "Post/Posts" with "Tweet/Tweets" and "X/X Corp" with "Twitter/Twitter Inc." on all X.com and Twitter.com sites

Author
jglypt
Daily installs
0
Total installs
2
Ratings
0 0 0
Version
1.4
Created
2025-05-27
Updated
2025-05-28
Size
8.66 KB
License
MIT
Applies to

Additional Info

This script modifies the appearance of X/Twitter in your browser by replacing specific text elements. It changes instances of "Post" and "Posts" to "Tweet" and "Tweets," respectively, and replaces "X Corp" with "Twitter Inc." This is a client-side modification, meaning it only affects how you see the site and does not change the actual content on Twitter's servers.

Key Features:

  • Text Replacements:

    • Replaces "Post" with "Tweet" and "Posts" with "Tweets" (case-insensitive).
    • Replaces "X Corp" and "X Corp." with "Twitter Inc."
    • Replaces standalone instances of "X" with "Twitter" (e.g., when it's not part of another word).
  • Context Awareness: The script is designed to avoid modifying user-generated content (tweets, DMs, etc.). It uses CSS selectors to identify and skip elements that typically contain user-created text, ensuring that your own posts and messages are not altered.

  • Dynamic Content Handling: The script uses a MutationObserver to detect and process changes to the page content as you browse. This ensures that new content loaded via AJAX or other dynamic methods is also modified correctly.

  • Supported Domains: This script works on the following domains:

    • x.com
    • mobile.x.com
    • twitter.com
    • mobile.twitter.com

Installation:

  1. Install the Tampermonkey browser extension: https://www.tampermonkey.net/
  2. Click the install link provided by the distribution method (Greasy Fork, raw script URL, etc.)
  3. Tampermonkey will prompt you to confirm the installation.
  4. Once installed, the script will automatically run on X/Twitter.

Uninstallation:

  1. Open the Tampermonkey dashboard in your browser.
  2. Find "X to Twitter Text Replacer" in the list of installed scripts.
  3. Click the "delete" icon (usually a trash can) to remove the script.

Important Notes:

  • This script is provided as-is and may require updates to remain compatible with future changes to the X/Twitter website.
  • The script only modifies the appearance of the site in your browser. It does not alter any data on Twitter's servers.
  • This script prioritises avoiding changes to user-generated content. However, due to the complexity of web page structures, there might be rare cases where it incorrectly identifies and skips elements. Please report any issues or suggestions for improvement.
  • The script attempts to handle standalone instances of "X" carefully. If you encounter situations where it incorrectly replaces "X" in other contexts, please provide feedback.