Skip to content

Instantly share code, notes, and snippets.

@DarkMatterMatt
Last active February 28, 2022 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarkMatterMatt/e877b0c2fde46a843835003b5fc801ad to your computer and use it in GitHub Desktop.
Save DarkMatterMatt/e877b0c2fde46a843835003b5fc801ad to your computer and use it in GitHub Desktop.
Fix Panopto annoyances
// ==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