简体   繁体   English

使用javascript运行Chrome扩展程序

[英]Run a chrome extension with javascript

I have a question: 我有个问题:

Is there any way to run a chrome extension with javascript? 有没有办法用javascript运行chrome扩展程序? My idea is to create a code that receives a link and automatically executes a chrome extension that what it does is detect a Vimeo video and download it ... My intention is to stop doing the manual process of downloading video by video because I want to download several ... that's why I want to know first if I can run a chrome extension with javascript. 我的想法是创建一个接收链接的代码,并自动执行chrome扩展程序,它执行的工作是检测Vimeo视频并下载它。我的目的是停止手动执行按视频下载视频的手动过程,因为我想下载几个...这就是为什么我想首先知道我是否可以使用javascript运行chrome扩展程序。

Thank you 谢谢

Actually, you should be able to do this without specifically javascript . 实际上,您无需使用专门的javascript就可以做到这一点。 If you're okay with using python , you can use the selenium package, which allows you to load Chrome options and extensions. 如果可以使用python ,可以使用selenium软件包,该软件包可让您加载Chrome选项和扩展程序。 StackOverflow link StackOverflow链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM