Skip to content

Instantly share code, notes, and snippets.

@xpsdeset
xpsdeset / yscale_key.js
Last active January 20, 2024 14:46
Remove Black Bars from Videos
javascript: (function() {
window.Yscale = {};
const $ = document.querySelector.bind(document);
var r = $(":root");
Yscale.change = (val) => {
val = val.toString().padStart(2, "0");
r.style.setProperty("--sy", `1.${val}`);
};
@xpsdeset
xpsdeset / yscale.js
Created November 13, 2023 16:08
Removes blackbars from videos
(function () {
window.Yscale = {}
Yscale.html = `
<style>
#Yscale{
position:fixed;
z-index:10000;
top:40%;
left:40%;
width:90px;
<input id="fileupload" type="file" name="fileupload" />
<button id="upload-button" onclick="uploadFileHandler()"> Upload </button>
<script>
function uploadFileHandler() {
let formData = new FormData();
const file = document.getElementById('fileupload').files[0];
uploadFile(file)
}
<!doctype html>
<head>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.357.0.min.js"></script>
<script type="text/javascript">
//Bucket Configurations
var bucketName = '';
var bucketRegion = '';
var IdentityPoolId = "";
@xpsdeset
xpsdeset / Readme.md
Last active September 3, 2021 19:07
Y scale video

Y scale videos

We come across videos that don't fully scale to the resoltuion of your monitor. This bookmarklet allows you to modify the yscale of the video and enjoy it in full height.

We come a cross many videos which do not fit the monitor resolution end to end. This bookmarklet allows you to change the aspect ratio of the video.

Right click on the bookmark bar and click on add a page,

@xpsdeset
xpsdeset / cloudSettings
Created May 30, 2018 16:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-30T16:44:46.378Z","extensionVersion":"v2.9.2"}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1">
<title>Accountkit</title>
</head>
<body>