Skip to content

Greasemonkey Userscripts

Back in 2004 a neat little browser extension called "Greasemonkey" was created that allowed for the management of custom javascript snippets to be run on the browser after or before the page is loaded allowing customization or augmenting the browsing experience.

This has sometimes been used as alternative to web browser extensions. With the bonus that the code is shown directly available for you to read before you accept to install it, so you can evaluate if the script is safe. Updating the script is also uptional and will show you the diff of the changes.

Because of this, for security reasons I tend to prefer small userscripts that are easier to review. And this has let me to sometimes resort to writting my own small and custom scripts trying not to sacrifize functionality and usefulness while keeping the line count and complexity on saner levels.

How to install

  1. Install first a script manager extension. A popular and portable open source option is Tampermonkey.

  2. Visit on a link to a user script javascript file (filename ending with .user.js). The script manager should show a UI allowing you to review and install the script.

Userscripts

  • Save/Load Form Data

    Save the content of forms and reuse those values later

    Version
    1.2
    Last update
    Jan 21, 2025
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    109
    Author
    Ferk

    It'll allow you to store the content of web forms for later use, and keep multiple named presets that will be stored specifically for each domain.

    This is useful to automate some tests or in general to make filling long forms less of a hassle.

    Any preset named "default" will load automatically.

  • Auto Dark Mode

    Detects the page lightness and enables Dark Mode when appropriate.

    Version
    1.7
    Last update
    Nov 24, 2024
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    74
    Author
    Ferk

    Applies a dark mode style only when the page is detected to have a light background.

  • Audio/Video Link Finder

    Find the links to all video/audio media tags, as well as iframes

    Version
    1.0
    Last update
    Oct 27, 2024
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    60
    Author
    Ferk

    A simple way to get the raw links to open them in a new tab or for easier download.

    Note that this won't work well in websites that provide the media data in other ways, such as the cases where there might be some "blob:" links, for example.

    The iframes will be searched through recursivelly, if they are from the same domain (or if they have explicitly allowed cross-origin communication).

  • ImageZoom Right-Click

    Zoom on images with the mouse wheel while holding right-click on them.

    Version
    1.6
    Last update
    Apr 2, 2023
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    104
    Author
    Ferk

    Right click and a dialog with the original image will show, it'll disappear if you release the right click, but if you scroll the dialog will zoom and stay put until you click outside.

    It should work also on background images, or in images that are layered, covered by some html text but if there's a transparent image over it, it might pick up the transparent one before the one below. To prevent unintended activation, the dialog will only show if there's no text selected.

    It uses 'pixelated' as rendering mode so you actually can see the pixels when zooming which I personally prefer over a blurry mess.

  • Favicon replacer

    Set custom favicons for any website, either an image or an emoji.

    Version
    1.0
    Last update
    Sep 15, 2022
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    19
    Author
    Ferk

    For each domain name a custom favicon can be set, overriding the favicon on the website.

    To select which favicon to use, you can make use of the userscript menu (from your userscript extension) to find an option where you can set a custom URL or emoji for each website.

  • zap

    Zap distractions from websites.

    Version
    1.1
    Last update
    Sep 14, 2022
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    27
    Author
    Ferk

    This is not something you might want to have enabled all the time, but when you do use it, it will clean up distracting content from the websites to make them more readable.

    Most fancy components will be removed/hidden. Colors will be replaced. Images will be faded out (with some fade in on hover).

  • Apt-linker

    Turns "apt-get install" lines into "apt://" apturl links

    Version
    1.2
    Last update
    Sep 14, 2022
    Applies to
    all websites
    License
    GNU GPLv3
    LOC count
    31
    Author
    Ferk

    Turns "apt-get install" lines into clickable apturl links for installing Ubuntu and Debian GNU/Linux packages This extension is intended to ease the life of Ubuntu/Debian users who browse the Internet searching for software, tutorials, etc.

    Apt: urls are a way to install packages by using a protocol handler to read the list of packages to install.

    This extension will turn lines of text describing commands for installation into clickable links that allow you to install the packages with just 2 clicks.

    More info about AptUrl can be found here: https://help.ubuntu.com/community/AptURL

  • Qwant Endless Scrolling

    Infinite scroll for Qwant.

    Version
    1.0
    Last update
    Jul 9, 2022
    Applies to
    www.qwant.com
    License
    GNU GPLv3
    LOC count
    3
    Author
    Ferk

    A simple infinite scrolling script for Qwant.com

    Upon scrolling to the bottom of the page, the "show more" button will be automatically pressed.

Personal page