Giter Site home page Giter Site logo

tmsdy / chrome-plugin-sycm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sishenhei7/chrome-plugin-sycm

1.0 1.0 0.0 1.43 MB

生意参谋 chrome 插件,能够实现几个分类的数据获取和下载

HTML 1.90% JavaScript 90.81% CSS 3.17% Vue 4.12%

chrome-plugin-sycm's Introduction

chrome-plugin-sycm

生意参谋 chrome 插件,目前能够实现几个分类的数据获取和下载。

此项目已搬到我司 gitlab 上面,这里的已经不再维护了

Demo

demo1 demo2

Develop

npm install
npm start
npm run build

How to use

  1. npm run build,插件会被打包到 ym-sycm-plugin 文件夹;
  2. 打开 chrome 的扩展程序,并切换到开发者模式
  3. 把 ym-sycm-plugin 文件夹拖进去即可

2020.3.31特别更新说明

本来以为在 chrome 插件里面拦截 fetch 请求是一件侥幸的事情,是 fetch 的特殊性造成的。然而当我试着去拦截 xhr 请求的时候,发现竟然也能成功。至此,已经可以实现在 chrome 插件里面拦截所有的请求了。所以,我这次把方法更新上去了,供以后开发时参考,相信对其它人也有用。(完整业务代码放在公司gitlab上面了,并不打算更上去)

拦截方法请查看这三个文件:xhrHook.jsfetchHook.jsmanifest.json

需要注意的是:manifest.json里面的content_scripts字段是填一个数组的,所以可以在这里把钩子插入到文档流里面去,并且还可以设置在document_start的时候插入,而不是document_end的时候~

chrome-plugin-sycm's People

Contributors

sishenhei7 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.