TampermonkeyScripts

Tampermonkey Scripts

Some useful Tampermonkey scripts for browser tasks.

Hacker News Comments User Script

Add an article button for Hacker News comments, including pages reached through redirects.

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 action in the shared floating menu and mark Archive Today links.

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 supported article links in background tabs with a ↗︎ indicator on:

Auto Open New Articles User Script

Add clear read states, fixed collapse controls, and bounded date navigation to Hacker News Summary; track and auto-open new items on other supported sites.

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.

Translation Crash Guard User Script

Prevent machine-translation DOM rewrites from crashing dynamic web applications.

Translate Preformatted Text User Script

Translate code blocks with per-block controls and a shared-menu page action; improve inline code, Mastodon, and Wikipedia translation.

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 playback-speed overlay that hides in fullscreen until hovered.

Force Mobile View User Script

Keep enabled pages within the viewport width and offer a shared-menu ↔ toggle with URL-based auto-enable.

Better Mobile View User Script

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

Fullscreen Game View User Script

Fit embedded games within mobile screens and add a distraction-free fullscreen toggle.

Better Discord User Script

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

Force Dark Mode User Script

Force dark colors with a shared-menu ☽ toggle and URL-based auto-enable.

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.