Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / README.md
Last active March 6, 2024 20:23
An Arc boost that lets you message ChatGPT from the Command Bar.