Skip to main content

Questions tagged [tampermonkey]

Tampermonkey is a userscript manager for Google Chrome, Microsoft Edge, Safari, Firefox, Opera, Dolphin Browser, and UC Browser. Tampermonkey scripts are privileged JavaScript code snippets, with access to a custom API that allows you to customize the way web pages look and act.

tampermonkey
1 vote
1 answer
31 views

Edit the behavior of a button using Tampermonkey

document.addEventListener('DOMContentLoaded', () => { document.querySelector('#spectate').accesskey = 'k'; }); <button class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-...
Nottigham's user avatar
-2 votes
0 answers
65 views

how to click a button without being redirected? [closed]

It should be noted that I am a newbie to all this, but when I try to run a script with Tampermonkey or even from a console in which I click on a button with id="play" on a page, the page ...
Nottigham's user avatar
-1 votes
0 answers
32 views

TamperMonkey script to add products to cart

I am trying to create a Tampermonkey script so that when I go to a product page the item is immediately added to the basket but I cannot do it. // ==UserScript== // @name Ajout automatique au ...
Ilysia's user avatar
  • 1
1 vote
1 answer
52 views

Creating a custom shortcut for Google Docs (Alt + P download as pdf)

I wrote the following script to download as PDF a Google Docs file; when I click Alt + P nothing happens. I'm using Google Chrome. // ==UserScript== // @name Google Docs PDF Download Shortcut /...
Federica Guidotti's user avatar
0 votes
1 answer
66 views

How to insert text into a Discord search bar using JavaScript?

I'm trying to create a tampermonkey script that will simply take a predefined string and put it in discord search bar then triggers a search, the text gets inserted in the search bar but it's not ...
QuantumPulse87's user avatar
0 votes
0 answers
51 views

Tampermonkey paste from clipboard

I'm trying to automate a task in a weird internal web application. It's http not (s) and clipboard API is not supported, document.execcommand('paste') is also not working. For now I'm using listener ...
Danchev's user avatar
0 votes
1 answer
31 views

Greasemonkey: Listening on if table gets "refreshed"

I am working on a Tampermonkey/Greasemonkey script that adds a new column to a table on this page https://www.fangraphs.com/leaders/major-league. I have a working version that adds the column and it ...
Isaac Levin's user avatar
  • 2,879
0 votes
2 answers
36 views

Automation of joining groups in telegram channels giving FCFS links

This is my VioletMonkey script the problem I am facing is that it clicks invite link but after that nothing happens not logging in console like after inviteLink.click() the console.log('Proceeding ...
Lucky Rajput's user avatar
1 vote
1 answer
32 views

UserScript Update Link According to Original Link

What I want is when I visit a specific website that all urls on the PAGE that match (example.com/view=list or example.com/view=card or example.com/view=posts etc..) are changed to: example.com/view=(...
p1r4t3rs's user avatar
0 votes
0 answers
41 views

Submit form with javascript using Tampermonkey

Hi guys how do I make a script to use with tampermonkey that submits a google login? I googled and got lots of answers but I don't know how to make the script work. <script> document....
user avatar
0 votes
1 answer
31 views

Check img filetype in Tampermonkey

I wanna check if certain images are gifs. However, the image URL used in the src of the img tag don't have the file ending in the URL. Thus it's not possible to know if the image is a gif by the ...
alex's user avatar
  • 621
1 vote
1 answer
102 views

Trying to hide an element using TamperMonkey userscript

Objective I am trying to hide an element using Temper Monkey user script The testing webpage is https://www.dmla5.com/play/8733-1-5.html. After clicking the pink button, a video will be loaded. My ...
Electron X's user avatar
1 vote
2 answers
78 views

How to focus YouTube search suggestions items?

I currently have this code. This opens the YT search in a new tab when you click the middle-mouse button: (function() { 'use strict'; var searchIcon = document.getElementById("search-...
Julius Esen's user avatar
1 vote
1 answer
112 views

How to do a javascript fetch without being blocked by CORS policy? [duplicate]

I tried to run this javascript code on a Tampermonkey userscript on many webpages but they all gave the same problem: (I modified some details) var data="744483"; var url="https://...
Ryan Newman's user avatar
0 votes
0 answers
23 views

Trying to write a userscript which redirects from a website which shows ERR_CONNECTION_REFUSED

I'm trying to have a script which redirects me from old burningseries domains to the newest ones, so I don't have to change all my bookmarks in chrome. I tried the following code, which worked when ...
Moorex's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
119