This helps to disable the worst feature ever created.
Yes. userContent.css
applies directly to the rendered page after all security checks. userContent.css is invisible to the page's JavaScript — no way to detect or counter it.
This helps to disable the worst feature ever created.
Yes. userContent.css
applies directly to the rendered page after all security checks. userContent.css is invisible to the page's JavaScript — no way to detect or counter it.
#!/bin/bash | |
# Warning: Assumes /opt is used for installation dir | |
cd ~/Downloads | |
curl --location -o firefox.tar.gz "https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" | |
tar --extract --verbose --preserve-permissions -f firefox.tar.gz --use-compress-program=xz | |
INSTALL_DIR="/opt/firefox" |
// ==UserScript== | |
// @name ASVZ Auto Load More | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Automatically clicks "Mehr laden" button when it becomes visible. (This saves one button click, nothing more.) | |
// @author cyrillkuettel | |
// @match https://asvz.ch/426-sportfahrplan | |
// @grant none | |
// ==/UserScript== |
# Xcode to Map Vim Keys
There is no built-in way to add custom key mappings in Xcode 13’s Vim Mode.
This is a workaround.
It depends on karabiner-elements
.
def get_methods(object, spacing=20): | |
""" Convenience method to print all methods at runtime. """ | |
method_list = [] | |
for method_name in dir(object): | |
try: | |
if callable(getattr(object, method_name)): | |
method_list.append(str(method_name)) | |
except Exception: | |
method_list.append(str(method_name)) | |
process_func = (lambda s: ' '.join(s.split())) or (lambda s: s) |
// ==UserScript== | |
// @name Overleaf Custom Vim bindings | |
// @match https://www.overleaf.com/project/* | |
// @version 0.1 | |
// @description Injecting custom vim settings in overleaf project. CodeMirror 6 editor only. | |
// @author cyrillkuettel | |
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo/related?hl=de | |
// @grant none | |
// ==/UserScript== |
class PathAdapter(PosixPath): | |
""" | |
Adapter to translate a Sub Filesystem from Pyfilesystem to Pathlib. | |
Use like this: | |
from fs import open_fs | |
from pathlib import Path, PosixPath | |
your_fs = open_fs('/tmp/test/') |
pkg update
''' Pythonic means "coding beautifully in harmony with | |
the language to get the maximum benefits from Python" | |
Learn to recognize non-pythonic APIs and to recognize | |
good code. Don't get distracted by PEP 8. Focus | |
first an Pythonic versus NonPython (P vs NP). | |
When needed, write an adapter class to convert from | |
the former to the latter. | |
* Avoid unnecessart packageing in favor of | |
simpler imports |