TamperMonkey Tutorial | Add Custom JavaScript to
Вставка
- Опубліковано 12 вер 2024
- / @kajstanski7633
How to change a website with your own code? A beginners lesson about practical Greasemonkey scripts.
In this tutorial, I will show you how to inspect the UA-cam source code to alter it with JavaScript code injected using a Tampermonkey app / plugin / add-on. This method works on both Firefox and Chrome. You can learn from it as a follow along tutorial to then implement your own scripts altering the webpages of your choice. Such Tampermonkey scripts are useful for displaying additional data / information or for autocompletion of forms to speed up your workflows.
Thanks man - exactly what I needed!
Glad to hear it! Let me know if you need any other topic covered. I'm happy to make another video on it.
Your explaination is very good & clear
nice script experiment
loved this video man, too bad you stopped posting, would watch more
can you publish the source code?
Once a server sends the javascript page to your browser.. how can you call functions listed on the page's source code?
For example, some training sites have custom video players that don't allow a user to click a faster playback, yet the source shows a function that can change the speed!
I tried opening a developer's console, and calling it that way, but it didn't work. Maybe there's some serverside interaction that is needed... but is it possible tampermonkey / greasyfork could be used to try calling these functions?
Just what I was looking for. But a small suggestion: maybe you should try to replace all `var` with `let`. For example, I think in the `run` function, if you just use `var`, console may tell you that `videos` is not defined.
`let` has a smaller definition scope than `var`. For example, run this:
console.log(abc); { var abc = 123 }; console.log(abc)
`abc` will print, even though it was defined in a scope that was closed! This applies only in the context of a function, though.
This weird behavior was why let was created - look more into it
Hello, I need to customize a script that works with the TamperMonkey plugin. The script has the function of clicking on a calendar and going directly to the end of the month.
very nice, thanks bruh!
Hi anyway to auto comment on youtube live video, so far I have made the input and automated to click the submit button, but the comment is not being posted.
does this script still work for you? could you share?
awesome , ty
How we can contact you? Pls need help
This script is not working anymore
Nice:)
Brother i want to talk to you 1v1 how can. I talk ?
I wish you keep making userscript videos. and tutorials , and explaine alot more if you can.
Thank you. This is very useful. Is there a way I can support you?
Record how to add Tampermonkey Filmot title Restorer script from Restore and Movie and Channel and Playlist
instead of the hack... you could have just converted the string to a json object.
Very good point! Parsing the json makes the code cleaner, but in this case it makes it terribly slow too.
thank you for sharing the information 🙂🙂how can i create a website script on site ; tls contact fr ??
Can you share more background?
Is there a method I could contact you. Would be willing to compensate, looking for some help on a project. TY!!
Hey, I'm quite short on time lately, but perhaps I can give you some pointers. You can email me, the email address is in the about section on my channel.
Blud i need hacks
lol :/
who makes tutorials with distracting talking head? how does this add value to tutorial where focus is of essence??
Like most people on youtube do?
how does your comment actually add value to this section by talking such nonsense and trivial aspect instead of focusing in the code?