", "label": "1080p", "type": "mp4" }], skin: { name: "vapor", //background: "##a9a9a9", active: "#00ced1", inactive: "#00ced1", }, related: { autoplaytimer: 0, displayMode: 'shelf', onclick: 'link', oncomplete: 'autoplay' }, //displayMode: 'shelfWidget', logo: { file: "", logoBar: "", position: "top-left", link: "" }, abouttext: '', aboutlink: '', width: '100%', height: '100%', primary: 'html5', displaytitle: false, autostart: false, playbackRateControls: true, mute: true, }); videoPlayer.addButton('', "Đến 10s", function() { videoPlayer.seek(videoPlayer.getPosition() + 10); }, "Đến 10s"); videoPlayer.addButton('', "Lùi 10s", function() { videoPlayer.seek(videoPlayer.getPosition() - 10); }, "Lùi 10s"); //Block hotkey document.onkeydown = function(e) { if (event.keyCode == 123) { return false; } if (event.keyCode == 117) { return false; } if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) { return false; } if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) { return false; } if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) { return false; } if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) { return false; } } // $(document).keypress("u", function(e) { if (e.ctrlKey) { return false; } else { return true; } }); // $(document).keyup(function(e) { var keyCode = e.keyCode ? e.keyCode : e.which if (keyCode == 123) { window.location = "https://www.google.com"; } if (keyCode == 117) { window.location = "https://www.google.com"; } if (keyCode == 67) { window.location = "https://www.google.com"; } if (keyCode == 86) { window.location = "https://www.google.com"; } if (keyCode == 73) { window.location = "https://www.google.com"; } }); console.log(Object.defineProperties(new Error, { toString: { value() { (new Error).stack.includes('[email protected]') && alert('Safari devtools') } }, message: { get() { window.location = "https://www.google.com"; } }, }));