- Create a new bookmark
- In Firefox:
- Right click on bookmarks bar
- Select "New Bookmark..."
- Pick a name such as "Tegrity Downloader" and paste the following code below into the Location box
- In Chrome:
- Right click on bookmarks bar
- Select "Add page..."
- Replace the default contents with a name such as "Tegrity Downloader" and paste the following code into the URL box
- Open up a video you want to download from Tegrity and click the bookmarklet. A new window will open with the video; you can than use Ctrl-S to save it
javascript:(function()%20{%20let%20playerUrl%20=%20document.getElementById('playerContainer').attributes['iframe-src'].value;%20%20let%20videoUrl%20=%20playerUrl.replace('TegrityPlayer.htm',%20'Projector/screen00.mp4');%20videoUrl%20=%20videoUrl.substring(0,%20videoUrl.indexOf('?'));%20%20let%20authTokenStart%20=%20playerUrl.indexOf('AuthToken');%20let%20authTokenEnd%20=%20playerUrl.indexOf('&',%20authTokenStart);%20let%20authToken%20=%20playerUrl.substring(authTokenStart,%20authTokenEnd);%20%20let%20authVideoUrl%20=%20videoUrl%20+%20'?'%20+%20authToken;%20%20console.log('Found%20video%20URL:%20'%20+%20authVideoUrl);%20window.open(authVideoUrl);%20})();