GithubHelp home page GithubHelp logo

del_ad_chrome_ext's Issues

manifest的定义存在一些问题

算是一点最佳实践:

1: browser_action 是不需要的,因为一点功能都没有,就显示一个静态的Clear success?不要增加不必要的浏览器元素。
2:permission也是不需要的,因为在content_script中已经定义了。不做CROS,不动态注入的话,不需要申请网址permission
3:content_scripts中的matches值可简写为“:///”, 其他网址的定义就更不需要了。只要有了:///,就是对所有网址都生效,无需再申明其他网址匹配。
4:content_scripts还可添加一项“run_at”:"document_end",这样注入的文件就会在文档节点加载完以后就开始执行,否则默认会等所有资源都加载完才执行。

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.