Skip to content

Instantly share code, notes, and snippets.

View adriaandotcom's full-sized avatar
🕵️‍♂️
Developing the privacy-first Simple Analytics

Adriaan adriaandotcom

🕵️‍♂️
Developing the privacy-first Simple Analytics
View GitHub Profile
@adriaandotcom
adriaandotcom / bookmark.js
Created June 8, 2022 11:02
Fix Twitter's schedule tweet feature
javascript: (function () {
const currentHour = new Date().getHours();
const scheduleHour =
currentHour < 10 ? 10 : currentHour < 14 ? 14 : currentHour < 17 ? 17 : 10;
const addDays = currentHour < 17 ? 0 : 1;
const date = new Date(Date.now() + addDays * 24 * 60 * 60 * 1000);
const [month, day, year, hour, minute] = document.querySelectorAll(
'[role="dialog"] select'
);
month.value = date.getMonth() + 1;
@adriaandotcom
adriaandotcom / preview.md
Last active January 8, 2023 12:34
AQI iOS lock screen widget with waqi.info

Here is how it looks (most left widget):

@adriaandotcom
adriaandotcom / README.md
Created February 6, 2023 05:25
Google Looker submission script

Copy paste the script into the console of the submission flow of Google Looker. It's a Google Form, so might work for other Google Forms as well.

Enjoy!

@adriaandotcom
adriaandotcom / _image.md
Last active March 10, 2025 21:50
Scriptable iOS MRR Gauge on Lockscreen

image