Request site access per script instead of all sites

Đang mở
#13 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
security

Hướng nghiên cứu

Read the extension manifest and the code paths for saving, manually running, and auto-running scripts; the issue does not name files or tests. Start by tracing how host permissions are requested and how content scripts are registered, using the noted Chrome APIs as entry points. Done means all four acceptance criteria pass, including the end-to-end test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

release user story

User story

As a privacy-conscious user, I want PyMonkey to access only the sites my scripts need, so that installing it doesn't mean trusting it with every page I visit.

Why

The manifest requests <all_urls>. That triggers the strongest install warning and slower Chrome Web Store review.

Acceptance criteria

  • Site access is requested when a script is saved or first run on a site
  • "Run on this page" works with a single click on a site not yet granted
  • Auto-run works on granted sites and is skipped, with a visible reason, on others
  • The end-to-end test still passes

Notes

Look at optional_host_permissions, activeTab and chrome.scripting.registerContentScripts.


Generated by Claude Code

Ngôn ngữ chính
JavaScript
Star
1
Fork
1
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Ohr-Co/PyMonkey

Tất cả issue của Ohr-Co/PyMonkey

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.