[...new Set(Array.from(document.querySelectorAll('video,source')).map(s=>s.src))].forEach((s,i)=>s&&prompt(`Video ${i+1} URL (Copy to clipboard yourself):`,s))- Add bookmark this page
- Edit added bookmark in browser's bookmark manager
- Edit bookmark name you desired, and edit URL to below:
javascript:(function()%7B%5B...new%20Set(Array.from(document.querySelectorAll(%27video%2Csource%27)).map(s%3D%3Es.src))%5D.forEach((s%2Ci)%3D%3Es%26%26prompt(%60Video%20%24%7Bi%2B1%7D%20URL%20(Copy%20to%20clipboard%20yourself)%3A%60%2Cs))%7D)()
- Done. when you run the bookmarklet on the site where the video was found, it will display prompts for you equal to the number of videos.
It doesn't grab non-video elements. The bookmarklet is just simply grabbing src attributes in <video> and <source> tags.
If you want rich and easy grabbing URL feature for download, consider using any video downloader extension on your browser.