Skip to content

Instantly share code, notes, and snippets.

View KraXen72's full-sized avatar
💻
i like to code

KraXen72

💻
i like to code
View GitHub Profile
@KraXen72
KraXen72 / keystrokes.js
Last active August 4, 2022 10:18
Keystrokes userscript by KraXen72 (for https://github.com/KraXen72/crankshaft krunker.io client)
// ==UserScript==
// @name Keystrokes
// @author KraXen72
// @version 1.2
// @desc Shows WASD, shift, space and 2 configurable keys on screen
// @src https://gist.github.com/KraXen72/2ea1332440b0c66b83ca9b73afc38269
// ==/UserScript==
//keystrokes userscript by KraXen72. made for the Crankshaft client.
//You are free to modify it for your own purposes (unpublished)
@KraXen72
KraXen72 / autospectate.js
Last active May 31, 2023 17:22
userscript to automatically enter spectator mode. made for https://github.com/KraXen72/crankshaft
// ==UserScript==
// @name auto-spectate
// @author KraXen72
// @version 2.0.0
// @desc automatically switch to spectator mode
// @run-at document-end
// ==/UserScript==
const has = (object, key) => Object.prototype.hasOwnProperty.call(object, key);
let interval = null
@KraXen72
KraXen72 / tablesorter-mediawiki-patched.js
Created July 14, 2022 13:34
tablesorter-mediawiki-patched visually merges same rows back together
/*!
* TableSorter for MediaWiki
*
* Written 2011 Leo Koppelkamm
* Based on tablesorter.com plugin, written (c) 2007 Christian Bach.
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
#!/bin/bash
# Check if jmtpfs is installed
if ! command -v jmtpfs &> /dev/null; then
echo "The command 'jmtpfs' is not found."
echo "Please install 'jmtpfs' using your distribution's package manager."
echo "For example, on Debian-based systems (e.g., Ubuntu): sudo apt install jmtpfs"
echo "On Red Hat-based systems: sudo yum install jmtpfs"
exit 1