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.

КОМЕНТАРІ • 33

  • @mrjekarpa
    @mrjekarpa 2 роки тому +5

    Thanks man - exactly what I needed!

    • @kajstanski7633
      @kajstanski7633  2 роки тому +3

      Glad to hear it! Let me know if you need any other topic covered. I'm happy to make another video on it.

  • @heyiamuday
    @heyiamuday 10 місяців тому +1

    Your explaination is very good & clear
    nice script experiment

  • @mr_mackey_mvoyez7524
    @mr_mackey_mvoyez7524 11 місяців тому

    loved this video man, too bad you stopped posting, would watch more

  • @guillermocortes7135
    @guillermocortes7135 2 роки тому +5

    can you publish the source code?

  • @bennguyen1313
    @bennguyen1313 12 днів тому

    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?

  • @rossli8621
    @rossli8621 9 місяців тому

    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.

    • @RT-.
      @RT-. 9 місяців тому

      `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

  • @user-jv2kq2xd5r
    @user-jv2kq2xd5r Рік тому

    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.

  • @luisbarbosa5597
    @luisbarbosa5597 Рік тому

    very nice, thanks bruh!

  • @Immortal-pu8gr
    @Immortal-pu8gr Рік тому

    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.

  • @KrevetkaOo
    @KrevetkaOo 2 роки тому

    does this script still work for you? could you share?

  • @rascool5554
    @rascool5554 Рік тому

    awesome , ty

  • @rachidahireche4165
    @rachidahireche4165 11 місяців тому

    How we can contact you? Pls need help

  • @victorzuniga8894
    @victorzuniga8894 Рік тому +3

    This script is not working anymore

  • @MZ-yx8eg
    @MZ-yx8eg Рік тому

    Nice:)

  • @Mastertradebro07
    @Mastertradebro07 2 місяці тому

    Brother i want to talk to you 1v1 how can. I talk ?

  • @siouaneislem1232
    @siouaneislem1232 2 роки тому +2

    I wish you keep making userscript videos. and tutorials , and explaine alot more if you can.

  • @mohammedalhamadi5143
    @mohammedalhamadi5143 Рік тому

    Thank you. This is very useful. Is there a way I can support you?

  • @dominikgameplaytv5903
    @dominikgameplaytv5903 2 роки тому

    Record how to add Tampermonkey Filmot title Restorer script from Restore and Movie and Channel and Playlist

  • @tonypetruzzi9266
    @tonypetruzzi9266 2 роки тому +1

    instead of the hack... you could have just converted the string to a json object.

    • @kajstanski7633
      @kajstanski7633  2 роки тому +1

      Very good point! Parsing the json makes the code cleaner, but in this case it makes it terribly slow too.

  • @user-gv1xu6hu5p
    @user-gv1xu6hu5p 6 місяців тому

    thank you for sharing the information 🙂🙂how can i create a website script on site ; tls contact fr ??

  • @mckboard9827
    @mckboard9827 2 роки тому

    Is there a method I could contact you. Would be willing to compensate, looking for some help on a project. TY!!

    • @kajstanski7633
      @kajstanski7633  2 роки тому

      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.

  • @shine-jf9lg
    @shine-jf9lg Рік тому

    Blud i need hacks

  • @xd-dy2rf
    @xd-dy2rf 3 роки тому

    lol :/

  • @TheBaltLT
    @TheBaltLT 2 роки тому +1

    who makes tutorials with distracting talking head? how does this add value to tutorial where focus is of essence??

    • @greenwiener
      @greenwiener 2 роки тому +2

      Like most people on youtube do?

    • @FRAN-vd9rl
      @FRAN-vd9rl Рік тому +2

      how does your comment actually add value to this section by talking such nonsense and trivial aspect instead of focusing in the code?