Skip to content

Web development

Zach Levitt edited this page Oct 3, 2022 · 2 revisions

Make text on webpage editable

document.querySelectorAll('*').forEach(d => d.setAttribute('contenteditable', true))

remove annotations

let annotations = document.querySelectorAll(".g-annotation"); annotations.forEach (function (annotation, index) { annotation.style.visibility = "hidden"; });

scrolling screen recordings

var distance=5000,by=2,speed=5,step=0, interval = setInterval(function(){window.scrollBy(0,by);step++;if(step>distance)clearInterval(interval)},speed);

stop scrolling early

clearInterval(interval)

Clone this wiki locally