Skip to content

Instantly share code, notes, and snippets.

@LeviPO
LeviPO / yskc.js
Created April 29, 2023 17:46
UserScript to add key controls to YouTube Shorts ('j': back 10 seconds; 'l': forward 10 seconds; Left arrow: back 5 seconds; Rigth arrow: forward 5 seconds)
// ==UserScript==
// @name YouTube Shorts key controls
// @version 0.1
// @namespace Violentmonkey Scripts
// @description Adds key controls to YouTube Shorts
// @author CarlosMarques
// @match https://www.youtube.com/*
// @grant none
// @license MIT
// ==/UserScript==
@LeviPO
LeviPO / modifiedCreateElement.js
Last active April 12, 2023 07:40
Modifies the document.createElement method to allow for an object argument which facilitates the setting of properties in one line
// EXAMPLES:
// 1 - Creates new element <div>
// document.createElement("div")
// 2 - Creates new element <div id="my-new-div" style="background-color: red; display: none;">
// document.createElement({
@LeviPO
LeviPO / ytpq.js
Last active November 9, 2023 08:16
UserScript to make the YoutTube video queue persistent through sessions
// ==UserScript==
// @name Persistent YoutTube video queue
// @version 0.1
// @namespace Violentmonkey Scripts
// @description Make the YoutTube video queue persistent through sessions
// @author CarlosMarques
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==