How skip ad's in youtube videos using qutebrowser and more

I have been testing the latest version of qutebrowser repository and it works great with youtube, one of the features it has is the adaptability to make your Greasemonkey scripts, the h264ify do NOT work with Falkon :frowning: which also uses Greasemoney

In this case you have 3 scripts (not mine) but that i use with qutebrowser.

Save this files to /boot/home/config/settings/qutebrowser/data/greasemonkey

To avoid social network tracking
Fanboy-social https://easylist.to/easylist/fanboy-social.txt save as fanboy-social.js

To skip youtube ads
AdGuard script block YouTube ads// https://pastebin.com/raw/sTGHyzTh save as adguard.js

To use only x/h264 codec instead of VP9/AV1, that way we reduce the cpu/energy, more than 50%-60%, ideal for older systems, you can also block 60fps videos
h264ify https://pastebin.com/raw/8sTCR69y save as h264ify.js

Demo
https://link.storjshare.io/s/jve534yu4pyj2wrtgz57pwkwipda/movz/clip.mp4

2 Likes

Sounds good, thank you!
Will try later…
Did not know that qutebrower can play YouTube at all!
Surprised!
Greasemonkey is at HaikuDepot?

In qutebrowser and Falkon is already installed

1 Like

Since the anti-consumer aggresive adblock blocking, I’ve been using piped.video to bypass the YouTube frontend altogether. It’s adfree, supports sponsorblock and does not require any browser plugins. It’s not always successful with playing the video, but it works most of the time. If it fails, I use yt-dlp to download the video for offline viewing.

3 Likes

Thanks for the link i modified a javascript and now all the youtube links, (embeded too) go directly to piped.video.

Here is the javascript, save as redirect.user.js

// ==UserScript==
// @name youtube to piped.video
// @namespace youtube script
// @match http://youtube.com/*
// @match https://youtube.com/*
// @match http://www.youtube.com/*
// @match https://www.youtube.com/*
// @match https://music.youtube.com/*
// @run-at document-start
// ==/UserScript==
url = location.href
url = url.replace(/\bwww.\b/, “”)
url = url.replace(“youtube.com”,“piped.video”)
location.href = url

Idea from GreaseMonkey-Redirect/youtube-to-invidious.user.js at main - zortazert/GreaseMonkey-Redirect - Codeberg.org

Edit: Site now is working with falkon they fixed it :smiley:

3 Likes