Skip to content

Instantly share code, notes, and snippets.

@qatoqat
qatoqat / append_notification_number_to_title.js
Created July 30, 2023 04:39
Append notification number to title
// ==UserScript==
// @name Append notification, probably for Firefox
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change the website's favicon to Stack Overflow's favicon.
// @author You
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
@qatoqat
qatoqat / x_favicon_and_title_to_tw.js
Last active July 30, 2023 05:07
x favicon and title to tw
// ==UserScript==
// @name Change favicon and title
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change favicon and title
// @author You
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
@qatoqat
qatoqat / x_to_-w-_with_favicon.js
Last active July 29, 2023 00:43 — forked from Silveere/x_to_-w-_with_favicon.user.js
X to =w= with favicon
// ==UserScript==
// @name =w= with favicon
// @namespace http://tampermonkey.net/
// @version 0.1
// @description =w= icon to replace x
// @author You
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// @license MIT
@qatoqat
qatoqat / x_loading_to_custom_image.js
Created July 29, 2023 00:36
X loading to custom image
// ==UserScript==
// @name Replace X loading with an image
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Replace an SVG element with an image on Twitter within the div with aria-label "loading".
// @author You
// @match https://twitter.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
@qatoqat
qatoqat / change_favicon.js
Created July 25, 2023 16:30
Bird Favicon
// ==UserScript==
// @name Change Favicon
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change to original bird favicon.
// @author You
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// ==/UserScript==
@qatoqat
qatoqat / x_to_-w-.js
Last active July 29, 2023 00:20
X to =w=
// ==UserScript==
// @name =w=
// @namespace http://tampermonkey.net/
// @version 0.1
// @description =w= to replace x
// @author You
// @match https://*.twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant none
// @license MIT
@qatoqat
qatoqat / main.rs
Created October 1, 2022 08:02
particle collision
use macroquad::{prelude::*, rand::gen_range};
pub const COUNT: usize = 200;
pub const RADIUS: f32 = 20.0;
#[macroquad::main("Collision")]
async fn main() {
let mut particle_hd = ParticleHandler::new();
let clear_color: Color = Color::from_rgba(25, 30, 50, 255);
loop {