Install gnome-tweak-tool to get keyboard lazout with umlauts.
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install gnome-tweaks
// ==UserScript== | |
// @name Instagram No ForYou !1!!11 | |
// @description Never show the "For You" page or Reels on Instagram. Always redirect to the "Following" page. | |
// @match https://www.instagram.com/* | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
(function () { | |
'use strict'; |
Install gnome-tweak-tool to get keyboard lazout with umlauts.
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install gnome-tweaks
// ==UserScript== | |
// @name Google Dynamic Dark Mode | |
// @description dynamically set dark/light mode on google according to os settings | |
// @author Daniel Rotaermel | |
// @match *://*google.com* | |
// ==/UserScript== | |
let shouldUseDarkmode = window.matchMedia('(prefers-color-scheme: dark)') | |
.matches; |
/* shadow below adjacent elements */ | |
.shadowBelow { | |
position: relative; | |
} | |
.shadowBelow:before { | |
content: ""; | |
position: absolute; | |
top: 0; | |
bottom: 0; |
// ==UserScript== | |
// @name Toggle pip and fullscreen on any video | |
// @description Toggle picture-in-picture (ctrl+p) and fullscreen (ctrl+f) in Safari | |
// @license MIT | |
// @author Daniel Rotärmel | |
// @namespace https://gist.github.com/danielrotaermel | |
// @match *://*.* | |
// @match *://*/* | |
// ==/UserScript== |
(* | |
Description: Applescript to open/close picture-in-picture in Safari | |
Supported Applications: Safari, IINA | |
Author: Daniel Rotärmel | |
Source: https://gist.github.com/danielrotaermel/201f549d5755ea886eb78bb660133722 | |
Instructions: | |
Assign this to a global keyboard shortcut with better touch tool / hammerspoon etc. - suggested: cmd+ctrl+p. | |
Make sure "Developer > Allow JavaScript from Apple Events" is enabled in Safari. | |
Download the BTT preset here -> https://share.folivora.ai/sP/3dd264e3-5d16-425f-8ab3-ce14877ec04f | |
*) |
-- Author: Daniel Rotärmel | |
tell application "System Events" | |
if exists (window 1 of process "PIPAgent") then | |
click button 1 of (window 1 of process "PIPAgent") | |
end if | |
end tell |
// ==UserScript== | |
// @name PiPer Shortcut | |
// @description This is your new userscript, start writing code | |
// @match *://*.* | |
// ==/UserScript== | |
document.onkeyup = function(e) { | |
// console.log(e) | |
// ctrl + p | |
if (e.ctrlKey && e.key == "p") { |
// | |
// MKMapView+ShowHide.swift | |
// | |
// Created by Daniel Rotärmel on 27.10.20. | |
// | |
import MapKit | |
// MKAnnotationView extensions to show/hide annotations completely | |
extension MKMapView { |