Monkey-patching browser APIs with ZeroFrame
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
Hướng nghiên cứu
Bắt đầu từ việc monkey-patching API trình duyệt AJAX hiện có và theo dõi cách các hành động của wrapper ZeroFrame được gọi. Đánh giá tính khả thi của việc chặn localStorage và History, bao gồm cả việc viết lại URL, sau đó xem xét wrapperOpenWindow và wrapperSetTitle; được coi là hoàn tất khi các thư viện bên thứ ba được hỗ trợ có thể sử dụng các API này mà không cần sửa đổi dành riêng cho ZeroNet.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
ZeroFrame currently monkey-patches AJAX browser APIs to add AJAX key. It would also be good to monkey-patch some other browser APIs, like localStorage or history, to call ZeroFrame's wrapper actions instead of directly browser APIs. This would make it possible to use some third-party libraries (like JS routers which use History API, maybe some storage helpers) with ZeroNet without any modifications to them (this currently requires to modify them to use ZeroFrame instead of browser APIs).
Some of APIs which should be monkey-patched are:
-
localStorage: Use wrapper'swrapperGetLocalStorageandwrapperSetLocalStorage. However, I don't know if this is possible because browsers prevent accessing and modifyinglocalStorageobject in iframe sandbox. -
History: UsewrapperGetState,wrapperPushState,wrapperReplaceStateand correctly handle URL rewrites in otherHistory's objects. This would be easier because you can access them inside sandbox, but they just don't do anything. -
As well as some other wrapper actions like
wrapperOpenWindowandwrapperSetTitle.
- Ngôn ngữ chính
- JavaScript
- Star
- 73
- Fork
- 69
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HelloZeroNet/ZeroHello
-
Sequential size limit increases lead to errors without refreshing ZeroHello between each time. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
HelloZeroNet/ZeroHello#155 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
HelloZeroNet/ZeroHello#153 ·
-
SUBSCRIBED tab for newsfeed. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
HelloZeroNet/ZeroHello#149 · 1 bình luận ·
-
enhancement
HelloZeroNet/ZeroHello#148 · 1 người được giao ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
HelloZeroNet/ZeroHello#147 ·
Tất cả issue của HelloZeroNet/ZeroHello
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100