1 Star 6 Fork 0

yuchong / chrome-plugin-cookie

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

问题: web开发中,经常需要在当前域名下注入cookie断点调试
方案: 手动注入
不足: 如果只维护一个网站问题不大, 如果维护多个网站就是体力活,还耽误时间。
方案: 安装该扩展后,支持在打开任何网站时,自动在当前网站注入设置的cookie.

使用方式

输入图片说明

安装扩展

  1. chrome 地址栏, 输入 chrome://extensions/
  2. 打开右上角开发者模式
  3. 点击左上角的“加载已解压的扩展程序”,选择你下载的该项目代码文件夹

查看生效

  1. windows 按 F12 开启开发者模式
  2. 切换到Application导航栏,选中Cookies栏目,查看当前域名下的所有cookie

主要原理说明 content_scripts

名称      类型        必选/可选     说明
matches  string数组   必选          Content Script注入的Web页面

js       string数组   可选          注入到匹配的Web页面中的JS文件,顺序相关

css      string数组   可选          注入到匹配的Web页面中的CSS文件,顺序相关

run_at   string       可选          控制JS文件注入的时机,如"document_start", "document_end", "document_idle"。默认"document_idle"
MIT License Copyright (c) 2021 yuchong Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

针对Chrome浏览器编写的本地插件 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/hyperbolaa/chrome-plugin-cookie.git
git@gitee.com:hyperbolaa/chrome-plugin-cookie.git
hyperbolaa
chrome-plugin-cookie
chrome-plugin-cookie
master

搜索帮助