This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
let root = document.documentElement | |
let timeout | |
let removeBanner = () => { | |
if (root.children[2]?.tagName === 'DIV') { | |
if (console && console.clear) console.clear() | |
return root.children[2].remove() | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, width=device-width"> | |
<style visible> | |
:root { --color-rgb: 8, 10, 60 } | |
</style> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title>iOS Safari bug: incorrect rendering of box-shadow on 19.2px square element with 50% border-radius</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, width=device-width"> | |
<style> | |
html { | |
font-size: 16px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Version 3. Updated Sep 5, 2022 */ | |
#search a:has(>br):has(>h3):has(>div) br { | |
display: none; | |
} | |
#search a:has(>br):has(>h3):has(>div) h3 { | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>­</title> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<div prefix-editor suffix=".adamschwartz.com" spellcheck="false" autocomplete="false"> | |
<input type="text"> | |
</div> | |
</form> | |
<script> | |
(() => { | |
const editorEl = document.querySelector('[prefix-editor]') | |
const inputEl = editorEl.querySelector('input') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
:root { | |
--background: #000; | |
--rainbow-1: #e91e63; | |
--rainbow-2: #9c27b0; | |
--rainbow-3: #3f51b5; | |
--rainbow-4: #2196f3; | |
--rainbow-5: #00bcd4; | |
--rainbow-6: #4caf50; | |
--rainbow-7: #cddc39; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▲ ● ■ |
NewerOlder