Skip to content

Latest commit

ย 

History

History
465 lines (308 loc) ยท 17.3 KB

File metadata and controls

465 lines (308 loc) ยท 17.3 KB

My Userscripts & Co.

Table of Contents


User Scripts

My personal browser user scripts.

To run them first install a user script plugin in your browser:

  • Chrome / Chromium-based (Vivaldi, Edge, Brave, ...): Violentmonkey (recommended, open-source) or Tampermonkey
    • Note: Violentmonkey is no longer listed on the Chrome Web Store due to MV3 restrictions, but works fine in other Chromium-based browsers.
  • Firefox: Violentmonkey (recommended), Tampermonkey, or Greasemonkey

Then just click on the desired *.user.js file above and click on the RAW button on the top right of the code. The code should then be automatically caught by the plugin, asking you to install it or not. If auto-update is enabled in your plugin, you should always have the most recent script version (link to the repo provided in all scripts).

Note that not all of them are regularly updated or heavily used (some might be outdated), and that I kept things simple (for myself) meaning most scripts import a few libs that I regularly use. The latter shouldn't be much traffic overhead due to Tampermonkey's internal lib cache, but it might not be ideal performance wise (works for me, no plans to change this soon).


Amazon Tweaks

Note: Last updated 2022-01-11. This script may no longer work correctly with the current version of the site.

amazon-links.user.js improves amazon shop pages.

  • Product page

    • Auto select one-time buy option (instead of default: subscription)
    • Adds a new keepa icon next to the price, and makes icon and price a link (open in new tab) to the product's keepa price tracking page.
      • Note that the keepa page will show the default amazon region and language (top right selection) but the price information will match the correct region of the source amazon page.
    • Adds a new amazon icon next to the price with a direct link to the product's page (short URL, no tracking, affiliation, etc.) e.g. for sharing.
    • Adds a new MetaReview link next to the average rating stars.

  • Search page

    • Replaces search result prices with links to the product's keepa price history page.
    • Replaces search result product links with clean ones (short URL, no tracking, affiliation, etc.).
  • Order overview

    • Adds light green background to delivered, and orange background to open / shipped orders.

Auto Show Forum Spoilers

Note: Last updated 2021-02-23. This script may no longer work correctly with the current version of the site.

auto-show-forum-spoilers.user.js automatically expands spoilers in common forums and collapsed "continue reading .." texts on patreon.com.


Copy URL on Hover

copy-url-on-hover.user.js copies link/media URIs to the clipboard on mouse hover.

  • Copies link URI into clipboard when hovering over a link while holding Alt-C.
  • Tries to copy media (image/video) URI into clipboard when hovering over an image while holding Alt-B.
  • Shows a brief tooltip indicating that the clipboard was updated:


DeTrigger

cb-detrigger.user.js filters potentially triggering elements to reduce emotional friction and foster a more serene browsing experience.

This script is still in its early stages, starting with the following simple filter:

  • https://civitai.com
    • Remove the reaction emojis ๐Ÿ˜ข and ๐Ÿ˜‚

Domain Redirector

domain-redirector.user.js redirects domains based on configurable mappings โ€” a single script covering all redirect use cases instead of one script per site.

  • Supports simple hostname rules (reddit.com -> old.reddit.com) and regex patterns on the full URL.
  • Redirects fire at document-start before any content loads.
  • Mappings are edited via a userscript extension (*monkey menu command); export/import is done by copy-pasting the textarea.

Emoji Replacer

emoji-replacer.user.js replaces emojis based on configurable mappings to personalize your browsing experience, or to reduce emotional friction by replacing potentially triggering emojis with more neutral alternatives.

  • Supports simple emoji replacement rules (๐Ÿ™ <- ๐Ÿ’ฉ ๐Ÿคฎ ๐Ÿคฌ ๐Ÿ˜ก ๐Ÿ‘ฟ ๐Ÿ˜ ) based on configurable mappings.
  • Mappings are edited via a userscript extension (*monkey menu command); export/import is done by copy-pasting the textarea.

Gerrit Tweaks

Note: Last updated 2018-12-02. This script may no longer work correctly with the current version of the site.

gerrit-tweaks.user.js improves gerrit code review:

  • Adds additional syntax highlighting for:

    • Exit keywords return and throw
    • Static method calls of Google Guava Preconditions (potential exits)


Buhl Finanzblick

