Skip to content

Instantly share code, notes, and snippets.

View alexmodrono's full-sized avatar

Alex M. alexmodrono

View GitHub Profile
@alexmodrono
alexmodrono / README.md
Last active May 27, 2026 21:15
Enable picture-in-picture mode in Amazon Prime Video

Force Picture-in-Picture on Amazon Prime Video in Safari

Amazon Prime Video sometimes hides or disables Safari’s normal Picture-in-Picture controls.

This bookmarklet forces PiP by finding the correct <video> element on the page and opening it in Picture-in-Picture mode.

What it does

The script looks for all <video> elements on the page and chooses the best one by prioritizing the video that is:

@alexmodrono
alexmodrono / example.swift
Created April 18, 2022 12:01
Use Swift logger from SwiftUI views
struct ExampleView: View {
var body: some View {
Text("Hello, World!")
.log(level: .debug, "Hello from the logger!")
}
}
@alexmodrono
alexmodrono / main.cai
Created May 22, 2018 15:29
Simple CAIS GUI code - Get Started with CAIS Tutorial
#use <cais>
use <ui.e>
use <uim.e>
@import "main.cobj";
@import "frameworks/uim/gstarted.csf" as styles;
@import "frameworks/uim/aqua.csf" as default;
@import "styles.csf";
main_window = uim.window << size="1000x1000px", istyle="aqua.window";
@alexmodrono
alexmodrono / RocketDependencies.md
Last active July 25, 2018 12:20
How to install Rocket Libraries using HomeGet

How to install Rocket Libraries using HomeGet:

Type on your terminal:

homeget install rocket.content.all

Wait until the installation finishes. This will take from 1 to 5 minutes, depends on your computer dependencies. Once HomeGet finishes installing, open HomeGet's installation folder at /user/homeget/installed/ and look for Rocket_64. This is the Rocket Folder with all Libraries. Drag this folder to your Rocket's Code Folder (The Rocket App Content). Once done this, go to terminal and type: