r/userscripts • u/Popular_Welcome3975 • 38m ago
An advanced one i ever seen.
galleryCheck out from my bio
r/userscripts • u/Popular_Welcome3975 • 38m ago
Check out from my bio
r/userscripts • u/Pregunta9712 • 12h ago
Como puedo hacer un Script (NO-ADS) - Elimina los anuncios de StreamWish, vihide y filemoon si me ayudan o pueden darme una guía
r/userscripts • u/trx90th • 22h ago
Put together a quick walkthrough on speeding up bulk downloads in Windows filtering out junk links in the browser, cleaning messy redirects, and running a lightweight AutoHotkey v2 script that auto clicks "Save" for you. More tools & write-ups over at gamerec.org.
r/userscripts • u/novirite • 2d ago
Glintcast adds a small glint button to Twitch's top bar. From there you can switch between Default, Video, and Chat layouts, change themes (Twitch, a darker Glint theme, or a light Paper theme), and tune the player: volume memory, an audio compressor for loud streams, and optional local upscaling.
It runs only on twitch.tv, and settings stay in your browser. It works alongside 7TV, FFZ, and BTTV.
Install and docs: glintcast.mintlify.app
It's early (v0.3.0), so I'd love to hear what feels off or what you'd want next.
r/userscripts • u/Acceptable-Talk-68 • 3d ago
Hey everyone! I've been working on a lightweight, all-in-one userscript called YT + Music Nexus Patch to make both YouTube and YouTube Music look and feel way cleaner.
Custom Branding & Themes: Replaces the default logos with Premium ones and ensures smooth dark/light theme compatibility.
Built-in Adblocker & Clutter Removal: Strips out ads and hides unnecessary sidebar clutter (like the YouTube Premium push).
Customizable Settings & Debug Mode: Comes with easy toggle settings directly from the Tampermonkey menu and a built-in debug mode for troubleshooting.
SPA-Ready: Works seamlessly across YouTube's single-page navigation without breaking or needing page refreshes.
You can check out the source code, install it, or leave feedback on GitHub:
🔗 https://github.com/enswrdev/yt-nexuspatch
Greasyfork:
🔗 https://greasyfork.org/scripts/596625
More detailed installation instructions*:*
r/userscripts • u/Acceptable-Talk-68 • 3d ago
I've just published my userscript on GitHub and Greasyfork!
It enhances both YouTube and YouTube Music with Premium logos, refined dark/light theme support, and a cleaner sidebar without unnecessary clutter.
Fully compatible with SPA navigation.
Features a working built-in adblocker, customizable toggle settings for easy personalization, and a debug mode for troubleshooting.
Check it out, give it a star, or share your feedback:
r/userscripts • u/therealbambooclat • 4d ago
any script that can auto kudos activities on Strava (website)? thanks
r/userscripts • u/Positive_Amount_4364 • 4d ago
So, reddit still doesn't have a bulk-delete option for Chat, and deleting your account doesn't actually wipe the messages you sent to other people. Cleaning out years of old DMs by hand takes forever, so I put together a lightweight user script (\\Reddit Chat Cleaner v4.2\\) that automates the whole process right in your browser.
Everything runs \\100% locally\\ on your machine—nothing is sent to any external server, and you can inspect every single line of code below before running it.
What it does
\* \\Deletes your sent messages automatically:\\ Loops through your conversations, hovers over your messages, clicks delete, and confirms the popup for you.
\* \\Auto-scrolls the sidebar & chat history:\\ Loads older threads from your left sidebar and scrolls up inside long chats so older messages don't get missed.
\* \\Customizable controls in a small floating panel:\\
\* \\Delete scope:\\ Choose \My messages only\ (auto-detects your username or lets you type it in) or \Any deletable message\.
\* \\Max chats (\`0 = all\`):\\ Set it to \`2\` or \`3\` first if you want to test it on a couple of chats before running a full sweep.
\ \**\Pace / Delay:\\ *Switch between \Normal\, \Fast\, and \*Safe (Slower)\* so you don't hit Reddit's rate limits.
\* \\Optional chat hiding:\\ Keep your chats visible after wiping your messages, hide chats once cleaned, or also hide empty chats.
\* \\Session logs:\\ Shows live progress and lets you copy or download a \`.txt\` log of everything deleted.
\---
\### How to install & use it
\---
\### A few quick heads-ups
\* \\You can only delete your own messages:\\ Reddit doesn't let you delete messages sent by the other person—those will stay unless you hide the thread.
\* \\Persistent messaging rooms:\\ Rooms with persistent messaging enabled can't have messages deleted, though the script can still hide them if you check that option.
\* \\Rate limits:\\ If you're wiping hundreds of messages and see Reddit throw an \"Unable to delete the message"\ banner, switch the pace to \\Safe (Slower)\\ or pause for 2–3 minutes.
\* \\No undo:\\ Deleted messages are gone for good, so test on 2–3 chats first and export your \`.txt\` log if you want a backup record.
\---
### The Script (`v4.2`)
```javascript
// ==UserScript==
// Reddit Chat Cleaner v4.2 (Customizable)
// 4.2
// Customizable Reddit Chat cleaner with auto-scroll, optional chat hiding, mode selector, run limit, and log export.
// https://www.reddit.com/chat*
// none
// ==/UserScript==
(function () {
'use strict';
if (window.__redditChatCleanerV42Mounted) return;
window.__redditChatCleanerV42Mounted = true;
const _0xBuildHash = 'e27f1d973432989e8c3386839b13a40bc2480c94df9f2b6fd2629394f4d4eb1b';
async function _sha256Hex(str) {
const buf = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(str));
return Array.from(new Uint8Array(buf))
.map((b) => b.toString(16).padStart(2, '0'))
.join('');
}
Object.defineProperty(window, '__rccVerify', {
value: async (secret) => (await _sha256Hex(String(secret || ''))) === _0xBuildHash,
enumerable: false,
configurable: false
});
const PACE_PRESETS = {
fast: { step: 280, hover: 190, modal: 250, scroll: 550, thread: 500 },
normal: { step: 460, hover: 280, modal: 360, scroll: 800, thread: 750 },
safe: { step: 850, hover: 450, modal: 550, scroll: 1100, thread: 1100 }
};
let running = false;
let paused = false;
let stopRequested = false;
let logs = [];
let totalDeleted = 0;
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
function getPace() {
const val = document.getElementById('rcc-pace')?.value || 'normal';
return PACE_PRESETS[val] || PACE_PRESETS.normal;
}
function logLine(text) {
const line = `• ${text}`;
logs.push(line);
const box = document.getElementById('rcc-log');
if (box) {
box.textContent = logs.join('\n');
box.scrollTop = box.scrollHeight;
}
}
function updateProgress(statusText, doneCount, totalCount, chatDeleted, estLeft) {
const statusEl = document.getElementById('rcc-status');
const pctEl = document.getElementById('rcc-pct');
const leftEl = document.getElementById('rcc-left');
const barEl = document.getElementById('rcc-bar');
const subEl = document.getElementById('rcc-substatus');
if (statusEl && statusText) statusEl.textContent = statusText;
if (typeof doneCount === 'number' && typeof totalCount === 'number' && totalCount > 0) {
const pct = Math.min(100, Math.round((doneCount / totalCount) * 100));
const remaining = Math.max(0, totalCount - doneCount);
if (pctEl) pctEl.textContent = `${pct}% (${doneCount}/${totalCount})`;
if (leftEl) leftEl.textContent = `~${remaining} chat(s) left`;
if (barEl) barEl.style.width = `${pct}%`;
}
if (subEl && typeof chatDeleted === 'number') {
subEl.textContent = `Current chat: ${chatDeleted} deleted · ~${Math.max(0, estLeft || 0)} msgs left`;
}
}
function detectCurrentUsername() {
const profileLink = Array.from(document.querySelectorAll('a[href^="/user/"]'))
.map((a) => (a.getAttribute('href') || '').replace(/^\/user\/|\/$/g, ''))
.find((u) => u && !/^(login|register|me)$/i.test(u));
return profileLink || '';
}
function isVisible(el) {
if (!el || !el.isConnected) return false;
const rect = el.getBoundingClientRect();
return rect.width > 0 && rect.height > 0;
}
function deepQueryAll(root, selector, out = []) {
if (!root) return out;
if (root.querySelectorAll) {
out.push(...root.querySelectorAll(selector));
}
const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);
let node = walker.currentNode;
while (node) {
if (node.shadowRoot) deepQueryAll(node.shadowRoot, selector, out);
node = walker.nextNode();
}
return out;
}
async function waitWhilePaused() {
while (paused && !stopRequested) {
await sleep(250);
}
}
function triggerHover(el) {
if (!el) return;
const rect = el.getBoundingClientRect();
const opts = {
bubbles: true,
cancelable: true,
view: window,
clientX: rect.left + Math.min(20, rect.width / 2),
clientY: rect.top + Math.min(12, rect.height / 2)
};
el.dispatchEvent(new PointerEvent('pointerover', opts));
el.dispatchEvent(new PointerEvent('pointerenter', opts));
el.dispatchEvent(new MouseEvent('mouseover', opts));
el.dispatchEvent(new MouseEvent('mouseenter', opts));
el.dispatchEvent(new MouseEvent('mousemove', opts));
}
function findChatScrollContainer() {
const all = deepQueryAll(document, '*');
let best = null;
let bestScore = 0;
for (const el of all) {
if (el.closest('#rcc-panel')) continue;
const style = getComputedStyle(el);
if (!/(auto|scroll)/.test(style.overflowY)) continue;
const rect = el.getBoundingClientRect();
if (rect.width < 260 || rect.height < 200 || rect.left < 180) continue;
const score = el.scrollHeight * rect.width;
if (el.scrollHeight > el.clientHeight + 40 && score > bestScore) {
best = el;
bestScore = score;
}
}
return best;
}
function findSidebarScrollContainer() {
const firstRoom = document.querySelector('a[href*="/chat/room/"]');
let p = firstRoom?.parentElement;
while (p && p !== document.body) {
const style = getComputedStyle(p);
if (/(auto|scroll)/.test(style.overflowY) && p.scrollHeight >= p.clientHeight) {
return p;
}
p = p.parentElement;
}
return null;
}
function extractCleanMessageText(row, filterUser) {
const rawLines = (row.innerText || '')
.split('\n')
.map((s) => s.trim())
.filter(Boolean)
.filter((s) => {
if (filterUser && s.toLowerCase() === filterUser.toLowerCase()) return false;
if (/^\d{1,2}:\d{2}\s*(AM|PM)?$/i.test(s)) return false;
if (/^(Message deleted|Delete|Reply|React|Copy link|Report)$/i.test(s)) return false;
return true;
});
if (rawLines.length > 0) return rawLines.join(' ').slice(0, 80);
if (row.querySelector('img, video, svg')) return '[Attachment / Media]';
return '[Message]';
}
function getMessageRows(mode, targetUser) {
const candidates = deepQueryAll(document, '[data-testid*="message"], [role="listitem"], article, div')
.filter((el) => {
if (el.closest('#rcc-panel')) return false;
if (!isVisible(el)) return false;
const rect = el.getBoundingClientRect();
if (rect.left < 220 || rect.height < 18 || rect.height > 420) return false;
const txt = (el.innerText || '').trim();
if (!txt || /^Message deleted$/i.test(txt)) return false;
if (mode === 'mine' && targetUser && !txt.includes(targetUser)) return false;
return /\b\d{1,2}:\d{2}\s*(AM|PM)\b/i.test(txt) || Boolean(el.querySelector('a[href*="/user/"]'));
});
return candidates.filter(
(el) => !candidates.some((other) => other !== el && el.contains(other))
);
}
function findActionButtonNearRow(row) {
const searchRoots = [row, row.parentElement].filter(Boolean);
for (const root of searchRoots) {
const btns = deepQueryAll(root, 'button, [role="button"]').filter((b) => {
if (b.closest('#rcc-panel') || !isVisible(b)) return false;
const label = `${b.getAttribute('aria-label') || ''} ${b.title || ''} ${b.innerText || ''}`.trim();
if (/report/i.test(label)) return false;
return /(delete|more|options|menu|actions|⋮|\.\.\.)/i.test(label) || b.querySelector('svg');
});
const directDelete = btns.find((b) =>
/delete/i.test(`${b.getAttribute('aria-label') || ''} ${b.title || ''} ${b.innerText || ''}`)
);
if (directDelete) return { btn: directDelete, isDirectDelete: true };
const menuBtn = btns[btns.length - 1];
if (menuBtn) return { btn: menuBtn, isDirectDelete: false };
}
return null;
}
function findMenuItemByRegex(regex) {
const items = deepQueryAll(document, '[role="menuitem"], button, [role="button"]').filter((el) => {
if (el.closest('#rcc-panel') || !isVisible(el)) return false;
const txt = `${el.innerText || ''} ${el.getAttribute('aria-label') || ''}`.trim();
if (/report/i.test(txt)) return false;
return regex.test(txt);
});
return items[0] || null;
}
async function confirmDialogIfPresent(regex, pace) {
for (let i = 0; i < 6; i++) {
const confirmBtn = deepQueryAll(document, 'button, [role="button"]').find((b) => {
if (b.closest('#rcc-panel') || !isVisible(b)) return false;
return regex.test((b.innerText || '').trim());
});
if (confirmBtn) {
confirmBtn.click();
await sleep(pace.modal);
return true;
}
await sleep(120);
}
return false;
}
function dismissStrayModalIfAny() {
const cancelBtn = deepQueryAll(document, 'button, [role="button"]').find((b) => {
if (b.closest('#rcc-panel') || !isVisible(b)) return false;
return /^Cancel$/i.test((b.innerText || '').trim());
});
if (cancelBtn) cancelBtn.click();
}
async function hideCurrentChat(pace) {
const headerBtns = deepQueryAll(document, 'button, [role="button"]').filter((b) => {
if (b.closest('#rcc-panel') || !isVisible(b)) return false;
const rect = b.getBoundingClientRect();
if (rect.left < 240 || rect.top > 130) return false;
const label = `${b.getAttribute('aria-label') || ''} ${b.title || ''} ${b.innerText || ''}`.trim();
return /(settings|options|more|menu|info|details|⋮|\.\.\.)/i.test(label) || b.querySelector('svg');
});
for (const btn of headerBtns.reverse()) {
btn.click();
await sleep(pace.hover);
const hideItem = findMenuItemByRegex(/^hide(\s+chat)?$/i);
if (hideItem) {
hideItem.click();
await sleep(pace.hover);
await confirmDialogIfPresent(/^(Yes,\s*Hide|Hide(\s+chat)?)$/i, pace);
return true;
}
}
return false;
}
async function cleanCurrentChat(chatTitle, mode, targetUser, doneCount, totalCount) {
const pace = getPace();
const failedRows = new WeakMap();
let deletedInChat = 0;
if (document.getElementById('rcc-autoscroll')?.checked) {
const scroller = findChatScrollContainer();
if (scroller) {
let prevTop = -1;
for (let s = 0; s < 12 && !stopRequested; s++) {
await waitWhilePaused();
if (scroller.scrollTop === 0 || scroller.scrollTop === prevTop) break;
prevTop = scroller.scrollTop;
scroller.scrollTop = 0;
await sleep(pace.scroll);
}
}
}
let idlePasses = 0;
while (!stopRequested && idlePasses < 2) {
await waitWhilePaused();
dismissStrayModalIfAny();
const rows = getMessageRows(mode, targetUser).filter
r/userscripts • u/Sylph_uscm • 5d ago
r/userscripts • u/trmdi • 6d ago
When you scroll far down the Reddit homepage on mobile, it's hard to access the header bar without scrolling all the way back up. This script fixes it.
It can be used on Vivaldi on Android with Tampermonkey. Click the Raw button to install.
r/userscripts • u/Dash_Shetty • 6d ago
Hey everyone! I've been working on a userscript to improve Pinterest's native dark mode and make it much more customizable.
What it does:
Ctrl + Shift + D anywhere to quickly switch between light and dark mode.Install / Source:
It works with Tampermonkey, Violentmonkey, and other standard userscript managers. Feedback and feature requests are always welcome!
r/userscripts • u/emirdev_mo • 7d ago
EU shops that announce a price cut have to compare it with their lowest price of the last 30 days (the Omnibus rule). In practice the crossed-out price is often a "regular" or RRP price that was never charged recently, so a -50% badge can mean almost nothing.
I wrote truediscount to check that on the product page. It works as a userscript in Tampermonkey or Violentmonkey: it reads the shop's own "lowest price in the last 30 days" label where there is one (German, French, Italian, Spanish, Dutch, Polish and more), keeps a small price history per product in the script storage, and puts a badge next to the price: real discount, inflated discount, or cheaper recently.
It supports Amazon EU, Zalando, MediaMarkt, Lidl, Notino, About You, Coolblue and a few more. Nothing is sent anywhere, no account, no server. Free and open source (MIT).
Greasy Fork: https://greasyfork.org/en/scripts/602599
Source: https://github.com/emirmrkaljevic/truediscount
If a shop you use is missing or the badge is wrong, tell me and I will fix it before Black Friday.
r/userscripts • u/BootheGreat666 • 8d ago
I got tired of clicking a product on AliExpress and landing on a "Bundle deals / buy 3" page instead of the item itself, so I wrote a userscript that skips those pages.
What it does
/ssr/300000512/BundleDeals2?productIds=… and similar) are sent to the real /item/<id>.html page.Plain, unminified code, no external libraries. Two settings in the Tampermonkey/Violentmonkey menu.
Disclosure: I'm the author. By default, product pages are opened once through my AliExpress affiliate link (same price for you). It's declared as an antifeature on Greasy Fork, and you can switch it off from the menu; bundle skipping works the same either way.
On Chrome/Edge, Tampermonkey needs "Allow User Scripts" turned on (Manage extension), otherwise nothing runs.
Greasy Fork: https://greasyfork.org/en/scripts/606297-bundle-buster-skip-aliexpress-bundle-deals
Feedback welcome, especially bundle links it misses on your country's AliExpress site.
r/userscripts • u/KyleM203 • 8d ago

it used to be months, idk why sites are doing this now, youtube has done it too and ive need to install scrips to change it back, its quite infuriating, especially when i have a bug with one of my youtube scripts that makes 2 dots beside the date instead of 1, if anyone could help fix that too thatd be greatly appreciated
it was a script to get rid of the triangle, put the dot back, and put back the word views
r/userscripts • u/PhotographShort • 10d ago
I got tired of browsing older Reddit posts and opening videos/GIFs that no longer exist, so I put together a Tampermonkey userscript to hide those posts from feeds.
It currently:
- Hides links to discontinued hosts such as Gfycat and Vidme.
- Checks supported media URLs for HTTP 404/410 responses.
- Recognizes selected removed-media placeholders.
- Attempts to catch soft 404s, where a media link redirects to the
hosting site's homepage instead of showing the requested media.
- Includes a button to temporarily reveal filtered posts.
- Leaves individual comments pages untouched by default.
Supported checks cover selected URL formats from Streamable, RedGIFs, Imgur, Giphy, and Tenor.
Detection is best-effort. Homepage redirects caused by access restrictions can also be filtered—this intentionally favors removing media that is inaccessible through the script's checks.
Requests go directly to the hosting providers, which can see your IP address. No third-party checking service is used.
Install:
https://greasyfork.org/en/scripts/605953-reddit-hide-dead-video-links
Source / issues:
https://github.com/Camofl/reddit-hide-dead-video-links
MIT licensed. Tested in my own browsing so far; reports about missed links or incorrectly filtered posts would be useful.
r/userscripts • u/younglegends111 • 10d ago
i personally dont like seeing videos all day long. id rather a picture. reddit doesnt provide that. so i just made myself learn userscripts with safari til i got reddit to stop showing video posts completely. it's made my life easier. just wanted to tell people this hobby is very cool. what should i do for my 2nd userscript ever? probably such a noob question ha. if anyone want's this nice little script just ask me in comments. it will paste there ok? didnt wanna post in body. by the way i couldnt have done it without chatgpt's help. i asked it to hunt similar cases that were solved but it didnt find anything, just people who couldn't get it to work. true or false? idk but enjoying the new view.
r/userscripts • u/wardellcurry29 • 11d ago
Has anyone who wrote a userscript that has thousands of downloads have any advice for me on how to market my userscript? I've had two so far that have installations in the hundreds but was wondering how I can get more
r/userscripts • u/ComprehensiveAd3843 • 11d ago
r/userscripts • u/SummerIntrepid9063 • 12d ago
r/userscripts • u/willishvl • 12d ago
r/userscripts • u/Samiiiiiil • 12d ago
Userscript for new Reddit. It does two things:
Autoplay with sound: an IntersectionObserver plays the most visible video with sound and pauses/mutes the rest. RedGifs embeds are cross-origin iframes inside shadow DOM, so the script walks open shadow roots to find them, and a copy of the script runs inside the iframe and takes play/pause commands over postMessage.
Fullscreen mode: a button sends the current listing (subreddit, search or profile) to a static player on GitHub Pages, with auto-advance, wheel/arrow navigation and RedGifs in HD with sound. Falls back to the HTML feed when Reddit answers 403 on the .json listings.
No GM_ grants needed, nothing minified apart from hls.js, MIT. The fullscreen player is based on Reddirama by Zaaphod42.
Install (on Sleazy Fork because of the RedGifs part): https://sleazyfork.org/en/scripts/605163-glide-for-reddit Source: https://github.com/Bensindunk123/glide-for-reddit
Feedback welcome, especially from Firefox and Mac users. I've mostly tested Chromium on Windows.
r/userscripts • u/RobertWesner • 15d ago
After almost 3 years, it finally happened! Many things had to be implemented before this was even possible, I hope my hard work paid off.
Get it here: Userscript
Source: GitHub
r/userscripts • u/bigbear2sfc • 16d ago
Hi everyone! I made a userscript to make RedGif embeds on third-party pages less intrusive. The latest update offers two versions:
SKIP_SECONDS to adjust the arrow-key seek duration (default: 5 seconds).Both versions prevent autoplay until you choose to play, can disable looping, attempt to enable audio, block video links from navigating away, and let you click the video backdrop to play or pause. They support RedGif embed pages matching redgifs.com/ifr/*.
Please install only one version:
Tampermonkey or Greasemonkey is required. It’s open source under the MIT license. Feedback and suggestions are welcome!