/ilu/ - I Love Userscripts

Userscripts are a way to add extra functionality to a site using Javascript.
To use them, add the Violentmonkey extension to your browser.
(It is the best open source userscript manager.
It works better and looks better than the rest.)
violentmonkey.github.io/

>Userscripts That Make Any Forums Better
Any Forums X: Any Forums-x.net/
Oneechan: github.com/KevinParnell/OneeChan

>Where To Get More Userscripts
GitHub Gists: gist.github.com/search?q===UserScript== (Search for ==UserScript==)
Greasy Fork: greasyfork.org/en

>Userscript Development Resources
How To Write A Userscript: simply-how.com/enhance-and-fine-tune-any-web-page-the-complete-user-scripts-guide
GM_* API: violentmonkey.github.io/api/gm/

What userscripts do you love and why?
Also, have you ever written a userscript?
(It's probably one of the easiest ways to get into programming.)

Attached: 9c5ebad1323100f725321891af1b8e31.jpg (1280x720, 39.59K)

Other urls found in this thread:

github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass
youtube.com/watch?v=-Crlq0-3uOU
github.com/iv-org/documentation/blob/master/Invidious-Instances.md
addons.mozilla.org/en-US/firefox/addon/firemonkey/
youtube.076.ne.jp/watch?v=-Crlq0-3uOU
inv.riverside.rocks/watch?v=-Crlq0-3uOU
invidious.osi.kr/watch?v=-Crlq0-3uOU
github.com/ccd0/Any
simply-how.com/enhance-and-fine-tune-any-web-page-the-complete-user-scripts-guide
piped.kavin.rocks/[WATCH
piped.kavin.rocks/watch?v=-Crlq0-3uOU
github.com/TeamPiped/Piped
tampermonkey.net/eula.php?ext=dhdg&show=dhdg
tampermonkey.net/contrib.php?ext=dhdg&show=dhdg
twitter.com/NSFWRedditVideo

If you're not logged in to google/youtube and want to watch and age-restricted video, this extension will bypass that block for you.
github.com/zerodytrash/Simple-YouTube-Age-Restriction-Bypass

Test Video:
youtube.com/watch?v=-Crlq0-3uOU

why violentmonkey over tampermonkey?

i just have a userscript that redirects jewtube urls to invidious, no age restricting there

I can't find what Any Forums X and Oneechan really does.
I see a different theme but that's it.

Is it really all about changing places of buttons and change the color of the board?

>why violentmonkey over tampermonkey?
1. Tampermonkey is closed source.
2. ViolentMonkey looks better. (TM is not pretty.)

If I remember right it does all kinds of things like hiding posts based on rules (no tripfags, no memeflags, no posts with the word "ham sandwich" in them, etc.), converting post structure into le reddit style, giving you sauce on images, etc.

don't ever visit youtube for any reason, here are a dozen mirrors with no ads/tracking/sign in requirement

github.com/iv-org/documentation/blob/master/Invidious-Instances.md

tampermonkey is proprietary. violentmonkey has been in hot water for their privacy policy/speculated data collection in the past but nothing concrete

this is a solid option but not 100% compatible with all scripts:
addons.mozilla.org/en-US/firefox/addon/firemonkey/

The most important feature for me in Any Forums X is filtering posts with regular expressions. Take a peek at the extension's settings (the wrench icon) to see a list of features that you can enable or disable.

>Is it really all about changing places of buttons and change the color of the board?

It's a lot more than that, but it takes some time to explore its capabilities. Here are a few keys to get you started with Any Forums X.

t - Toggle the thread watcher
w - Watch current thread
g - Toggle a thread's gallery mode
T - Toggle threading mode
Shift-C - Go to the board's catalog page

I hope you enjoy this little taste of what Any Forums X offers.

Attached: 3c10c26d077100bb21b5645245239914.jpg (1864x2369, 1.01M)

>violentmonkey has been in hot water for their privacy policy/speculated data collection in the past
oh fugg I didn't know this???

>don't ever visit youtube for any reason, here are a dozen mirrors with no ads/tracking/sign in requirement
>github.com/iv-org/documentation/blob/master/Invidious-Instances.md

I tried a handful of mirrors, and I could not get the age restricted test video to work.

Original: youtube.com/watch?v=-Crlq0-3uOU
Attempt #1: youtube.076.ne.jp/watch?v=-Crlq0-3uOU
Attempt #2: inv.riverside.rocks/watch?v=-Crlq0-3uOU
Attempt #3: invidious.osi.kr/watch?v=-Crlq0-3uOU

None of the invidious instances can display this age-restricted video. Any ideas?

Attached: 0b24d63e09e3dfb3974034a1cb5d708a.jpg (6000x4500, 2.74M)

Okay thank you guys!

And is it safe to use even though they published their source code?
I mean, I'm a noob, how can I be sure that the extension they give us use the exact same source code they published?

When you install it, you get to look at the source before you confirm the installation. It's a big codebase to skim through, but thousands of people have been using Any Forums X for years. If you really care, you can clone the repo and build it yourself from pristine source.
github.com/ccd0/Any Forums-x

One thing about gallery mode.
After you hit 'g' to enter gallery mode, the left and right arrow keys will move to the previous and next pic in the thread.
It's one of those things you can guess with intuition, but it's not obvious.

You can open an editor in the extension and review the source code yourself. One of the beauties of userscripts is that they're not compiled extensions. They're the same source code that you can open and tweak on the fly, whenever.
In that sense, it's vaguely like using emacs.

>In that sense, it's vaguely like using emacs.
Like emacs is a great way to learn elisp,
userscripts offer a great platform for learning javascript.
The tutorial in the OP is really good.
simply-how.com/enhance-and-fine-tune-any-web-page-the-complete-user-scripts-guide

When you realize how easy it is to fix that annoying behavior that the side admins are too lazy or indifferent to fix, it feels great to get some control over your browsing experience.
qualityOfLife++

>Attempt #1:
I pasted the wrong link.
This was the first invidious instance I tried (and failed) to load that age-restricted video on.
youtube.076.ne.jp/watch?v=-Crlq0-3uOU

Yeah for some reason invidious seems to be unable to play age restricted stuff now. You could try piped instead.
piped.kavin.rocks/[WATCH URL]

Piped works! This is good to know.
piped.kavin.rocks/watch?v=-Crlq0-3uOU

I didn't know about the Piped project before.
github.com/TeamPiped/Piped

>violentmonkey has been in hot water for their privacy policy/speculated data collection in the past but nothing concrete

Do you have any links to this speculation?

Attached: 30.png (299x512, 121.24K)

>tampermonkey
Isnt that proprietary?

>Isnt that proprietary?
You are correct. TamperMonkey is not Free in the GNU sense.
License: tampermonkey.net/eula.php?ext=dhdg&show=dhdg
DonationWare: tampermonkey.net/contrib.php?ext=dhdg&show=dhdg