TampermonkeyScripts

Tampermonkey Scripts

Some useful Tampermonkey scripts for browser tasks.

RedirectUrls User Script

Redirect supported pages to more readable destinations while preserving back navigation.

Supported sites:

All Go Internet Archive User Script

Add a quick Internet Archive link on any site for testing snapshots.

Internet Archive User Script

Send most paywall articles to Internet Archive for archiving, hide fixed titles, and offer an Archive Today fallback.

Archive Today User Script

Redirect selected paywall pages to Archive Today, hide prompts, and jump into the content.

The Neuron Daily User Script

Hide non-essential elements on The Neuron Daily to keep focus on the main content.

Hide Banner User Script

Hide/click/scrollTo elements on specific sites for better reading experience:

Fix Floating Elements User Script

Turn floating toolbars and sticky overlays into scrollable elements on:

Articles External New Tab User Script

Open external links in background tabs with a ↗︎ indicator on:

Auto Open New Articles User Script

Track the latest seen article and auto-open newly listed items in background tabs with a yellow star on Taipei Astronomical Museum and The Neuron Daily.

Coding Diff Optimizer User Script

Stretch Git diffs edge-to-edge and slim line numbers on ChatGPT Codex tasks and GitHub.

Responsive Scroll Position Indicator User Script

Show thin, fixed vertical markers that track scroll position for every scrollable area on the page.

Google Translate Page Toggle User Script

Toggle the current page between original and Google Translate with Ctrl+Alt+S.

YouTube Tools User Script

Show a top-right YouTube tools overlay with « » speed controls and the current playback rate on watch pages.

Force Mobile View User Script

Keep pages within the viewport width, trim excessive horizontal spacing on all enabled pages, wrap long content, and expose a draggable top-right ↔ toggle button with auto-enable for matched URLs or tiny fonts.

Better Mobile View User Script

Expand Hacker News Summary article images to full width in portrait mobile view.

Better Discord User Script

Hide extra Discord chat input buttons so only the send button remains.

Force Dark Mode User Script

Expose a draggable top-right 🌙 toggle button to force dark mode colors with auto-enable for matched URLs.

Medium Auto Reload Once User Script

Reload Medium and Medium-powered domains once per session to avoid hangups.

Test Cases

See TestCases.md for sample URLs across the scripts.

Installation

Prerequisites:

  1. Install Tampermonkey on your browser.
  2. Turn on Developer mode/Allow User Scripts to run user scripts.

Steps:

  1. Click anyone you need:
  1. Tampermonkey Install page opened, click [Install] button to install.
  2. Reload the target page.

Contributing

Feel free to open an issue or submit a pull request if you encounter any bugs or have suggestions for enhancements.

License

This project is licensed under the MIT License. See the LICENSE file for details.