/userscripts

User scripts and other website improvements

Primary LanguageJavaScriptMIT LicenseMIT

My Userscripts & Co.

User Scripts

My personal browser user scripts.

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

Then just click on the disered *.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 heavy 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

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) the 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.
      amazon links1

  • 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

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:

copy on hover link1

copy on hover media1

Gerrit Tweaks

  • Adds additional syntax highlighting for:

    • Exit keybords return and throw

    • Static method calls of Google Guava Preconditions (potential exits)
      gerrit tweaks code1

Buhl Finanzblick

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

finanzblick tweaks amazon1

Image Search Tweaks

PROTOTYPE ONLY

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

Keys Action

alt-s

Shuffle search result images [1]

IMDB Tweaks

  • 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):
    imdb tweaks seasons1

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

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

  • 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

  • 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: invoke ai tweaks batchrun sampleroption

  3. Optionally enter multiple prompt lines and/or up to five random value sets: invoke ai tweaks batchrun substoption

  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: invoke ai tweaks batchrun substprompt

  6. A tooltip will show updates while the batch run is in progress: invoke ai tweaks batchrun statustooltip

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

Jenkins Tweaks

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

    • Job console output

    • Blue Ocean pipeline and test output
      jenkins console1

OpenProject Tweaks

openproject-tweaks.user.js improves OpenProjects by adding thinks 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 additoinal custom styles (substitute text fragments via generic regex search mechanism).

Search Hotkey

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

Currently supported pages:

Streaming Tweaks

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 is currently only in case URL matches /^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

Shift-[

Decrease playback rate min (0.25x)

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

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 the 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).


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