Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vyach-vasiliev/76deb1f87eb6cb52cdc89b2d3fc5ea78 to your computer and use it in GitHub Desktop.
Save vyach-vasiliev/76deb1f87eb6cb52cdc89b2d3fc5ea78 to your computer and use it in GitHub Desktop.
Download video from post of Boosty (bookmarklet)

🔥 Download video from post of Boosty (bookmarklet)

How to install

It's really easy!

  1. Press ctrl+B (or cmd+B on Mac).
  2. Move this link Download video from Boosty to the bookmarks bar.
  3. Then, right click on the new bookmark, click Edit and paste the script contents above into the URL field.
  4. Now, open the page with the video and click on the new bookmark.
  5. Wait for the request to select the quality for downloading, enter it and press Enter.

✨ The download will start. Enjoy! ✨

image

Similar bookmarklets

javascript:
(/boosty\.to\/.+\/posts\//.test(location.href) ? true : alert("Only available on Boosty video page.")) ? true : alert("Only available on Boosty post page."))
&&(qs={ultra_hd:[7,2160],quad_hd:[6,1440],full_hd:[5,1080],high:[3,720],medium:[2,480],low:[1,360],lowest:[0,240],tiny:[4,144]})
&&(links=JSON.parse(document.getElementById("initial-state").textContent).posts.postsList.data.posts[0].data[0].playerUrls.filter(m=>m.url))
&&(link_by_qt=links.filter(({type, url}) => type in qs).map(({type, url}) => ({ [qs[type][1]]: url })).sort((a, b) => Object.keys(b) - Object.keys(a)))
&&link_by_qt.map(m=>Object.entries(m).map(({qs, url})=>qs+"p"))
&&(ps="Select quality:\n" + link_by_qt.map(m=>Object.entries(m).map(([qs, url])=>link_by_qt.indexOf(m)+"-"+qs+"p")).join("\n"))
&&(answ=prompt(ps)) && link_by_qt[answ] && window.open(Object.values(link_by_qt[answ])[0], "_blank");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment