Last active
February 28, 2022 08:07
-
-
Save DarkMatterMatt/e877b0c2fde46a843835003b5fc801ad to your computer and use it in GitHub Desktop.
Fix Panopto annoyances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Panopto | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.panopto.com/Panopto/Pages/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=panopto.com | |
// @grant none | |
// ==/UserScript== | |
/** | |
* TamperMonkey settings | |
* - Run at: 'document-end' | |
* - Run only in top frame: 'no' | |
*/ | |
(function() { | |
'use strict'; | |
const debug = true; | |
let interval; | |
if (window.location.pathname.endsWith('Viewer.aspx')) { | |
window.Panopto.viewer.showCopyrightNotice = false; // disable copyright notice | |
window.Panopto.viewer.viewerWatermarkPosition = 0; // disable watermark | |
interval = setInterval(() => { | |
try { | |
document.getElementById('Fastest').click(); // set 2x speed | |
clearInterval(interval); | |
} catch (e) { debug && console.error(e); } | |
}, 50); | |
setTimeout(() => clearInterval(interval), 5000); | |
} | |
if (window.location.pathname.endsWith('Embed.aspx')) { | |
window.Panopto.Embed.instance.copyrightNotice.showNotice = p => p(); // disable copyright notice | |
window.Panopto.Embed.instance.initialPlaySpeed = 2; // set 2x speed | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment