Skip to content

digitalby/twitter-userscripts

Repository files navigation

Twitter/X Userscripts

A collection of userscripts that add keyboard shortcuts, inline information, and quality-of-life improvements to Twitter/X.

Inline follower count and bio on a tweet

Scripts

Script Description Key Install
Inline Follower Count Displays follower count and bio directly inline in tweets and user cells. Uses Twitter's GraphQL API. -- Install
Backspace to Go Back Press Backspace to navigate back using Twitter's soft SPA navigation. Backspace Install
Post Activity Hotkeys View post activity and switch tabs for Quotes, Reposts, and Likes. v q t l Install
Delete Hotkey Delete a focused tweet via the three-dot menu. d Install
Open Quote Tweet Open a focused tweet's embedded quote tweet. p Install
Open Profile Open the author's profile from a focused tweet. f Install
User Cell Hotkeys Keyboard shortcuts on user cells (follower lists, search results, etc.). x f u w Install

Shared Library

twitter-custom-keys.lib.js -- Shared library that adds a "Custom" section to Twitter's built-in ? keyboard shortcuts dialog, showing all registered custom shortcuts. This file is loaded automatically via @require by the hotkey scripts above and does not need to be installed separately.

Custom section in the keyboard shortcuts dialog

Installation

Desktop Browsers

You need a userscript manager extension. Recommended options:

Steps:

  1. Install one of the extensions above.
  2. Click the Install link for any script in the table above.
  3. The userscript manager will show an install prompt. Click Install.

iOS (Safari)

  • Userscripts -- free, open source, available on the App Store

Steps:

  1. Install Userscripts from the App Store.
  2. Go to Settings > Safari > Extensions and enable Userscripts.
  3. Open Safari, tap the extension icon, and set a script directory.
  4. Add scripts to that directory or install via the raw GitHub links above.

Android

Steps:

  1. Install Firefox for Android.
  2. Add the Tampermonkey extension from the Firefox add-ons menu.
  3. Click the Install links above to install scripts.

Notes

  • All hotkey scripts ignore input when typing in text fields, textareas, or contenteditable elements.
  • Modifier keys (Ctrl, Cmd, Alt) are ignored to avoid conflicts with browser shortcuts.
  • Tweet-level hotkeys (d, p, f) operate on the tweet focused via Twitter's built-in j/k navigation.
  • Scripts work on both twitter.com and x.com.

License

MIT

About

Useful Twitter userscripts (accessibility, power users)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors