stevenlei / spacingjs

A JavaScript utility for measuring the spacing between elements on webpage.
MIT License
1.11k stars 75 forks source link

Support for Chrome extension #9

Closed mivinci closed 3 years ago

mivinci commented 3 years ago

Saving spacingjs to tampermonkey or bookmark is life-saving, I tried to make it a Chrome extension though (#3 ).

I tried to fetch and execute the bundle of spacingjs in the extension so that users can get the newest bundle without updating the extension itself, but it violates the CSP. So we have to copy every time we make a new bundle and paste it to the extension directory, hopefully, users would update the extension by themselves. This is not an elegant solution (you can just ignore this PR) but so far I've got nothing better.

stevenlei commented 3 years ago

No problem, we can consider to setup a script to automate this process. Thank you very much.