Let's make sure our Express app has the required base modules:
# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon
# This to be used when you need to implement SSL | |
# Make sure that apache mod_ssl is on | |
# You can generate self signed certificates for development | |
# http://www.selfsignedcertificate.com/ | |
<VirtualHost *:443> | |
ServerName yourapp.test | |
#ServerAlias www.yourapp.test |
/// ytstayactive.js | |
// ==UserScript== | |
// @name YouTube - Stay Active and Play Forever | |
// @namespace q1k | |
// @version 3.1.1 | |
// @description Tired of Youtube pausing playback asking you to click 'yes' to continue playing? This script will make the popup never appear, music will never stop. Never pause, never inactive, never worry. The script will keep you active and keep playing music FOREVER. Enables playing in background on mobile. | |
// @author q1k | |
// ==/UserScript== | |
Object.defineProperties(document, { /*'hidden': {value: false},*/ 'webkitHidden': {value: false}, 'visibilityState': {value: 'visible'}, 'webkitVisibilityState': {value: 'visible'} }); | |
setInterval(function(){ |