Skip to content

Instantly share code, notes, and snippets.

View Buntelrus's full-sized avatar

Buntel Buntelrus

View GitHub Profile
@Buntelrus
Buntelrus / example.sh
Created May 21, 2023 00:09
Parse Arguments in Bash in a convenient way
#!/bin/bash -e
source parse-arguments.sh
REQUIRED_ARGUMENTS=(
"arg-1"
"arg-2"
)
OPTIONAL_ARGUMENTS=(
@Buntelrus
Buntelrus / main.bundle.min.user.js
Last active September 4, 2021 08:14
Make printing recipes easier
// ==UserScript==
// @name Print Recipes
// @version 0.1.5
// @author Buntelrus
// @description Make printing recipes easier
// @homepage https://buntel.de
// @match https://www.zdf.de/*
// @match https://www.swr.de/buffet*
// @downloadURL https://gist.github.com/Buntelrus/1508cb9c1de48da29c03a9b278042697/raw/main.bundle.min.user.js
// @updateURL https://gist.github.com/Buntelrus/1508cb9c1de48da29c03a9b278042697/raw/main.bundle.min.user.js
/**
* This prepares html
* You can adjust your html directly and then delete this code block.
*/
//create container element which will have the exact width of its content (image)
const container = document.createElement('div')
//get your slider element
let slider = document.querySelector('.beforeAfterSlidebar')
//override position absolute (you need 1 image in dom flow for the container to set width properly)
slider.children[0].style.position = 'initial'
@Buntelrus
Buntelrus / main.bundle.min.user.js
Last active July 13, 2021 13:38
Old Reddit Enhancer (hide comments + time tracking)
// ==UserScript==
// @name Old Reddit Enhancer
// @version 0.3.3
// @author Buntelrus
// @description hide comments + time tracking
// @homepage https://buntel.de
// @match https://old.reddit.com/*
// @exclude https://old.reddit.com/chat*
// @downloadURL https://gist.github.com/Buntelrus/6914a08285e215fdd9c2530661d9d81c/raw/main.bundle.min.user.js
// @updateURL https://gist.github.com/Buntelrus/6914a08285e215fdd9c2530661d9d81c/raw/main.bundle.min.user.js
@Buntelrus
Buntelrus / fantasyBundesliga.user.js
Last active January 1, 2020 13:17
Add Team Value to Transferview
// ==UserScript==
// @name Fantasy Bundesliga
// @namespace https://fantasy.bundesliga.de
// @version 0.1.1
// @description add Team Value to Transferview and hide infoBox if desired
// @author You
// @match https://fantasy.bundesliga.de/player_transfers
// @grant none
// ==/UserScript==