yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
529 stars 81 forks source link

Inject an iframe to perform copy on Chrome + Keyboard Shortcut #113

Closed yorkxin closed 1 year ago

yorkxin commented 1 year ago

Summary

It seems that injecting an iframe (an HTML page bundled in the extension) can work around Chrome's document.execCommand restriction. Not sure if this is a security hole though. At least it works on my machine.

(I am doubting the meaning of my life)

Tests

Optional: