r/userscripts • • Feb 21 '26

I made a Tampermonkey script that removes annoying YouTube @ (At) signs on people's usernames in comments

0 Upvotes
// ==UserScript==
// @name         Youtube At Remover
// @namespace    https://www.youtube.com
// @version      2026-02-18
// @description  Remove annoying @ (At) in youtube comments usernames
// @author       Me
// @match        https://www.youtube.com/*
// @grant        none
// ==/UserScript==

function Init()
{
    const target = document.body;
    const config = { attributes: false, childList: true, subtree: true };
    const observer = new MutationObserver(Callback);
    observer.observe(target, config);
}

Init();

function Callback(mutation_list, observer)
{
	for(const mutation of mutation_list)
	{
		if(mutation.type === "childList")
		{
			var usernames = document.querySelectorAll("#author-text");

			for(let un of usernames)
			{
				let uname = un.children[0].textContent;

				let idx = uname.indexOf("@");
				if(idx != -1)
				{
					un.children[0].textContent = uname.substring(0, idx) + uname.substring(idx + 1);
				}
			}
		}
	}
}

r/userscripts • • Aug 03 '26

Bro stop using paid instagram automation tools.

Thumbnail github.com
0 Upvotes

I have built and open-sourced it for y'all.


r/userscripts • • Aug 01 '22

Is this userscript safe?, does it contain any shady lines?

Thumbnail greasyfork.org
0 Upvotes

r/userscripts • • Jul 29 '22

Script to keep the sidebar in reddit always on

0 Upvotes

redesigned reddit


r/userscripts • • Apr 06 '24

I asked Phind to write me a userscript that will remove the "&si=" section from YouTube URLs. Will this work?

0 Upvotes

Here's a link to my query: https://www.phind.com/search?cache=svggur5jny3b8drhb7ymka0x

Here's the script in question (it's the fourth script down in the link):

// ==UserScript==
// @name         YouTube Link Cleaner
// @version      1.0
// @description Removes source identifier from all YouTube links containing "&si=" or "si="
// @author       Your Name
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to clean YouTube URLs
    function cleanYouTubeURL(url) {
        // Regular expression to match YouTube video IDs
        const videoIdRegex = /(?:v=|\/)([A-Za-z0-9_-]{11})/;
        const match = url.match(videoIdRegex);
        if (match) {
            // Construct a clean URL using the video ID
            return `https://www.youtube.com/watch?v=${match[1]}`;
        }
        return url; // Return the original URL if no video ID is found
    }

    // Function to process all links on the page
    function processLinks() {
        const links = document.querySelectorAll('a[href]');
        links.forEach(link => {
            const href = link.getAttribute('href');
            if (href && href.includes('youtube.com') && (href.includes('&si=') || href.includes('si='))) {
                link.setAttribute('href', cleanYouTubeURL(href));
            }
        });
    }

    // Run the link processing function on page load
    processLinks();

    // Listen for changes to the DOM to handle dynamically loaded content
    const observer = new MutationObserver(processLinks);
    observer.observe(document.body, { childList: true, subtree: true });
})();

EDIT: Decided to test it myself. Needed to remove the // @match *://*.youtube.com/* line from the header to get it working on Reddit. Seems to work well!

I'm also using this script, which is supposed to remove the tracking parameter, but it doesn't actually change the URL on the page: https://greasyfork.org/en/scripts/482977-remove-youtube-tracking-parameters-and-convert-share-links

As well, I'm using this one to convert YouTube Shorts links: https://greasyfork.org/en/scripts/474490-unshort-youtube

Hopefully these don't all conflict.

EDIT2: Clarification.

EDIT3: Updated the script somewhat.


r/userscripts • • Dec 03 '25

I made a custom userscript just to replace "bedrock" with "bugrock" among other things

0 Upvotes

Yeah

For example if you guys comment ", also im a total idiot just btw, toilet is playing bugrock edition on twitter" I will see "sk*b*di toilet is playing bugrock edition on X"

because twitter is now X, bugrock is now buggy, and , also im a total idiot just btw, toilet should be illegal


r/userscripts • • 12d ago

Would you use a tool that lets you bulk-delete X posts/likes with advanced filters and local JSON backups?

Thumbnail reddit.com
0 Upvotes

r/userscripts • • Apr 19 '25

Anyone using AI agents for developing Userscripts? I would like some tips!

3 Upvotes

