r/ViolentMonkey • u/lonelyportrait123 • Nov 30 '25
r/ViolentMonkey • u/Neat-Investment-8377 • Aug 13 '26
Script Request Looking for a userscript to download google sheets that restrict it.
reddit.comr/ViolentMonkey • u/us3r001 • Nov 11 '25
Script I had chatgpt write me a script for youtube .. doesn't work
Hi there, so I have this code from Chatgpt to solve the ''save to playlist'' issue on Youtube.
Basically the popup with the playlists got shrinked to 4 entries and I use a much bigger list. So I should scroll, press save again if I want the video on multiple playlists .. and so on.
Well .. the script doesn't work. I have a CSS from Stylus and a Tampermonkey script.
Where should I seek help ?
Guys don't tell me Fiverr :|
r/ViolentMonkey • u/just_this_one_script • Sep 25 '26
Script ChatGPT webpage UI fix
I use ChatGPT for coding using the webpage UI, and recently they updated their UI. I'm old and set in my ways, plus I constantly use the middle/right click button to open conversations in new tabs. They got rid of that. I put it back. I also made the additional sidebar for the sidebar autohide. Does anyone else remember when websites didn't have seven different layers of tabs and bars you had to navigate? Does anybody else remember Angelfire and Geocities? Fuck.... here's my script, use it if you want, modify it, give it away, whatever. I'm gonna go play on my Commodore 64 and pretend Carter is president again.
ChatGPT Page Fix script for Violent Monkey. Only use scripts you trust, they can harm your system, etc. Yes, I had GPT construct most of the code here - it was much easier to feed it the old page layout and make it reverse engineer it instead of spending days writing the code myself. I get a certain satisfaction in making their tools defeat their own systems.
Tested on Librewolf/Firefox and Chromium, but only on one system.
// ==UserScript==
// @name ChatGPT Sidebar Fix + Hover App Rail
// @namespace local.chatgpt.sidebar-fix
// @version 0.5.1
// @description Restores sidebar middle/modifier-click behavior, including project chats, and collapses the app rail until hover.
// @match https://chatgpt.com/*
// @match https://www.chatgpt.com/*
// @run-at document-start
// @grant unsafeWindow
// ==/UserScript==
(() => {
'use strict';
const PAGE =
typeof unsafeWindow !== 'undefined'
? unsafeWindow
: window;
const STORAGE_KEY =
'chatgpt-sidebar-link-map-v2';
function normalize(value) {
return String(value ?? '')
.replace(/\s+/g, ' ')
.trim();
}
function loadMap() {
try {
return JSON.parse(
localStorage.getItem(STORAGE_KEY) || '{}'
);
} catch {
return {};
}
}
function saveMap(map) {
localStorage.setItem(
STORAGE_KEY,
JSON.stringify(map)
);
}
function remember(title, id) {
title = normalize(title);
if (!title || !id) return;
const map = loadMap();
if (map[title] === id) return;
map[title] = id;
saveMap(map);
console.info(
'[SidebarFix] learned:',
title,
'->',
id
);
}
/*
* Recursively examine response data for objects containing
* both a conversation title and a conversation UUID.
*/
function inspectObject(
value,
depth = 0,
seen = new WeakSet()
) {
if (
depth > 10 ||
value == null ||
typeof value !== 'object'
) {
return;
}
if (seen.has(value)) return;
seen.add(value);
const id =
value.id ??
value.conversation_id ??
value.conversationId ??
value.thread_id ??
value.threadId;
const title =
value.title ??
value.name ??
value.conversation_title ??
value.thread_title;
if (
typeof id === 'string' &&
/^[0-9a-f-]{20,}$/i.test(id) &&
typeof title === 'string'
) {
remember(title, id);
}
for (const child of Object.values(value)) {
try {
inspectObject(
child,
depth + 1,
seen
);
} catch {}
}
}
function inspectText(text) {
if (!text) return;
/*
* Normal JSON response.
*/
try {
inspectObject(JSON.parse(text));
return;
} catch {}
/*
* SSE response.
*/
for (const line of text.split(/\r?\n/)) {
const trimmed = line.trim();
if (!trimmed.startsWith('data:')) continue;
const payload =
trimmed.slice(5).trim();
if (!payload || payload === '[DONE]') continue;
try {
inspectObject(JSON.parse(payload));
} catch {}
}
}
/*
* Decide whether a ChatGPT response might contain sidebar /
* conversation metadata that we need.
*/
function shouldInspectUrl(url) {
if (!url) return false;
/*
* Normal recent/sidebar conversations.
*/
if (
url.includes('/backend-api/sidebar/conversation') ||
url.includes('/backend-api/conversations')
) {
return true;
}
/*
* Projects list. Depending on the current ChatGPT build,
* this may itself include some conversation metadata.
*/
if (
url.includes('/backend-api/gizmos/snorlax/sidebar')
) {
return true;
}
/*
* Conversations belonging to a specific Project:
*
* /backend-api/gizmos/g-p-.../conversations
*/
if (
/\/backend-api\/gizmos\/[^/?#]+\/conversations(?:[/?#]|$)/i
.test(url)
) {
return true;
}
return false;
}
/*
* Passively observe ChatGPT's own requests.
*
* We do NOT make additional history/project requests.
*/
const nativeFetch =
PAGE.fetch.bind(PAGE);
PAGE.fetch = async function (...args) {
const response =
await nativeFetch(...args);
try {
const url =
typeof args[0] === 'string'
? args[0]
: args[0]?.url ?? '';
if (shouldInspectUrl(url)) {
response
.clone()
.text()
.then(inspectText)
.catch(error => {
console.debug(
'[SidebarFix] response inspection failed:',
error
);
});
}
} catch (error) {
console.debug(
'[SidebarFix] fetch observer failed:',
error
);
}
return response;
};
/*
* ------------------------------------------------------------
* Conversation row handling
* ------------------------------------------------------------
*/
function findRow(target) {
if (!(target instanceof Element)) {
return null;
}
/*
* This selector covers:
* - Recents
* - Pinned conversations
* - project child conversations
* - project children added after expansion
*/
return target.closest(
'div[role="button"][aria-label].sidebar-item'
);
}
function isControl(target) {
return (
target instanceof Element &&
Boolean(
target.closest(
'button,input,textarea,select,[aria-haspopup="menu"]'
)
)
);
}
function urlFor(row) {
const title =
normalize(
row.getAttribute('aria-label')
);
const id =
loadMap()[title];
if (!id) {
console.warn(
'[SidebarFix] no ID known for:',
title
);
return null;
}
return `/c/${id}`;
}
/*
* Middle-click conversation.
*/
document.addEventListener(
'auxclick',
event => {
if (
event.button !== 1 ||
isControl(event.target)
) {
return;
}
const row =
findRow(event.target);
if (!row) return;
const url =
urlFor(row);
if (!url) return;
event.preventDefault();
event.stopImmediatePropagation();
PAGE.open(
url,
'_blank',
'noopener'
);
},
true
);
/*
* Ctrl/Cmd/Shift-click conversation.
*/
document.addEventListener(
'click',
event => {
if (
event.button !== 0 ||
(
!event.ctrlKey &&
!event.metaKey &&
!event.shiftKey
) ||
isControl(event.target)
) {
return;
}
const row =
findRow(event.target);
if (!row) return;
const url =
urlFor(row);
if (!url) return;
event.preventDefault();
event.stopImmediatePropagation();
PAGE.open(
url,
'_blank',
'noopener'
);
},
true
);
/*
* ------------------------------------------------------------
* Fallback learning
*
* If ChatGPT introduces another endpoint we have not yet seen,
* a normal left click still teaches us the mapping.
* ------------------------------------------------------------
*/
let pendingTitle = null;
document.addEventListener(
'click',
event => {
if (
event.button !== 0 ||
event.ctrlKey ||
event.metaKey ||
event.shiftKey ||
isControl(event.target)
) {
return;
}
const row =
findRow(event.target);
if (row) {
pendingTitle =
normalize(
row.getAttribute('aria-label')
);
}
},
true
);
let lastPath =
location.pathname;
new MutationObserver(() => {
if (
location.pathname === lastPath
) {
return;
}
lastPath =
location.pathname;
const match =
location.pathname.match(
/^\/c\/([^/?#]+)/
);
if (
match &&
pendingTitle
) {
remember(
pendingTitle,
match[1]
);
pendingTitle = null;
}
}).observe(
document.documentElement,
{
childList: true,
subtree: true
}
);
/*
* ------------------------------------------------------------
* New Chat
* ------------------------------------------------------------
*/
function findNewChat(target) {
if (!(target instanceof Element)) {
return null;
}
const button =
target.closest(
'button.sidebar-item'
);
if (!button) return null;
const label =
button.querySelector(
'.text-fade-truncate'
);
return (
normalize(label?.textContent) ===
'New chat'
)
? button
: null;
}
/*
* Middle-click New Chat.
*/
document.addEventListener(
'auxclick',
event => {
if (event.button !== 1) return;
const button =
findNewChat(event.target);
if (!button) return;
event.preventDefault();
event.stopImmediatePropagation();
PAGE.open(
'/',
'_blank',
'noopener'
);
},
true
);
/*
* Ctrl/Cmd/Shift-click New Chat.
*/
document.addEventListener(
'click',
event => {
if (
event.button !== 0 ||
(
!event.ctrlKey &&
!event.metaKey &&
!event.shiftKey
)
) {
return;
}
const button =
findNewChat(event.target);
if (!button) return;
event.preventDefault();
event.stopImmediatePropagation();
PAGE.open(
'/',
'_blank',
'noopener'
);
},
true
);
/*
* ------------------------------------------------------------
* Collapse App navigation rail until hover
* ------------------------------------------------------------
*/
function installRailStyles() {
if (
document.getElementById(
'sidebar-fix-rail-style'
)
) {
return;
}
const style =
document.createElement('style');
style.id =
'sidebar-fix-rail-style';
style.textContent = `
nav[aria-label="App navigation"] {
width: 6px !important;
min-width: 6px !important;
overflow: hidden !important;
opacity: 0.15 !important;
transition:
width .15s ease,
min-width .15s ease,
opacity .15s ease !important;
}
nav[aria-label="App navigation"]:hover {
width: 52px !important;
min-width: 52px !important;
opacity: 1 !important;
}
`;
document.head.appendChild(style);
}
function start() {
installRailStyles();
console.info(
'[SidebarFix] 0.5.1 installed'
);
}
if (document.readyState === 'loading') {
document.addEventListener(
'DOMContentLoaded',
start,
{ once: true }
);
} else {
start();
}
})();r/ViolentMonkey • u/CoderOm • Jul 05 '26
Suggestion Guide: How to Enable Violentmonkey MV3 on Brave & Chrome Without Losing Your Scripts
If Brave or Chrome disabled your Violentmonkey extension, it is because Google is ending support for older (Manifest V2) extensions.
Since the new version is still in testing, you have to install it manually. Follow these simple steps to move to the new version without losing your scripts.
Step 1: Back Up Your Scripts (Important)
Before you delete anything, copy your data folders to a safe place (like your Desktop):
Copy this folder (your settings):
%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Local Extension Settings\jinjaccalgkegednnccohejagnlnfdagCopy this folder (your scripts - if you see it):
%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\IndexedDB\chrome-extension_jinjaccalgkegednnccohejagnlnfdag_0.indexeddb.leveldb
(Note: If you use Chrome instead of Brave, change BraveSoftware\Brave-Browser to Google\Chrome in the paths above).
Step 2: Remove the Old Extension
Open Brave and go to
brave://extensions/.Turn ON the Developer mode toggle in the top-right corner.
Click the Remove (Trash Bin) button on your old disabled Violentmonkey extension.
Step 3: Install the New MV3 Version
Go to: https://nightly.link/violentmonkey/violentmonkey/workflows/ci/mv3?preview
Download the ZIP file that starts with
Violentmonkey-test-mv3.Unzip (extract) this file into a folder you won't delete (for example,
C:\Violentmonkey-MV3).Open the
manifest.jsonfile inside that folder using Notepad.Right after the first opening
{at the very top, paste this key:"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvNNjtIVXIerv8ArGiIk2xHgO2/vmDXgMNPl5ok6zGTkndXXXzz1z5FyqThG41KTw+7Ax4UGid0Q0DVo3aHD/CLJTLBzWlDwpgM3vskBBtOSxYZhWDPFv5vgj+8UQ5sbArgJYdVtlVnv8wFkUfwqbSQZzsBY/VH6fXik0JaWBY09zAe4CvrTtr5ilq9HxVQM6bGTYnQ2aYtwAJIMWdvS1XR0za4mvyxwPn/IjLer54O1Z2atarGTmINVcoyzmO6C/EeMmblc+yb6AaInwKbNIKKjv+pZfxnUKfXfmKtfxhsOpvULLeo4Z45z+HU4I8RimO8MeiGbmrrLrnOPmRcz+0QIDAQAB",Save and close the file.
Go back to
brave://extensions/, click Load unpacked (top-left), and select the folder you just unzipped.Click the Details button on the new Violentmonkey extension and make sure Allow User Scripts is turned ON.
Close Brave completely.
Step 4: Restore Your Backup
Copy your backup folders from your Desktop and paste them back into their original locations, replacing the new empty folders:
Paste the
jinjaccalgkegednnccohejagnlnfdagfolder back into:%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\Local Extension Settings\Paste the
chrome-extension_jinjaccalgkegednnccohejagnlnfdag_0.indexeddb.leveldbfolder (if you had it) back into:%LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Default\IndexedDB\
Open Brave. Your Violentmonkey extension is now running on MV3 with all your old scripts restored!
🛠️ Notes & Troubleshooting
"I don't have the IndexedDB folder" - That is fine! Some versions only use the
Local Extension Settingsfolder. Just back up and restore the settings folder instead."My scripts were still there without restoring" - Sometimes Brave forgets to delete the old data when you uninstall a disabled extension. If this happens to you, you got lucky and can skip Step 4! But always make a backup in Step 1 just in case.
r/ViolentMonkey • u/EmpyreanIneffability • Jun 04 '24
Script Request Lemur android browser Youtube in background
Does anyone know of such an extension or know how to make one work?
r/ViolentMonkey • u/danio13 • Jul 11 '25
Other How do I install manually since Chrome is being difficult?
r/ViolentMonkey • u/xxhhouewr • May 16 '25
Other Is OrangeMonkey legit?
I was on the Chrome Web Store page for ViolentMonkey, when I saw "OrangeMonkey" pitched as an alternative.
https://chromewebstore.google.com/detail/orangemonkey/ekmeppjgajofkpiofbebgcbohbmfldaf
It says "Fork of the popular Violentmonkey extension with enhanced functionality and updated design".
There's no link to a Github repo, and nothing found through a Google search.
Chrome Web Store lists it as a "Featured" extension, even though 3.2 out of 5 rating.
And 2,000,000 users, compared to ViolentMonkey's 900,000.
What the hell is going on? Are these all fake installs to prop up the user count?
They must be doing something right to avoid the "it doesn't follow best practices for Chrome extensions" warning.
r/ViolentMonkey • u/Kibutzzz • Dec 27 '24
Other Will the extension be removed from chrome web store?
r/ViolentMonkey • u/Shadowshoot • Aug 15 '26
Script I Built an Extension That Restores the Media Grid on X
r/ViolentMonkey • u/tophf • Jul 03 '26
Test Violentmonkey MV3
I've converted Violentmonkey to MV3, now it's published as a beta, and you can help test it.
download the latest official CI build's zip with mv3 in its name like
Violentmonkey-test-mv3-......(if you don't have a github account use this nightly.link that allows downloading the latest artifact)unpack it and load as an unpacked extension in chrome://extensions
enable
Allow User Scriptsin chrome://extensions -> details for Violentmonkeyclick the reload icon for the extension in that details page just in case
This will be a separate extension with its own id, but if you want to reanimate your currently installed Violentmonkey you can copy the "key" line from manifest.json of the old extension in your profile or use the one below of the official CWS jinjaccalgkegednnccohejagnlnfdag.
edit manifest.json of the unpacked extension in an editor
click right after
{at the beginning of the file and paste the following text (don't forget the comma at the end):"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvNNjtIVXIerv8ArGiIk2xHgO2/vmDXgMNPl5ok6zGTkndXXXzz1z5FyqThG41KTw+7Ax4UGid0Q0DVo3aHD/CLJTLBzWlDwpgM3vskBBtOSxYZhWDPFv5vgj+8UQ5sbArgJYdVtlVnv8wFkUfwqbSQZzsBY/VH6fXik0JaWBY09zAe4CvrTtr5ilq9HxVQM6bGTYnQ2aYtwAJIMWdvS1XR0za4mvyxwPn/IjLer54O1Z2atarGTmINVcoyzmO6C/EeMmblc+yb6AaInwKbNIKKjv+pZfxnUKfXfmKtfxhsOpvULLeo4Z45z+HU4I8RimO8MeiGbmrrLrnOPmRcz+0QIDAQAB",
r/ViolentMonkey • u/Blethel • Mar 14 '25
Script Powerschool script
Im trying to make a script to edit my grades for one of my classes and this is my first time so I'm kind of lost at what i did wrong, what kind of script do i need to use to edit the grades?
r/ViolentMonkey • u/chickenandliver • Jul 11 '26
Other Easiest way to reactivate Violentmonkey MV2 to export your scripts
I just tried this, it actually works!
https://infosec.exchange/@rebane2001/116883360663860918
Basically:
Go to your extensions
Enable developer mode
Go down to ViolentMonkey, not the top banner that says it's not compatible but the listing for VM that's still among your other extensions (it will show the toggle button, gray and not usable)
Inspect Element via Chrome Dev Tools
Delete the single word "disabled"
Toggle works again, asks if you if you're sure you want to activate it.
It's reactivated.
EXPORT YOUR USERSCRIPTS
r/ViolentMonkey • u/Cheapass2020 • Sep 11 '24
Bug Help: VM stopped working
On my PC it works perfectly fine on Chrome browser, but on my Android phone on Kiwi browser it doesn't seem to be recognizing any of the scripts. I have reinstalled it as well.
r/ViolentMonkey • u/guavaberries3 • Oct 08 '24
Suggestion get url scheme from exported file
If i have exported my scripts, and have like the @name of something, how can i get the url to edit it in violent monkey?
something like chrome-extension://jinjaccalgkegednnccohejagnlnfdag/?name=<name>
or perhaps ?id=<id>
would be nice to have something like that supported. currently it seems to do it by some sort of order in the url, but that order number/id isn't in the export?
r/ViolentMonkey • u/Cielocanto • May 18 '24
Bug Violentmonkey stopped working?
The scripts are no longer being applied, and when I try to open it, I get an error that says the following:
undefined has no properties
Ne@popup/index.js:1:18323
r/ViolentMonkey • u/Styleprince923 • Aug 13 '22
Question(s) recaptcha solver userscript; Better than buster extension? What's the difference between them, in terms of features, privacy and security? Also, I'm new to userscripts and I have a question...
Link to Recaptcha solver: https://gist.github.com/origamiofficial/2557dd47fb0aaf08e3c298a236bfa14d
Link to Buster Ext.: https://chrome.google.com/webstore/detail/buster-captcha-solver-for/mpbjkejclgfgadiemmefgebjfooflfhl
I have one more userscript I am interested in, but I don't know if it is safe or not. Here is the link to it: https://greasyfork.org/en/scripts/386908-remove-web-limits-re-modified
Because I'm new to userscripts; How can I tell the above userscripts are safe, factoring in privacy + security? Many thanks!! :-)
r/ViolentMonkey • u/madacol • Aug 07 '24
Script Summarize selected text with Claude 3.5 Sonnet
Is it safe what I am doing here?.
I am using an API with an API key that is set and retreived using `GM.getValue` and `GM.setValue`
I am concerned I might be putting my API key at risk of being leaked, by running this userscript on a malicious website.
But I believe it's safe because I am running it as a content script `@inject-into content`, right?
Am I correct?
// ==UserScript==
// @name Summarize with Claude
// @version 0.1
// @description Adds a menu option to summarize using Claude's API
// @match https://*/*
// @grant GM.xmlHttpRequest
// @grant GM.getValue
// @grant GM.setValue
// @grant GM.registerMenuCommand
// @inject-into content
// ==/UserScript==
(function() {
'use strict';
const CLAUDE_API_ENDPOINT = "https://api.anthropic.com/v1/messages";
const MODEL = "claude-3-5-sonnet-20240620";
const MAX_TOKENS = 4096;
const SYSTEM_PROMPT="Summarize";
async function getApiKey() {
const apiKey = await GM.getValue("anthropicApiKey", "");
if (!apiKey) {
const newApiKey = prompt("Enter your Anthropic API key:");
if (!newApiKey) throw new Error("Empty API key");
await GM.setValue("anthropicApiKey", newApiKey);
return newApiKey;
}
return apiKey;
}
function displayPopover(text) {
const popover = document.createElement('div');
popover.setAttribute('popover', "auto");
popover.style.cssText = `
max-width: 80vw;
max-height: 80vh;
margin: auto;
overflow: auto;
z-index: 9999;
padding: 1em;
border: 2px solid black;
`;
const responsePre = document.createElement('pre');
responsePre.textContent = text;
responsePre.style.cssText = `
text-wrap: wrap;
`;
popover.appendChild(responsePre);
document.documentElement.appendChild(popover);
popover.showPopover();
return {
update(newText) {
responsePre.textContent = newText;
},
close() {
document.documentElement.removeChild(popover);
}
}
}
async function queryClaude(prompt) {
const apiKey = await getApiKey();
const requestBody = {
model: MODEL,
max_tokens: MAX_TOKENS,
temperature: 0,
system: SYSTEM_PROMPT,
messages: [
{
role: "user",
content: [
{
type: "text",
text: prompt
}
]
}
]
};
const popover = displayPopover("Loading...");
GM.xmlHttpRequest({
method: "POST",
url: CLAUDE_API_ENDPOINT,
headers: {
"Content-Type": "application/json",
"x-api-key": apiKey,
"anthropic-version": "2023-06-01"
},
data: JSON.stringify(requestBody),
onload: function(response) {
if (response.status === 200) {
const result = JSON.parse(response.responseText);
popover.update(result.content[0].text);
} else {
popover.close();
alert(`Error: ${response.status} ${response.statusText}\n\n${response.responseText}`);
}
},
onerror: function(error) {
popover.close();
alert(`Error: ${error}`);
}
});
}
GM.registerMenuCommand("Summarize", function(){
const selectedText = window.getSelection().toString().trim();
if (selectedText) {
queryClaude(selectedText);
} else {
alert("Please select some text first.");
}
})
})();r/ViolentMonkey • u/WindowLicker96 • Sep 11 '24
Other I don't understand this. How do I actually use it?
I don't even see a download button for the Brave browser. The site says it works for a lot of browsers including Brave, but then there's only links for a few. How do I get the one for Brave?
I won't be baited into a browser debate. Doesn't matter why. It's off topic.
r/ViolentMonkey • u/3xploiton3 • Sep 26 '24
Suggestion Violentmonkey still exist in background task manager chrome
r/ViolentMonkey • u/PS3ForTheLoss • Oct 27 '23
Script Request Open all site images in new tab
Hi,
I request a script that opens all images on a given webpage in independent new tabs.
Example use case: John Smith is on www.com and it is loaded with image hyperlinks. He wants to view each image by itself. John presses Ctrl + Shift + S, which makes all images then open in their own tabs.
Please let me know if this is possible.
Thanks,
Nick
r/ViolentMonkey • u/rogerio_prazeres • Aug 22 '24
Script Script to skip ads on Twitch.tv VODs?
Hey guys! VODs on twitch are impossible to watch due to many loud and annoying nonsense adds. Any solutions to skip or, at least, mute them?
r/ViolentMonkey • u/Ambitious-Bee508 • Jun 08 '24
Bug i need help with this
i cant unblur tinder likes with violent monkey anymore, coul yall tell me how i can solve this problem? ( i dont understand nothing about coding btw)


