While watching today’s show & tell I wrote a user-script that allows you to Play/Pause the video (in Mozilla Air) with double click
Enjoy!
// ==UserScript==
// @name Mozilla Air, double-click to Play / Pause
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Play / Pause with click on video
// @author Juraj M.
// @match https://onlinexperiences.com/*
// @grant none
// ==/UserScript==
(async () => {
'use strict';
const timeoutPromise = delay => new Promise(resolve => setTimeout(resolve, delay));
async function getNode() {
while (true) {
const video = document.querySelector('video');
if (video) return video;
await timeoutPromise(900);
}
}
const video = await getNode();
window.addEventListener('dblclick', e => video.paused ? video.play() : video.pause());
})();
Also, any plans for changing the “onlinexperiences.com” (whatever that is) to something more user friendly? Or maybe upgrading the page so that it contains anchor links, updates adressbar url, doesn’t open pop-ups, and gets faster? .