Skip to content

Instantly share code, notes, and snippets.

View azdanov's full-sized avatar

Anton Ždanov azdanov

View GitHub Profile
@azdanov
azdanov / .ideavimrc
Created March 26, 2025 04:25
IdeaVim configuration based on AstroNvim mappings
" .ideavimrc configuration based on AstroNvim mappings
" Enable IdeaVim plugins
set ideajoin
set highlightedyank
set surround
set nerdtree
set which-key
set matchit
set commentary
@azdanov
azdanov / keymap.json
Created March 26, 2025 04:20
Zed keymap insipred by AstroNvim
[
{
"context": "Editor",
"bindings": {
"ctrl-h": ["workspace::ActivatePaneInDirection", "Left"],
"ctrl-j": ["workspace::ActivatePaneInDirection", "Down"],
"ctrl-k": ["workspace::ActivatePaneInDirection", "Up"],
"ctrl-l": ["workspace::ActivatePaneInDirection", "Right"],
"ctrl-s": "workspace::Save"
}
@azdanov
azdanov / meta_reloader.js
Last active March 6, 2025 20:04
Reloads Facebook and Messenger pages when leaving the tab to prevent high CPU usage
// ==UserScript==
// @name Facebook & Messenger Auto-Reloader
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Reloads Facebook and Messenger pages when leaving the tab to prevent high CPU usage
// @author Me
// @match https://*.facebook.com/*
// @match https://*.messenger.com/*
// @grant none
// @run-at document-idle
@azdanov
azdanov / messenger.css
Created February 26, 2025 19:28
Reduce the space used on meta messenger
/* ==UserStyle==
@name Messenger reduce space
@author Me
@description Reduce the space used on messenger
@version 1.0.0
@license MIT
==/UserStyle== */
@-moz-document domain("messenger.com"), domain("www.messenger.com") {
div.__fb-dark-mode,
div.__fb-light-mode {
@azdanov
azdanov / yt-hover.js
Created February 26, 2025 19:26
Hover a thumbnail on YouTube to quickly mark "Not interested" or "Don't recommend channel"
// ==UserScript==
// @name YT: not interested in one click
// @description Hover a thumbnail on YouTube to quickly mark "Not interested" or "Don't recommend channel"
// @version 1.4.0
//
// @match https://www.youtube.com/*
//
// @noframes
// @grant none
//
@azdanov
azdanov / custom_emoji2.js
Created February 21, 2025 13:08
Replace Facebook's favicon with an emoji or custom SVG
// ==UserScript==
// @name Facebook Favicon
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Replace Facebook's favicon with an emoji or custom SVG
// @author azdanov
// @match https://*.facebook.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@azdanov
azdanov / nav_hide.css
Created February 21, 2025 07:47
UserStyle to hide Facebook navigation bar
/* ==UserStyle==
@name Facebook Navigation Hide
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Hides Facebook navigation bar
@author You
@match *://www.facebook.com/*
@license MIT
==/UserStyle== */
@azdanov
azdanov / custom_emoji.js
Created February 21, 2025 07:46
UserScript to swap the Facebook favicon with a custom emoji
// ==UserScript==
// @name Facebook Favicon Swap
// @namespace https://tampermonkey.net/
// @version 1.0
// @description Swaps the Facebook favicon with a custom emoji
// @match *://www.facebook.com/*
// @grant none
// ==/UserScript==
(function() {
{
"env": {
"PATH": "$(PATH):$(HOME)\/.local\/bin"
},
"apps": [
{
"name": "720p60 Desktop",
"prep-cmd": [
{
"do": "bash \/home\/georg\/.config\/sunshine\/prepare_steam.sh",
return {
{
"stevearc/conform.nvim",
optional = true,
opts = {
formatters_by_ft = {
["gotmpl"] = { "djlint" },
},
formatters = {
djlint = {