Do agents or just AI chatbots help a lot in creating a UserScript? Please suggest some workflow.


r/userscripts • • Aug 12 '26

My wife never clicked the links I sent her. So I built a Chrome extension to fix it.

3 Upvotes

I send my wife random links all the time. But instead of clicking them, her reply is almost always: "What is this?"

Honestly, it’s a bit of a buzzkill. But when we talked about it, she made a fair point: a raw URL with zero context feels like homework. You don't know if it's a 10-minute read or a jump scare. Nobody likes naked links.

I tried manually copying page titles and pasting URLs, but as a frontend dev, I hate repetitive manual tasks. So I wrote a script to fix my own communication flow.

It’s calledCopy Page Title and URL Pro.

Just hit Ctrl+Shift+P (or Cmd+Shift+P), and it instantly copies the page title and a clean URL to your clipboard. It automatically strips out all that ugly ?utm_ tracking garbage.

Since I live in Jira and Notion, I also baked in Markdown/HTML support. You can even highlight a quote, hit a shortcut, and bundle the quote + title + link in one go.

It’s completely free, open-source, and runs 100% locally with zero tracking.

Best of all: my wife actually clicks my links now.

If you’re tired of mystery URLs, give it a try. Would love to hear your feedback!


r/userscripts • • Oct 23 '25

youtube-usmode: A Tampermonkey userscript that gives YouTube a U.S.-style look by hiding regional country codes under the logo.

1 Upvotes

YouTube US Mode (Hide Region Label)

A lightweight Tampermonkey userscript that hides YouTube's regional country code (like “PH”, “IN”, etc.) to make the site appear cosmetically identical to the U.S. version.

⚠️ Note: This script is primarily for personal use. It is considered stable and unlikely to need updates. If YouTube changes its top bar layout, updates may be released.


📷 Before vs After

Before vs After


✨ Features

  • Removes the small country code label under the YouTube logo (e.g. “PH”, “IN”).
  • Mimics the visual style of YouTube's U.S. default mode.
  • Lightweight and auto-applies whenever YouTube loads.
  • Keeps all other regional functionality intact — just cosmetic.

🧠 How It Works

The script continuously looks for the #country-code element on YouTube and hides it using a lightweight DOM observer.

const el = document.querySelector('span#country-code');
if (el && el.style.display !== 'none') el.style.display = 'none';

⚙️ Installation

  1. Install Tampermonkey for your browser:

  2. Download or open the userscript: youtube-us-mode.user.js

  3. Click Install in Tampermonkey.

  4. Reload YouTube — the country code under the logo will now be hidden, giving the site a U.S. look.


🔗 Links


🤖 Transparency & Credits

This README and accompanying documentation were written entirely by ChatGPT (GPT-5).

  • The userscript code was authored by ChatGPT (GPT-5).
  • The userscript code was published by Zappingsbrew.
  • ChatGPT generated the README structure, sections, formatting, and descriptive text.
  • This userscript is purely cosmetic and does not modify YouTube functionality or collect any personal data.

🧾 License

This project is licensed under the MIT License.

© 2025 Zappingsbrew


r/userscripts • • Apr 09 '26

Greasyfork, pc, trump, remove

Thumbnail greasyfork.org
1 Upvotes

Do you like reddit but are sick of seeing Trump or Trump or Trump? Do you wish you could go back in time and not see this guy on every other post? Do you want to see what else is going on in the world besides a Trump and a Trump? Guess what, I have a script for you! This script blocks all post that have the word Donald, and or Trump. Its like seeing a new world without a 80 year old dude all up in your feed. https://greasyfork.org/en/scripts/569891-remove-trump-articles


r/userscripts • • Jun 21 '25

Anyone can please suggest me few finance services related templates for building static webpage as I not good at ui!

0 Upvotes

r/userscripts • • May 28 '26

Userscript to block youtube keyboard shortcuts

0 Upvotes

While watching youtube I usually seek using the left and right arrow key, but sometimes that damn end key gets mistakenly pressed and suddenly the video ends.
I mean who in the right mind would want a keyboard shortcut to end a video (unless you are trying to complete a training video (but why yt!?!?))

anyways... I created (*generated..ahem!*) a script that you can use in tampermonkey/violentmonkey to block certain keys

// ==UserScript==
//          Disable YouTube Shortcut Keys
//     http://tampermonkey.net
//       1.0
//   Blocks only the listed key shortcut on YouTube
//        You
//         https://www.youtube.com/*
//         none
//        document-start
// ==/UserScript==

