Skip to content

Instantly share code, notes, and snippets.

@ifvictr
ifvictr / README.md
Last active March 6, 2024 20:23
An Arc boost that lets you message ChatGPT from the Command Bar.
@ifvictr
ifvictr / styles.css
Created August 2, 2023 08:29
A userstyle that restores the old Twitter logo.
h1[role="heading"] [aria-label="Twitter"] svg {
display: none !important;
}
h1[role="heading"] [aria-label="Twitter"]:after {
color: rgb(29, 155, 240);
content: "[CHIRPBIRDICON]";
font-family: "TwitterChirp";
font-size: 28px;
left: 9px;
@ifvictr
ifvictr / styles.css
Last active August 19, 2023 07:02
A userstyle that removes all view counts from Twitter
/* Remove view count from tweets with loaded view count */
div[role="group"] div:has(> a[href^="/"][href$="/analytics"][role="link"]),
/* Remove view count from tweets with unloaded view count */
div[role="group"] div:has(> [aria-label$="View post analytics"]),
/* Remove view count from the metrics row under expanded tweets */
div[role="group"] div:has(> div > a[href^="/"][href$="/analytics"][role="link"]):not(:only-child),
/* Remove the metrics row from expanded tweets if it only contains the view count */
div[role="group"]:has(> div > div:only-child > div > a[href^="/"][href$="/analytics"][role="link"]) {
display: none;
}
@ifvictr
ifvictr / fizzbuzz.js
Last active February 16, 2021 21:10
FizzBuzz in JavaScript without any conditional statements. 174 bytes when minified.
p = ['Fizz', 'Buzz', '', 1]
c = Math.ceil
f = n =>
[
() => {},
() => {
a = n / 3
b = n / 5
console.log(
p[2 * (c(a) - ~~a)] +
@ifvictr
ifvictr / config.py
Last active June 15, 2020 10:38
Overviewer config for Hack Club’s Minecraft server
server_dir = '~/server'
worlds['world'] = f'{server_dir}/world'
worlds['world_nether'] = f'{server_dir}/world_nether'
worlds['world_the_end'] = f'{server_dir}/world_the_end'
renders['world_normal'] = {
'world': 'world',
'title': 'Normal',
'rendermode': 'smooth_lighting'
@ifvictr
ifvictr / OAAT.php
Last active June 13, 2016 19:37
OAAT for PocketMine-MP.
<?php
/**
* @name OAAT
* @main oaat\OAAT
* @version 1.0.0
* @api 1.12.0
* @load POSTWORLD
* @author Gamecrafter
* @description Only one user with this name can join.
* @link https://gist.github.com/Gamecrafter/f1c0f1b11b97450c776b1f8dff32f690
@ifvictr
ifvictr / RocketPads.php
Last active March 2, 2018 09:37
RocketPads for PocketMine-MP.
<?php
/**
* @name RocketPads
* @main rocketpads\RocketPads
* @version 1.0.0
* @api 1.12.0
* @load POSTWORLD
* @author Gamecrafter
* @description Save your players the walking, give them a boost!
* @link https://gist.github.com/Gamecrafter/b21d25ca901ad9ab6c215aa65363917f
@ifvictr
ifvictr / OddName.php
Last active June 16, 2016 20:46
OddName for PocketMine-MP.
<?php
/**
* @name OddName
* @main oddname\OddName
* @version 1.0.0
* @api 1.12.0
* @load POSTWORLD
* @author Gamecrafter
* @description Give your players odd names when they join!
* @link https://gist.github.com/Gamecrafter/1cd0bf79d699d2ffb8a36f954753227b
@ifvictr
ifvictr / KillCMD.php
Last active June 12, 2016 00:39
KillCMD for PocketMine-MP.
<?php
/**
* @name KillCMD
* @main killcmd\KillCMD
* @version 1.0.0
* @api 1.12.0
* @load POSTWORLD
* @author Gamecrafter
* @description Do stuff when a player kills another player!
* @link https://gist.github.com/Gamecrafter/47b77cb79cac21ad6343cbe80d8fbbc4
@ifvictr
ifvictr / InfiniteSlots.php
Last active June 12, 2016 00:39
InfiniteSlots for PocketMine-MP.
<?php
/**
* @name InfiniteSlots
* @main infiniteslots\InfiniteSlots
* @version 1.0.0
* @api 1.12.0
* @load POSTWORLD
* @author Gamecrafter
* @description Bypass the player slot limit on your server!
* @link https://gist.github.com/Gamecrafter/917531f5c1828f426ec8be475975705e