Note: Last updated 2021-05-27. This script may no longer work correctly with the current version of the site.

finanzblick-tweaks.user.js improves Buhl Finanzblick:

  • Replaces amazon order numbers in the booking list with links to the amazon.de order history.


Image Search Tweaks

Note: Last updated 2019-12-07. This script may no longer work correctly with the current version of the site.

PROTOTYPE ONLY

image-search-tweaks.user.js improves the google and yandex image search.

Keys Action
alt-s Shuffle search result images ยน

ยน Only affects those images that are already loaded; to load more images page down first (slowly, or you might end up with empty image frames only).


IMDB Tweaks

Note: Last updated 2020-10-26. This script may no longer work correctly with the current version of the site.

imdb-tweaks.user.js improves imdb:

  • Enforces a dark background (a good idea with or without using Dark Reader)
  • Adds new key bindings:
Keys Action
Alt-F12 Open script configuration (ESC to close)

Episode List

  • Adds direct season links to episode list (top & bottom):

  • Makes the list more compact (default, configurable), adds hotkey d to toggle details:

  • Adds average season ratings (all users and own, faded in case of missing ratings):

  • Adds episode number to episode titles.

  • Changes own rating star colors:

    • 1-4 โ†’ light gray
    • 5-6 โ†’ gray
    • 7 โ†’ blue (average IMDB rating, regular star color)
    • 8-9 โ†’ gold
    • 10 โ†’ gold (larger star)
  • Adds new key bindings:

Keys Action
d Toggle compact list mode
[0-9] Navigate to season 0 to 9 (if available)
Shift-[0-9] Navigate to season 10 to 19 (if available)
[ Navigate to previous season (if available)
] Navigate to next season (if available)

Invoke-AI Tweaks

invoke-ai-tweaks.user.js adds some tweaks to InvokeAI.

  • Batch run mode with sampler selection, custom prompts, and prompt snippets.
  • Adds new key bindings:
Keys Action
b Open batch invocation configuration dialog

Batch Run

  1. Open the dialog via the new hotkeys.

  2. Select one or more samplers within the dialog:

  3. Optionally enter multiple prompt lines and/or up to five random value sets:

  4. With the optional random iteration multiplier for each combination of prompt and sampler, additional random variations (invocations) can be generated, x for every base combination.

  5. Start the batch run by pressing the Batch Invoke button which will set the samplers plus replace / substitute the prompt, with the optional prompt lines and random sets, one at a time (all combinations) and press the Invoke button afterwards:

  6. A tooltip will show updates while the batch run is in progress:

  7. When the run is finished, or the dialog is opened again (stopping the batch run), the original prompt will be restored:


Jenkins Tweaks

Note: Last updated 2020-06-30. This script may no longer work correctly with the current version of the site.

jenkins-tweaks.user.js improves Jenkins:

  • Highlights errors, exceptions, warnings, success, test issues etc. in:

    • Job console output
    • Blue Ocean pipeline and test output


OpenProject Tweaks

openproject-tweaks.user.js improves OpenProject by adding things like:

  • Highlights the user's own name (automatically detected).
  • Highlights issue priority, status, and type (tracker).
  • Highlights [tags] and bold in issue subjects.
  • Allows adding of additional custom styles (substitute text fragments via generic regex search mechanism).
  • Markdown Source Editor Improvements:
    • Increases editor height significantly (default: 65vh, configurable) for better overview
    • Automatically detects and enhances editors when switching between WYSIWYG โ†” Markdown modes
    • Reduces font size (default: 12px) to display more content
    • Configurable via constants at the top of the script:
      • MARKDOWN_EDITOR_HEIGHT โ€” default height (e.g., "65vh", "800px")
      • MARKDOWN_EDITOR_FONT_SIZE โ€” font size in source mode

Search Hotkey

Note: Last updated 2022-07-01. This script may no longer work correctly with the current version of the site.

search-hotkey.user.js adds the alt-f hotkey to some pages for faster searching (focus search input field).

Currently supported pages:


Streaming Tweaks

Note: Last updated 2022-11-11. This script may no longer work correctly with the current version of the site.

streaming-tweaks.user.js improves the user experience of some streaming services.

Netflix

Improvements to the Netflix web player:

  • Automatically skips the intro (where supported).
  • Automatically skips to the next episode (in closing credits view).
  • Adds new key bindings:
