扫码关注官方订阅号
如何实现上述功能?
光阴似箭催人老,日月如移越少年。
就用最基本的content-script的方式就能实现咯。
//manifest.json { "manifest_version": 2, "name": "anything", "version": "1.0", "description": "anything", "content_scripts": [ { "matches": ["*://*/"],//改成你要加载的页面url,比如*://www.baidu.com/ "js": ["js/index.js"] } ] } //index.js alert('123'); //你要注入的代码
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
就用最基本的content-script的方式就能实现咯。