Skip to content

Instantly share code, notes, and snippets.

View PhilippIRL's full-sized avatar
😴
tired

Philipp PhilippIRL

😴
tired
  • 03:33 (UTC +02:00)
View GitHub Profile
// ==UserScript==
// @name bahn.expert Regenbogen-ICE Integration
// @namespace https://bahn.expert/regenbogenice
// @version 0.0.1
// @author PhilippIRL
// @match https://bahn.expert/*
// @match https://beta.bahn.expert/*
// @updateURL https://gist.github.com/PhilippIRL/adedb36f1a89c1097372d854493a893e/raw/bahnexpert-regenbogenice.user.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=regenbogen-ice.de
// @grant none
import protocol from 'minecraft-protocol'
async function queryMinecraftServerStatus(ip, port) {
try {
const data = await protocol.ping({ host: ip, port, closeTimeout: 3000, noPongTimeout: 3000 })
return { online: true, data }
} catch(e) {
return { online: false, data: null }
}
}
# Created by @PhilippIRL
# This script patches Spotify's offline.bnk file (this file caches the remote config) to trick Spotify into thinking that your account is enabled for dev tools.
# Spotify will automatically revert this local change after some time when it next fetches the remote config.
# Of course you will have to completely close Spotify before running this script.
import os, sys, platform
systemPlatform = platform.system()
if systemPlatform == 'Windows':
@PhilippIRL
PhilippIRL / moodle-hnbk.css
Created September 16, 2021 17:42
ugly moodle css
#page {
background-color: #f6f6f6;
}
.block, #page-header .card {
border: none;
padding: 10px;
}
a, a:hover {
/* ==UserStyle==
@name lower case speech
@author PhilippIRL
@namespace https://gist.github.com/PhilippIRL/1d0333b581ffec6a503c380a0986c9a4
@description `transforms most text to lower case`
@version 0.0.1
@updateURL https://gist.githubusercontent.com/PhilippIRL/1d0333b581ffec6a503c380a0986c9a4/raw/lower-case-speech.user.css
==/UserStyle== */
*:not(textarea,
### Keybase proof
I hereby claim:
* I am philippirl on github.
* I am ppluss (https://keybase.io/ppluss) on keybase.
* I have a public key ASCMZeIHLeDqKltqclwZmiNlzIEhD5b3OHxkMDWiaLrv3wo
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ppluss on github.
  • I am ppluss (https://keybase.io/ppluss) on keybase.
  • I have a public key whose fingerprint is E6BE DCD7 2DC1 D972 A8FF 8479 7E4C EE76 D525 CC00

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ppluss on github.
  • I am ppluss (https://keybase.io/ppluss) on keybase.
  • I have a public key ASBb_zKKsPYoFA-3yYsCA_02cfvO-2cmX5YHwOZEptYRnwo

To claim this, I am signing this object:

// ==UserScript==
// @name WhatsApp Web: Rectangular avatars
// @name:de WhatsApp Web: Rechteckige Avatare
// @author PplusS
// @match *://web.whatsapp.com/*
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
@PhilippIRL
PhilippIRL / twitter-rect-avatars.user.js
Last active December 17, 2017 10:09 — forked from EverfreeFaerie/twitter-rect-avatars.user.js
Twitter: Rectangular avatars
// ==UserScript==
// @name Twitter: Rectangular avatars
// @name:de Twitter: Rechteckige Avatare
// @include *://twitter.com/*
// @include *://tweetdeck.twitter.com/*
// @include *://analytics.twitter.com/*
// @author xThunderbolt, PplusS
// ==/UserScript==
function addGlobalStyle(css) {