yorkxin / copy-as-markdown

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

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

Closed yorkxin closed 2 years ago

yorkxin commented 2 years 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: