Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Опросник</title>
</head>
<body>
<h1>Опросник</h1>
<form>
<p>1. Как часто вы занимаетесь спортом?</p>
// ==UserScript==
// @name Monitor video tags
// @namespace http://holacdn.org/
// @version 0.24
// @match http://*/*
// @match https://*/*
// @grant none
// ==/UserScript==
const pre_msg = 'STAN/MONITORING';
// select the target node
var target = document.querySelector('video');
// create an observer instance
var observer = new MutationObserver(function(mutations) {
// console.log('mutations', mutations);
mutations.forEach(function(mutation) {
if (mutation.type!='attributes')
return console.log('another type of mutation', mutation);
console.log('mutation changed ', mutation.attributeName,' from ', mutation.oldValue, ' to ', target.getAttribute(mutation.attributeName));
/**
* @license
* Video.js 5.10.2-25 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Version 2.0
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE>