Fix your life with Greasemonkey Scripts

Поділитися
Вставка

КОМЕНТАРІ • 35

  • @PlayWithNiz
    @PlayWithNiz Рік тому +11

    A super practical example that may be of use to everyone here...
    When the PS5 was first released (this may even be relevant today because they're still like gold dust, right?) I wrote a script for a few different websites that refreshed the page every couple of seconds, checked if it was available to buy / in stock, and if it was, I added it to the basket and and alerted myself with a browser alert and changing the colour of the screen to bright green so it caught my eye, meaning I could check out immediately! Not only did I get myself a PS5 day 1, but I was also able to purchase 2 more from other retailers for my friends who were struggling!

  • @MaxProgramming
    @MaxProgramming Рік тому +9

    Little tip from my side
    At 2:33 instead of selecting all instances of the function to rename, you can select one, press F2, and just change the name 🙂

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

      Hah I use that a lot but not sure why I didn’t do it here

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

    thank you for sharing your knowledge. quick questions: at 4.42 how can you pass 'interval' to the 'clearInterval' function if 'interval' variable is not even defined at that point and shouldn't be accessible?

  • @ste-fa-no
    @ste-fa-no Рік тому +6

    I have a few scripts that I use, but I save them as bookmarks and access them with a search shortcut.
    For example, if I type "pip", the current playing video will pop as "Picture in Picture" or back to its place, even when there's no way to access the video directly with the context menu. 🤓

    • @elmotareal
      @elmotareal Рік тому +1

      yeah but who has the time to type pip 8 times 🤣

  • @serviciotecnico4455
    @serviciotecnico4455 Рік тому +7

    won't trolls with usernames that include Scott Tolinski be able to get in?

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

      Yes - I’ll deal with that if and when 😆

  • @tobias-edwards
    @tobias-edwards Рік тому +3

    Great video, I might have to make a script to automatically like the video if the channel is Wes Bos

  • @namboozleUK
    @namboozleUK Рік тому +1

    In this context is there any benefit/negative to using a spread instead of Array.from for turning the button nodelist into an array?

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

      The only difference is that the spread looks cooler

  • @Thorax232
    @Thorax232 Рік тому +1

    How to become a Syntax guest. Step 1: Name yourself Scott Tolinski 2.

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

    OMG! Now I can effortlessly redirect from that awful desktop wikipedia to the beautiful mobile wikipedia. Thanks a lot!

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

    Just a shame the extensions have been so gimped with the lack of filesystem support, and the majority of sites use some kind of hydration that breaks any changes and listeners

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

      Yeah you really need to just run intervals because everything is SPA.

  • @planetmall2
    @planetmall2 Рік тому +2

    Awesome just built my first script because of this video! Thank you!

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

      Nice work! What does it do?

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

    Sorry to burst your bubble, but you don't have to jump through the "let scott in" hoop! I use Riverside for my podcast too and we don't have this problem. Click the gear/cog icon in the top right of the "recording overview" pod, go to the "general" tab (left side), and then turn off "Require guests to wait in lobby". You're welcome. ;)

    • @WesBos
      @WesBos  Рік тому +11

      I know about this, but I want guests to wait in the lobby. I don’t want Scott - my co-host - to wait in the lobby

    • @stephenmontague6930
      @stephenmontague6930 4 місяці тому

      Sorry to burst your bubble bursting, but... : )

  • @expakun
    @expakun 17 днів тому

    For some reason, Greasemonkey does not work for me of Firefox 126.0.1 of Windows 11 but Tampermonkey does

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

    you didn't define interval, mine says define interval

  • @Antimated
    @Antimated Рік тому +1

    Is this something along the lines of tampermonkey?

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

      Yep! I’m using that in the video 😃

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

      @@WesBos oh shit sorry, I saw greasemonkey and went to the comments instantly 😅

  • @boopfer387
    @boopfer387 Місяць тому

    beautiful

  • @david14exe
    @david14exe 7 місяців тому

    Can you get banned if you use this?

    • @stephenmontague6930
      @stephenmontague6930 4 місяці тому

      Hey, in general, no, since you're NOT changing the website, you're changing how it runs on your local machine. Maybe there's some special case where it'd be a problem, especially if your code has bad bot behavior, but if the website doesn't want anyone to do this, they should have some kind of encryption or privacy setting to prevent it.

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

    I started to do something like this recently with some websites for the same reason. Only, I'm using ViolentMonkey for this (open source alternative for loading user scripts).
    By the way, what's the advantage of *.filter(...).at(0)* over *.find(...)* ?

    • @WesBos
      @WesBos  Рік тому +1

      No advantage - I probably should have used find here!