1// ==UserScript== 2// @name Fix Berg Video Codec 3// Fix media element block video loading issue 4 5(function() { 6 'use strict'; 7 const sources = document.querySelectorAll('video source[type*="hvc1"]'); 8 sources.forEach(source => { 9 source.setAttribute('type', source.getAttribute('type').replace('hvc1', 'vp9')); 10 }); 11 const videos = document.querySelectorAll('video'); 12 videos.forEach(video => { 13 video.load(); 14 video.play(); 15 }); 16})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.