Skip to content

Instantly share code, notes, and snippets.

@foobear
foobear / copy-element-text-bookmarklet.js
Last active Mar 25, 2021
JavaScript bookmarklet to click an element and copy its text contents. See https://makandracards.com/makandra/46962
View copy-element-text-bookmarklet.js
(function() {
var overlay = document.createElement('div');
Object.assign(overlay.style, {
position: 'fixed',
top: 0,
left: 0,
width: '100vw',
height: '100vh',
zIndex: 99999999,
background: 'transparent',