Skip to content

Instantly share code, notes, and snippets.

const EMAIL_REGEX = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
@DimaGashko
DimaGashko / UnstoppableYt-2.js
Last active November 5, 2020 23:51
Console.Youtube
// Prevent autopause when youtube is plaing in the background
v = $('video');
v.onpause = () => v.play();
// To disable
v.onpause = null;