如何使用Chrome扩展使用Vanilla JS自定义当前网站光标?
我正在为自定义光标开发此Chrome扩展程序,我有要应用于用户使用的网站文件的SVG路径。
我可以在我的JS代码中编写什么可以通过这些文件并将该SVG应用于光标?
如何将JS中产生的SVG路径链接到CSS文件? (由于该路径适用于HTML而不是CSS) 例如,这就是我得到的:
< svg xmlns =“ http://www.w3.33.org/2000/svg” viewbox =“ 0 0 100 100 100” 45.5H-6.83C-1.09,0-2.116,0.273-3.019,0.748C-0.903-0.476-1.929-0.748--
- 0.903-0.476-1.929-0.748-所有站点“
subtest.json
?
I'm developing this Chrome Extension for Custom Cursors, I have the SVG path that I want to apply to the website's files that the user is using.
What can I write in my JS code that can go through these files and apply that SVG for cursor?
How could I link a an SVG path produced in my JS to a CSS file? (since the path is for applicable in HTML and not CSS)
e.g. This is what I got:<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M91.224,45.5h-6.83c-1.09,0-2.116,0.273-3.019,0.748c-0.903-0.476-1.929-0.748- ........
Any permissions required other than "Access to all sites" in the
manifest.json
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论