How to download Embedded Google Slide Presentations (published to the web)

javascript:
var n = document.querySelectorAll('iframe[src*=docs\\.google]')[0],
k = document.createElement("a");
k.setAttribute("href",n.getAttribute("src"));
k.setAttribute("target","_blank");
k.setAttribute("style","display:block");
k.innerText = "Open Google Slides";
n.parentElement.insertBefore(k,n);
Editing a bookmark
javascript: 
var atag = "punch-viewer-content",
btag = "-caption",
ctag = "aria-setsize",
dtag = "aria-posinset",
msvg = document.getElementsByTagName("svg"),
node = document.querySelectorAll('[class$="' + btag + '"]')[0],
view = document.getElementsByClassName(atag)[0],
size = node.getAttribute(ctag),
data = "",
func = () => {
data += msvg[0].outerHTML;
if((i = node.getAttribute(dtag))==size) document.write(data);
else view.click(), setTimeout(func,10)
};
func()
Link to the Google Slides

--

--

--

Founder @ Jetbrain Robotics

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

JavaScript Bundlers, a Comparison

Maximum profile for Salesman traveling between 2 cities

AWS — Deploying Angular App With NGINX on EKS

Angular 12 Multiple Image Upload To S3 using DropZone & AWS-SDK

JavaScript Fetch

Why Should We Use Context API?

Javascript: ES6 & Beyond

5 Principles of Useful UX Design in Minimalism

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajay Vishnu

Ajay Vishnu

Founder @ Jetbrain Robotics

More from Medium

Tips For Creating The Perfect Accent Wall

How to export kindle highlights to notion?

SharePoint Comparing Dates Without Workflow or Any Kind Of Trigger Dynamically

Hacking my dumbphone