Skip to content

Instantly share code, notes, and snippets.

@lassekongo83
lassekongo83 / youtube-stop-channel-autoplay.user.js
Last active March 1, 2024 05:58
Stops channels you're not subscribed to from autoplaying the channel trailer
// ==UserScript==
// @name YouTube - Stop Channel Autoplay
// @namespace Violentmonkey Scripts
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author https://github.com/lassekongo83
// @description Stops channels you're not subscribed to from autoplaying the channel trailer
// ==/UserScript==
// ==UserScript==
// @name Twitch ad blackout
// @namespace Twitch ad blackout
// @match *://*.twitch.tv/*
// @grant none
// @version 1.0
// @author https://nitter.net/EthanShulman/
// ==/UserScript==
// Modified script from https://pastebin.com/HS9ukpRm
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba" >
@lassekongo83
lassekongo83 / firefox-binary-install.sh
Last active August 24, 2023 12:46
No snap, no repository, no flatpak? Just use the stand-alone Firefox binary.
#!/bin/sh
# Firefox stand-alone install script
# This script will download and install the latest Firefox stable tar and create a desktop file for it.
# The Firefox stand-alone binary auto-updates just like on Windows, so no repository needed.
# Change the 2 variables below to match your preference.
# Change to where you want Firefox installed. ~/.local/bin is the default.
@lassekongo83
lassekongo83 / restore-youtube-scrollbar.user.js
Last active July 10, 2023 07:02
Make YouTube use your browser's default scrollbar
// ==UserScript==
// @name Restore YouTube Scrollbar
// @namespace Violentmonkey Scripts
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author https://github.com/lassekongo83
// @description Make YouTube use your browser's default scrollbar
// ==/UserScript==
@lassekongo83
lassekongo83 / user.js
Last active May 26, 2023 16:02
Some of my preferred Firefox settings.
// My Firefox config
// PREF: Disable battery API (Firefox < 52)
user_pref("dom.battery.enabled", false);
// Don't close window with last tab
user_pref("browser.tabs.closeWindowWithLastTab", false);
// Because I don't use sync
user_pref("identity.fxaccounts.enabled", false);
@lassekongo83
lassekongo83 / autodecline-google-cookie-consent.user.js
Created May 17, 2023 08:48
A userscript that autodeclines the cookie consent popup on google.se (Swedish page)
@lassekongo83
lassekongo83 / yt-shorts-redirect.user.js
Last active May 17, 2023 08:38
Redirects YouTube shorts videos to the "watch" player.
// ==UserScript==
// @name Youtube shorts redirect
// @namespace ViolentMonkey Scripts
// @version 0.3
// @match *://*.youtube.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
@lassekongo83
lassekongo83 / fedora-gnome-minimal.sh
Last active April 18, 2023 18:03
A script to install a minimal GNOME on a minimal Fedora Everything install
#!/bin/bash
# This is a script that will install a minimal GNOME on a minimal Fedora Everything install
# This script was made for Fedora 38
# 1. Get the Fedora Everything ISO: https://alt.fedoraproject.org/
# 2. When installing select "Minimal install" where you select software.
# Install curl to download and run this script trough that, or just copy paste the lines
# Let's make dnf a little bit faster first
@lassekongo83
lassekongo83 / hide-youtube-guide.user.js
Last active February 17, 2023 08:56
Hides the app-drawer aka guide menu by default
// ==UserScript==
// @name Hide youtube guide menu
// @namespace Violentmonkey Scripts
// @match https://www.youtube.com/*
// @grant none
// @version 1.0
// @author -
// @description Hides the app-drawer aka guide menu by default
// ==/UserScript==