Skip to content

Instantly share code, notes, and snippets.

View subzey's full-sized avatar

Anton Khlynovskiy subzey

View GitHub Profile
@subzey
subzey / index.html
Last active August 25, 2022 09:37
Compositor-only filters
<!doctype html>
<style>
html {
height: 100%;
}
body {
display: flex;
height: 100%;
width: 100%;
margin: 0;
<!doctype html>
<style>
.animated {
animation: rotate 1s linear infinite;
}
@keyframes rotate {
from { transform: rotate(0turn) }
to { transform: rotate(1turn) }
}
@subzey
subzey / index.html
Last active March 30, 2023 17:05
JsExe like compression with concatenated bootstrap and payload
<!doctype html>
<p>This is a repacked version of <a href="http://www.p01.org/MONOSPACE/">MONOSPACE by Mathieu 'p01' Henri</a>.
<p>Looks like Github Gist have some troubles with storing binary files. Please, <a id="run" target="_blank">Click here</button> to run.
<script>
fetch(`
data:text/html;base64,
iVBORw0KGgoAAAANSUhEUgAABj4AAAACCAAAAADNp/oNAAADyElEQVR4nACgAF//ADxDQU52YXMg
aWQ9Yz48aW1nIG9ubG9hZD1iPWMuZ2V0Q29udGV4dGAyZGA7Zm9yKHQ9bj0nJztlPWIuZ2V0SW1h
@subzey
subzey / index.html
Created April 13, 2022 14:44
"<symbol> in Promise" leak
<!doctype html>
<script>
let singletonPromise;
function makeSomeRequest() {
if (!singletonPromise) {
singletonPromise = Promise.resolve('(Response from some request that only should be made once)')
}
return singletonPromise;
}
@subzey
subzey / index.html
Created March 25, 2022 11:05
Japanese character test
<!doctype html>
<html>
<head></head>
<body>
<canvas width="1080" height="1920"></canvas>
<script>
const blocks = [
[0x2e80, 0x2eff],
[0x2f00, 0x2fdf],
[0x3000, 0x303f],
@subzey
subzey / index.html
Created March 18, 2022 14:50
Text arrow
<!doctype html>
<html lang="ru">
<head>
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@1,600&family=Lobster&family=Roboto&display=swap" rel="stylesheet">
<style>
body {
font-size: 28px;
line-height: 36px;
font-family: sans-serif;
<!doctype html>
<canvas id="a" width="500" height="500"></canvas>
<script>
const ctx = document.querySelector('canvas').getContext('2d');
const font = new FontFace('Charting', 'local("SF Pro Display")', {featureSettings: '"tnum" on, "lnum" on'});
document.fonts.add(font);
ctx.font = '42px Charting, sans-serif';
ctx.fillText('11111|', 0, 50);
@subzey
subzey / index.html
Created February 22, 2022 13:43
dns-prefetch
<!doctype html>
<html>
<head>
<link rel="dns-prefetch" href="https://s3.tradingview.com/">
</head>
<body>
<script>
setTimeout(() => {
const s = document.createElement('script');
s.src = 'https://s3.tradingview.com/tv.js';
<!doctype html>
<html>
<head>
<style>
body {
font: 5vw sans-serif;
margin: 0;
}
section {
padding: 1em 0;
@subzey
subzey / index.html
Created January 24, 2022 14:52
Translate injections
<!doctype html>
<html>
<head>
<style>
p > :last-child {
color: red;
}
</style>
</head>
<body>