{"version":"1.0","type":"rich","title":"Detach video bookmarklet: javascript:(function (src) {var s;s=document.createElement('script');s.src=src;document.body.appendChild(s);}('https://gist.githubusercontent.com/abernier/9730666/raw/detachvideo.js'));)","description":"This bookmarklet detaches the largest video element from a webpage and reopens it in a separate pop-up window sized to its original dimensions, preserving the viewer’s context while hiding the surrounding page. The code uses the DOM API (`querySelectorAll`, `getBoundingClientRect`) to sort all `video`, `object`, and `iframe` tags by area, then opens the video’s URL (or the iframe’s `src`) via `window.open`. After load, it scrolls the pop-up to match the original video’s position and sets `overflow` to `hidden` on both the body and its parent, isolating the playback. The script relies on plain JavaScript, with no external libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9730666?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}