Skip to content

Instantly share code, notes, and snippets.

<?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 / 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 / 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 / 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 / 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 / snap-remover.sh
Last active July 6, 2022 16:37
Completely remove snaps from Ubuntu.
#!/bin/sh
# Remove snaps completely from Ubuntu
# Tested on Ubuntu 22.04
# WARNING: This script will remove ALL snap applications. (Includning Firefox and the Software store).
# Make backups of your configurations, bookmarks, etc. You should also make sure to have replacements
# ready for software that you use. (Like Firefox for example.)
# Lists all installed snap applications and then uninstalls them.
@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 / gnome-randomwp.sh
Last active August 9, 2022 16:05
Set a random wallpaper in GNOME.
#!/bin/bash
# A simple script to set a random wallpaper in GNOME
# Add the script to ~/.bash_profile or ~/.profile to run it at each login
# Change to your wallpaper location
DIR="$HOME/.local/share/backgrounds"
PIC=$(ls $DIR/* | shuf -n1)
@lassekongo83
lassekongo83 / userChrome.css
Last active January 14, 2022 18:13
My Firefox Proton userChrome. Slightly more compact and with tabs that look like tabs.
:root {
/* Adjust the tab height to your liking */
--tab-min-height: 30px !important;
--arrowpanel-menuitem-padding: 4px 8px !important;
}
#tabbrowser-tabs {
--user-tab-rounding: 2px;
}
@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==