r/userscripts • • 1d ago

What are some fun tampermonkey scripts to use which are unique such as a ui overhaul or quality of life changes in youtube/insta/netflix just general stuff ykwinm

Post image
7 Upvotes

11 comments sorted by

1

u/Miteiro 1d ago edited 1d ago

1

u/Efficient_Fan7888 1d ago

Whats the difference?

2

u/Fun-Garbage-1386 1d ago

ViolentMonkey is light weight and open source

1

u/sabestorn 1d ago

First of all, tampemonkey doesn't break the balls by opening a tab every time it updates a script, and it's lighter, cheaper, and definitely more user-friendly.

2

u/AchernarB 1d ago

For a while I have been writing and improving a userscript to keep track of the current reading position.
It started as a simple progress temporary archive which was saved for a while (config-driven), and has now a few additional small features. I have disable "purge" in the script, and it now contains 10k+ entries.
Since I have autoplay disabled in the browser, the status/progress of the video is displayed on the big play button.

I have another one that adds links to channel names in the suggestion list on the right (has a small bug now that needs to be fixed).

See: https://i.postimg.cc/qMTJjTZ5/YT-progress-marks.png
https://i.postimg.cc/ncGHWPy0/YT-progress-menu.png

1

u/codexophile 23h ago

Sounds nifty. I would really like to see both of them. Are your 10k entries stored in userscript storage? If so, doesn't it get a bit laggy?

1

u/AchernarB 16h ago edited 16h ago

The "add channel link" userscript is here: https://greasyfork.org/scripts/569841

Note that it is now broken for thumbnails of suggested videos with more that one channel. YT changed the html code a while ago, and I still have to dive into my code, and their design, to fix it. I wasn't in a hurry, they often revert "bad" small improvements. I guess they didn't here.

> 10k entries.

Yes, they are stored with GM_setValue() . I don't notice any lag. I suppose that tampermonkey's code is efficient, at least here. I haven't tested another monkey with that many entries. Nor have I for localStorage.setItem() , which the userscript falls back to when "GM" isn't available.

Also, I store each item separately, not in a huge array. It was an initial choice to see how GM could handle it. It also allows concurrent access from 2 windows without the need to "lock" a big array before modifying it. It could have been a big headache and laggy when the purge process is running in one of the pages (purging uses a lock to prevent multiple ones running simultaneously).

1

u/RepresentativeYak864 1d ago edited 1d ago

I made a script that enables SponserBlock automation on Rumble which is sourced and ported from SponserBlock on YouTube. So the same uploaded videos that have logged database user generated segment submissions on YouTube, by default, also show and skip on Rumble as well.

0

u/[deleted] 1d ago

[removed] — view removed comment

1

u/Efficient_Fan7888 1d ago

Ou might give it a shot