Keys Action
Shift-Right Fast-forward 1min
Shift-Left Rewind 1min
Ctrl-Right Fast-forward 10min
Ctrl-Left Rewind 10min
. (period) Next episode
Alt-F12 Open script configuration (ESC to close)
  • Configuration for:
    • Auto-skip intro and outro/to next episode (default: true)

Amazon Prime Video

Improvements to Amazon's prime video web player:

  • Automatically skips the intro (where supported).
  • Automatically skips to the next episode (in closing credits view).
  • Automatically skips ads / trailers (upfront & between episodes).
  • Adds new key bindings:
Keys Action
Shift-Right Fast-forward 1min
Shift-Left Rewind 1min
Ctrl-Right Fast-forward 10min
Ctrl-Left Rewind 10min
. (period) Next episode
Alt-F12 Open script configuration (ESC to close)
  • Configuration for:
    • Auto-skip intro and outro/to next episode (default: true)
    • Auto-skip ads (default: true)

Note: If this doesn't work please check the include. Script currently only matches URLs /^https?://(www|smile)\.amazon\.(de|com)/gp/video/. Depending on how you reach the player, the /gp/video/ might be missing in the URL.

YouTube

Improvements to YouTube:

  • Adds new key bindings:
Keys Action
Shift-Right Fast-forward 1min
Shift-Left Rewind 1min
Ctrl-Right Fast-forward 10min
Ctrl-Left Rewind 10min
. (period) Next video
, (comma) Previous video (playlist only)
= Default playback rate (1x)
] Increase playback rate (up to 2x)
[ Decrease playback rate (down to 0.25x)
Shift-] Increase playback rate max (2x)
Shift-[ Decrease playback rate min (0.25x)
U Toggle thumb up
D Toggle thumb down
Alt-F12 Open script configuration (ESC to close)
  • Configuration for:
    • Default playback rate (default: 1x)
    • Stop auto-playback (stop playback when page opens, default: true)

Disney+

Improvements to the Disney+ web player:

  • Adds new key bindings:
Keys Action
Shift-Right Fast-forward 1min
Shift-Left Rewind 1min
Ctrl-Right Fast-forward 10min
Ctrl-Left Rewind 10min
F Toggle fullscreen
S Skip intro/outro (if auto-skip is off)
BACKSPACE Exit player
Alt-F12 Open script configuration (ESC to close)
  • Configuration for:
    • Auto-skip intro and outro/to next episode (default: true)

Plex.TV

Improvements to the Plex web player:

  • Adds new key bindings:
Keys Action
Shift-Right Fast-forward 1min
Shift-Left Rewind 1min
Ctrl-Right Fast-forward 10min
Ctrl-Left Rewind 10min
F Toggle fullscreen
M Toggle mute
BACKSPACE Exit player
Alt-F12 Open script configuration (ESC to close)

Spotify

Improvements to Spotify:

  • Adds new key bindings:
Keys Action
. (period) Next track
, (comma) Previous track (if any)
r Switch Repeat Mode [All, Single, Off] (playlist only)
s Toggle Shuffle (playlist only)
/ Open search

ZDF Mediathek

Improvements to ZDF Mediathek (including 3sat):

  • Adds new key bindings:
Keys Action
Right Fast-forward 10sec
Left Rewind 10sec
= Default playback rate (1x)
] Increase playback rate (up to 2x)
[ Decrease playback rate (down to 0.25x)

TradingView

Note: Last updated 2019-10-31. This script may no longer work correctly with the current version of the site.

Improvements to TradingView:

  • Adds new key bindings:
Keys Action
Alt-1 to 0 Click favorite quick access timeframe buttons 1 to 10
Alt-f Toggle footer pane (Pine Editor, Strategy Tester, etc.)
Alt-Shift-f Toggle footer pane maximization
Alt-w Toggle Watch List (right pane)

Libs & Resources

Common libs and resources used in some of my scripts.

File Description
lib/cblib.js Some common JS used in my user scripts.
lib/cblib.css Some common CSS used in my user scripts.
dev/ Just some code snippets, notes, etc. that can be helpful while developing user scripts.

Q & A

  • Q: Why are the hotkeys (sometimes) not working as expected?
    • A: Most of these scripts disable hotkeys while an input field is in focus (e.g. cursor in YouTube search field while playing video) to prevent accidental hotkey execution while typing. Check if this is the case (e.g. click onto the player first to focus it).