1,000 users
2020-11-02
Eagle Eye
nikolay.karagyozov1@gm...
Preview video links in a small floating window.
Только для YouTube. Неконкурентоспособен перед альтернативами. Большинство браузеров имеют картинку в картинке предварительно
looks like this haven't been update for the long time for youtube shorts or portrait support add the followings and load it with developer mode. (if you need help, ask) globals.js 1) replace with these const EXTRACT_YOUTUBE_VIDEO_ID_REGEX = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(shorts\/)|(watch\?))\??v?=?([^#&?]*).*/ const EXTRACT_YOUTUBE_START_TIME_REGEX = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|shorts\/|watch\?v=|\&v=)([^#\&\?]*)(?:(\?t|\&t|&start)=(\d+))?.*/ open-screen.js at the end of function extractVideoId(value) 1) replace it with this return (match && match[8].length==11) ? match[8] : false; open-screen.js 1) in function isYoutubeVideoLink(target) replace with this const urlTests = ['youtube', 'youtu.be', 'watch', 'shorts'] 2) add this const isShorts = contains(target.href, ['shorts']); 3) at the end replace with this return { videoUrl: videoUrl, startTime: startTime, isShorts: isShorts} open-screen.js in eventtrigger $(document).on('click', '.eagle-eye-tooltip', function(ev) 1) at the end replace with this showPopup(isYoutube.videoUrl, isYoutube.startTime || 0, isYoutube.isShorts) index.js at this line function showPopup(videoId, startTime) 1) replace it with this function showPopup(videoId, startTime, isShorts=false) add this whole condition if (isShorts) { let tempTotalWidth = totalWidth; totalWidth = totalHeight; totalHeight = tempTotalWidth; } just above the line bellow (exactly as seen here) if (document.getElementsByClassName('overlay-yt-extension').length)
Free Software Utilities
Jean-Michel M. | twitch.tv/krowplex
Picture in picture
Easy-Watch by Kevin
Alek
ufo22940268
https://floating-player.com
Mkc development
c4r
Free Software Utilities
PIP Ext.
Cool Apps