Fix your life with Greasemonkey Scripts

  Рет қаралды 20,097

Wes Bos

Wes Bos

Күн бұрын

Пікірлер: 37
@PlayWithNiz
@PlayWithNiz Жыл бұрын
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!
@anthonymarquez2542
@anthonymarquez2542 Жыл бұрын
The real mvp
@amateurtries7542
@amateurtries7542 Жыл бұрын
Why the hell didn't I think of this simple but useful use-case?!
@PiIsRational
@PiIsRational 2 ай бұрын
I feel like refreshign the page or clicking on the "next" button breaks everything. Is there a secret to this?
@MaxProgramming
@MaxProgramming Жыл бұрын
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 Жыл бұрын
Hah I use that a lot but not sure why I didn’t do it here
@ste-fa-no
@ste-fa-no Жыл бұрын
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 Жыл бұрын
yeah but who has the time to type pip 8 times 🤣
@Thorax232
@Thorax232 Жыл бұрын
How to become a Syntax guest. Step 1: Name yourself Scott Tolinski 2.
@whyredvince
@whyredvince Жыл бұрын
2. Profit????
@serviciotecnico4455
@serviciotecnico4455 Жыл бұрын
won't trolls with usernames that include Scott Tolinski be able to get in?
@WesBos
@WesBos Жыл бұрын
Yes - I’ll deal with that if and when 😆
@tobias-edwards
@tobias-edwards Жыл бұрын
Great video, I might have to make a script to automatically like the video if the channel is Wes Bos
@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?
@namboozleUK
@namboozleUK Жыл бұрын
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 Жыл бұрын
The only difference is that the spread looks cooler
@expakun
@expakun 7 ай бұрын
For some reason, Greasemonkey does not work for me of Firefox 126.0.1 of Windows 11 but Tampermonkey does
@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.
@atuttle
@atuttle Жыл бұрын
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 Жыл бұрын
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 11 ай бұрын
Sorry to burst your bubble bursting, but... : )
@abhisekgupta1543
@abhisekgupta1543 Жыл бұрын
you didn't define interval, mine says define interval
@Antimated
@Antimated Жыл бұрын
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 😅
@planetmall2
@planetmall2 Жыл бұрын
Awesome just built my first script because of this video! Thank you!
@WesBos
@WesBos Жыл бұрын
Nice work! What does it do?
@david14exe
@david14exe Жыл бұрын
Can you get banned if you use this?
@stephenmontague6930
@stephenmontague6930 11 ай бұрын
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.
@boopfer387
@boopfer387 7 ай бұрын
beautiful
@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 Жыл бұрын
No advantage - I probably should have used find here!
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 186 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 1,3 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 69 М.
Caught Cheating With Phone In His SOCK!
14:29
Chess Vibes
Рет қаралды 196 М.
Error handling in TypeScript. How to avoid exceptions.
6:11
Beyond TypeScript
Рет қаралды 3,6 М.
Custom dropdowns just got a whole lot easier (finally!)
4:33
TamperMonkey Tutorial | Add Custom JavaScript to YouTube.com
11:21
5 Async + Await Error Handling Strategies
18:11
Wes Bos
Рет қаралды 24 М.
Useful & Responsive Layouts, no Media Queries required
11:03
Kevin Powell
Рет қаралды 186 М.
Looking Under the Hood of JavaScript
6:34
ThePrimeagen
Рет қаралды 189 М.
This CSS Backlight Effect is so damn cool!
3:18
Wes Bos
Рет қаралды 16 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН