Skip to content

Instantly share code, notes, and snippets.

View Uvacoder's full-sized avatar

uvacoder Uvacoder

View GitHub Profile
@Uvacoder
Uvacoder / youtube-global-shortcuts.user.js
Created April 11, 2025 00:36 — forked from stefansundin/youtube-global-shortcuts.user.js
Makes the YouTube shortcuts work even if the player is not focused. Install Greasemonkey/Tampermonkey first, then click [Raw] to install.
// ==UserScript==
// @name YouTube global shortcuts
// @namespace https://gist.github.com/stefansundin/
// @homepage https://gist.github.com/stefansundin/65e3d6db697636d8e7f1
// @downloadURL https://gist.github.com/stefansundin/65e3d6db697636d8e7f1/raw/youtube-global-shortcuts.user.js
// @version 1.1
// @author Stefan Sundin
// @description Makes the YouTube shortcuts work even if the player is not focused.
// @icon https://www.youtube.com/favicon.ico
// @match https://www.youtube.com/*
@Uvacoder
Uvacoder / RSS.md
Created April 10, 2025 23:46 — forked from thefranke/RSS.md
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@Uvacoder
Uvacoder / youtube-rss-subscriptions
Created April 10, 2025 23:20 — forked from Yiannis128/youtube-rss-subscriptions
This is a python script that extracts your YouTube subscriptions into an RSS feed. Simply provide as an argument to the script, the path where you have the html file saved of the https://www.youtube.com/feed/channels make sure to check the whole page is saved because the script can only see the channels that are in that file.
#!/usr/bin/env python3
# Licence: GPLV3
import requests
from bs4 import BeautifulSoup as soup
from sys import argv as argv
from time import sleep
def get_channel_id(url):
@Uvacoder
Uvacoder / bookmarklet.md
Created March 10, 2025 05:11 — forked from ukcuddlyguy/bookmarklet.md
Linkding Bookmarklet

Linkding Bookmarklet

Create a bookmarklet in your favourite browser with the URL being:

javascript:document.querySelectorAll("div.title a[rel=noopener]").forEach(function(url) { window.open(url) })

When you have a Linkding page opened (e.g. viewing a "favourites" or a "daily" tag) clicking that Bookmark in your browser will open every link in a new tab.

@Uvacoder
Uvacoder / ColorPicker.swift
Created September 29, 2024 00:36 — forked from Amzd/ColorPicker.swift
What SwiftUI's ColorPicker should have been.
import SwiftUI
@available(iOS 14.0, *)
public struct ColorPickerWithoutLabel: UIViewRepresentable {
@Binding var selection: Color
var supportsAlpha: Bool = true
public init(selection: Binding<Color>, supportsAlpha: Bool = true) {
self._selection = selection
self.supportsAlpha = supportsAlpha
import { z } from "zod";
export const Fn = z.object({
API: z
.string()
.url("Must be a URL")
.endsWith("/", { message: "URL must end with /" }),
Socket: z
.string()
.url("Must be a URL")
<!DOCTYPE html>
<html>
<head>
<style>
canvas {
border: 1px solid black;
}
</style>
</head>
<body>
@Uvacoder
Uvacoder / webcrypto-examples.md
Created July 16, 2024 14:25 — forked from NikolaRHristov/webcrypto-examples.md
Web Cryptography API Examples
@Uvacoder
Uvacoder / gist:0738dc0a6291ac608e51ddd74a9a3fd4
Created June 22, 2024 00:55 — forked from ldakhoa/gist:3a5dde6e000106c89a7304ac12bcc5dc
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@Uvacoder
Uvacoder / followers.js
Created June 21, 2024 18:47 — forked from insin/followers.js
Run this while viewing someone's Twitter /following list to get the handles of everyone they follow
let $follows = document.querySelector('div[data-testid="primaryColumn"] section > h1 + div[aria-label] > div')
let handles = new Set()
let finishTimeout
let observer
function finish() {
if (finishTimeout) {
clearTimeout(finishTimeout)
}
finishTimeout = setTimeout(() => {