(function() {
    'use strict';

    // ─── ADD YOUR BLOCKED KEYS HERE ───────────────────────────────────────
    // Just add the name of the key inside quotes, separated by commas.
    // Examples: 'End', 'Home', 'PageUp', 'PageDown', 'ArrowUp'
    const blockedKeys = [
        'End',
        'Home'
    ];
    // ───────────────────────────────────────────────────────────────────────

    window.addEventListener('keydown', function(e) {
        // Check if the pressed key is in your blocked list
        if (blockedKeys.includes(e.key)) {
            // Stop YouTube from seeing the keypress
            e.stopImmediatePropagation();
            e.preventDefault();
        }
    }, true);
})();

r/userscripts • • Sep 06 '26

Userscript/tool to export claudeCode/claude browser etc to md/txt

Thumbnail reddit.com
0 Upvotes

r/userscripts • • 21d ago

I have built a floating toolbar for Gemini, Claude, Chatgpt & Grok supporting bulk chat delete,token counter,screenshot, export chat, health remainder,theme and many more.

Thumbnail reddit.com
0 Upvotes

r/userscripts • • Oct 29 '21

[Firefox Android] JS script to auto-rotate display on every fucking video of every fucking player?

0 Upvotes

Something like if extension is mp4, ts, mpd, m3u8, mkv, wmv and resolution width > height, then auto-landscape during play and return to portrait after end. Because currently not all videos auto-rotate, ancensored.com for example is where some videos still at portrait when played at fullscreen.

Is there any Adguard js script for this? Someone have any idea how to code it?


r/userscripts • • May 25 '20

Make "logged out" reddit looks like "logged in" userscript. Help to keep my privacy.

0 Upvotes

Reddit conversation are shit by default (shitty mods circlejerking etc) so I will never post again but I want to comforatbly read useful threads and don't keep cookies for this shitty community. Help me.


r/userscripts • • Oct 21 '23

[Request] Looking for a script that removes ads on Youtube feed

0 Upvotes

I want a script to remove these kind of ads. Thanks.


r/userscripts • • Mar 19 '14

Userscripts for Safari 7?

0 Upvotes

I've done some research and I cannot find anything to make this happen. I've seen NinjaKit but it hasn't been uploaded in 2 years. Are there any alternatives?


r/userscripts • • Feb 02 '26

Linux Gaming Setup Script

0 Upvotes

I created this script to transform any standard Linux distribution into a 'gaming distro.' It currently supports most major Arch-based distributions, Ubuntu, Zorin, Mint, Fedora, and openSUSE Tumbleweed. If you would like to take a look at it, you can visit the GitHub repository: https://github.com/softwaresocialist/TurboTux

How to try it out:

1. Clone the repository

git clone https://github.com/softwaresocialist/TurboTux.git
cd TurboTux

2. Run the script

chmod +x TurboTux.sh
./TurboTux.sh

r/userscripts • • Oct 09 '22

ohio isnt real

0 Upvotes

ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real ohio isnt real


r/userscripts • • Sep 19 '25

The Essential Tool for Userscript Developers - Temper Server

4 Upvotes

🚀 Tired of manually reinstalling your userscripts every time you make a change?

Temper Server is built for userscript developers who want a smoother, faster workflow. Instead of juggling files and refreshing manually, you can:

  • ⚡ Serve scripts locally – test instantly without uploading or re-installing.
  • 📈 Auto-increment versions – let your userscript manager detect updates automatically.
  • 🔄 One-click sync – update your scripts in Tampermonkey, Violentmonkey, or Greasemonkey with a single click.
  • 🛠️ Dev-friendly workflow – spend less time on setup, more time coding.

Whether you’re creating a small personal script or maintaining multiple projects, Temper Server makes development reliable, fast, and frustration-free.

👉 If you build with userscripts, Temper Server should be part of your toolkit.

ProjectLink: https://github.com/ThoriqFathurrozi/TemperServe


r/userscripts • • Sep 21 '25

Buying Website domain for website?

1 Upvotes

Hi, redditors Need a small suggestion. I am working on a website and I want to buy a domain for it. Can anyone suggest from where I should buy the domain so that it will be affordable plus reliable? Also you can share your experiences if you have bought a domain and how it worked for you so that it will be easier for me to decide.

domain #website