Coder Social home page Coder Social logo

Comments (3)

tiansh avatar tiansh commented on June 14, 2024 1

没有,脚本版 tiansh/yawf 可以支持包括 Google Chrome 在内的大部分浏览器。除了个别功能没有,个别功能有些许差别之外,大部分功能是一样的。

from yaofang.

tiansh avatar tiansh commented on June 14, 2024

目前已知的几个不兼容 Chrome 的部分包括:

  1. manifest.json 需要提供单独的版本,图标需要提供单独的版本(Chrome 对 svg 图标支持不好)
  2. Chrome 73+ 不允许从 content script 发跨源请求;但是因为 Firefox 的 background script 目前没有合适的方式处理容器,所以目前的请求都是从 content script 发送的;好在 Chrome 不支持容器,所以如果需要移植,这里要改成后台发送请求。
  3. 聊天框使用一个特殊的域名做了一层跳转来屏蔽扩展的域名,Chrome 不支持这种写法(.invalid 域名会在发送请求之前直接因为 URL 非法被阻止),而且也不需要这层额外的跳转。所以如果移植,要把这段给去掉。
  4. Chrome 对 storage 的尺寸和读写频率的限制更多一些,所以如果需要移植,这里也需要再包一层;

我这目前没有相关移植的打算。

from yaofang.

Vstory avatar Vstory commented on June 14, 2024

好的,感谢您的回复。

from yaofang.

Related Issues (20)

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.